diff --git a/.travis.yml b/.travis.yml
index 34ab49c7393..471a4bef9c7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -135,13 +135,13 @@ script:
- /bin/bash ./bin/utils/detect_tab_in_java_class.sh
# run integration tests defined in maven pom.xml
# WARN: Travis will timeout after 10 minutes of no stdout/stderr activity, which is problematic with mvn --quiet.
- - mvn --quiet --batch-mode --show-version clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- - mvn --quiet --batch-mode --show-version verify -Psamples -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ - mvn --no-snapshot-updates --quiet --batch-mode --show-version clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ - mvn --no-snapshot-updates --quiet --batch-mode --show-version verify -Psamples -Dorg.slf4j.simpleLogger.defaultLogLevel=error
# test maven plugin
- - mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- - mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- - mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- - mvn --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ - mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/java-client.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ - mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/multi-module/pom.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ - mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/kotlin.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ - mvn --no-snapshot-updates --quiet clean compile -f modules/openapi-generator-maven-plugin/examples/spring.xml -Dorg.slf4j.simpleLogger.defaultLogLevel=error
# test gradle plugin
- (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew buildGoSdk)
- (cd modules/openapi-generator-gradle-plugin/samples/local-spec && ./gradlew openApiGenerate)
diff --git a/CI/.travis.yml.bash b/CI/.travis.yml.bash
index f224cac3958..a618399ff85 100644
--- a/CI/.travis.yml.bash
+++ b/CI/.travis.yml.bash
@@ -34,4 +34,4 @@ script:
- set -e
# run integration tests defined in maven pom.xml
- cp pom.xml.bash pom.xml
- - mvn --batch-mode verify -Psamples
+ - mvn --no-snapshot-updates --batch-mode verify -Psamples
diff --git a/CI/.travis.yml.ios b/CI/.travis.yml.ios
index 8da2e0768d6..31e0df63926 100644
--- a/CI/.travis.yml.ios
+++ b/CI/.travis.yml.ios
@@ -34,4 +34,4 @@ before_install:
script:
# run integration tests defined in maven pom.xml
- - mvn -q --batch-mode verify -Psamples.ios -Dmaven.javadoc.skip=true
+ - mvn --no-snapshot-updates -q --batch-mode verify -Psamples.ios -Dmaven.javadoc.skip=true
diff --git a/CI/bitrise.yml b/CI/bitrise.yml
index 83156c662a4..de1bf901f26 100644
--- a/CI/bitrise.yml
+++ b/CI/bitrise.yml
@@ -28,7 +28,7 @@ workflows:
set -e
- mvn package -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ mvn --no-snapshot-updates package -Dorg.slf4j.simpleLogger.defaultLogLevel=error
title: Build openapi-generator
- script@1.1.5:
title: Update Swift samples
diff --git a/CI/circle_parallel.sh b/CI/circle_parallel.sh
index d5efb638149..3b9bb976085 100755
--- a/CI/circle_parallel.sh
+++ b/CI/circle_parallel.sh
@@ -24,8 +24,8 @@ if [ "$NODE_INDEX" = "1" ]; then
export PATH="/usr/local/go1.14/go/bin:$PATH"
go version
- mvn --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- mvn --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ mvn --no-snapshot-updates --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ mvn --no-snapshot-updates --quiet javadoc:javadoc -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
elif [ "$NODE_INDEX" = "2" ]; then
# run ensure-up-to-date sample script on SNAPSHOT version only
@@ -58,7 +58,7 @@ elif [ "$NODE_INDEX" = "2" ]; then
sudo apt-get -y install libcurl4-gnutls-dev
# run integration tests
- mvn --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ mvn --no-snapshot-updates --quiet verify -Psamples.misc -Dorg.slf4j.simpleLogger.defaultLogLevel=error
else
echo "Running node $NODE_INDEX to test 'samples.circleci.jdk7' defined in pom.xml ..."
sudo update-java-alternatives -s java-1.7.0-openjdk-amd64
@@ -73,7 +73,7 @@ else
sudo apt-get install dart
export PATH="$PATH:/usr/lib/dart/bin"
- mvn --quiet verify -Psamples.circleci.jdk7 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ mvn --no-snapshot-updates --quiet verify -Psamples.circleci.jdk7 -Dorg.slf4j.simpleLogger.defaultLogLevel=error
fi
diff --git a/appveyor.yml b/appveyor.yml
index 008ac171f88..6cd7a9128cf 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -48,7 +48,7 @@ build_script:
- nuget restore samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln
- msbuild samples\client\petstore\csharp\OpenAPIClientNetStandard\Org.OpenAPITools.sln /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
# install openapi-generator locally
- - mvn clean install --quiet -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ - mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
# run the locally installed openapi-generator-gradle-plugin
- gradle -b modules\openapi-generator-gradle-plugin\samples\local-spec\build.gradle buildGoSdk --info
test_script:
diff --git a/bin/utils/ensure-up-to-date b/bin/utils/ensure-up-to-date
index 7d5d10f075c..ea74226e31f 100755
--- a/bin/utils/ensure-up-to-date
+++ b/bin/utils/ensure-up-to-date
@@ -100,7 +100,7 @@ declare -a always_iterate=(
export JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true -Dorg.slf4j.simpleLogger.defaultLogLevel=warn"
if [ "true" = "$batch_mode" ]; then
if [ ! -f "$executable" ]; then
- (cd "${root}" && mvn -B clean package -DskipTests=true -Dmaven.javadoc.skip=true)
+ (cd "${root}" && mvn -B --no-snapshot-updates clean package -DskipTests=true -Dmaven.javadoc.skip=true)
fi
# shellcheck disable=SC2086
diff --git a/circle.yml b/circle.yml
index 06b9373f3f3..04eb415803b 100644
--- a/circle.yml
+++ b/circle.yml
@@ -66,7 +66,7 @@ jobs:
- run: sleep 30
- run: cat /etc/hosts
# Test
- - run: mvn --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
+ - run: mvn --no-snapshot-updates --quiet clean install -Dorg.slf4j.simpleLogger.defaultLogLevel=error
- run: ./CI/circle_parallel.sh
# Save dependency cache
- save_cache:
diff --git a/pom.xml b/pom.xml
index 1ffcbe0f153..30e17e51e64 100644
--- a/pom.xml
+++ b/pom.xml
@@ -227,6 +227,7 @@
@{argLine} -XX:+StartAttachListener
1000
+ 5000
diff --git a/shippable.yml b/shippable.yml
index d2b96f13632..c1bd579106a 100644
--- a/shippable.yml
+++ b/shippable.yml
@@ -15,7 +15,7 @@ build:
- rm /etc/apt/sources.list.d/jonathonf-ubuntu-backports-xenial.list
#
- java -version
- - mvn --quiet clean install -Dmaven.javadoc.skip=true
+ - mvn --no-snapshot-updates --quiet clean install -Dmaven.javadoc.skip=true
# ensure all modifications created by 'mature' generators are in the git repo
# below move to CircleCI ./bin/utils/ensure-up-to-date
# prepare environment for tests
@@ -42,7 +42,7 @@ build:
- elixir --version
- mix --version
# test samples defined in pom.xml
- - mvn --quiet verify -P samples.shippable -Dmaven.javadoc.skip=true
+ - mvn --no-snapshot-updates --quiet verify -P samples.shippable -Dmaven.javadoc.skip=true
# below moved to CircleCI
## generate all petstore samples (client, servers, doc)
#- ./bin/run-all-petstore