Quiet maven download messages during builds
Change-Id: I7471f8050217d98f3581052529bf1679a54ad001
diff --git a/tools/build/onos-change-version b/tools/build/onos-change-version
index 62cc2f3..9477e0f 100755
--- a/tools/build/onos-change-version
+++ b/tools/build/onos-change-version
@@ -16,8 +16,8 @@
cd $ONOS_ROOT
# Augment the version of the main pom and the modules nested underneath.
-mvn versions:set -DnewVersion=$NEW_VERSION versions:commit
-mvn -f lib/pom.xml versions:set -DnewVersion=$NEW_VERSION versions:commit
+mvn -B versions:set -DnewVersion=$NEW_VERSION versions:commit
+mvn -B -f lib/pom.xml versions:set -DnewVersion=$NEW_VERSION versions:commit
sed -i".VERBACK" -E "1,/<version>/s/<version>[^<]*</<version>$NEW_VERSION</g" pom.xml
# Augment the version of the Java API pom files and the overview.html file.
@@ -37,7 +37,7 @@
$ONOS_ROOT/core/net/src/main/java/org/onosproject/core/impl/VersionManager.java
# Augment the version in archetypes tree.
-mvn -f tools/package/archetypes/pom.xml versions:set -DnewVersion=$NEW_VERSION versions:commit
+mvn -B -f tools/package/archetypes/pom.xml versions:set -DnewVersion=$NEW_VERSION versions:commit
for atype in api bundle cli rest ui uitab uitopo; do
pom="tools/package/archetypes/$atype/src/main/resources/archetype-resources/pom.xml"
sed -i".VERBACK" -E "1,/<onos.version>/s/<onos.version>[^<]*</<onos.version>$NEW_VERSION</g" $pom
@@ -46,7 +46,7 @@
# Fix the onos-build-conf version
sed -i".VERBACK" -E "s/<onos-build-conf.version>.*<\/onos-build-conf.version>/<onos-build-conf.version>$NEW_VERSION<\/onos-build-conf.version>/g" $ONOS_ROOT/lib/pom.xml
-mvn -f tools/build/conf/pom.xml versions:set -DnewVersion=$NEW_VERSION versions:commit
+mvn -B -f tools/build/conf/pom.xml versions:set -DnewVersion=$NEW_VERSION versions:commit
# Version the BUCK artifacts
sed -i".VERBACK" -E "s/ONOS_VERSION.*/ONOS_VERSION = '$NEW_VERSION'/" onos.defs
diff --git a/tools/build/onos-release b/tools/build/onos-release
index 33576e5..83d4506 100755
--- a/tools/build/onos-release
+++ b/tools/build/onos-release
@@ -54,12 +54,12 @@
if [ $dryRun -eq 0 ]; then
export MVN_CLI_OPTS=-Pstaging
pushd tools/package/archetypes/
- mvn -Pstaging clean install && onos-archetypes-test && mvn -Pstaging -Prelease clean deploy
+ mvn -B -Pstaging clean install && onos-archetypes-test && mvn -Pstaging -Prelease clean deploy
popd
unset MVN_CLI_OPTS
else
pushd tools/package/archetypes/
- mvn clean install && onos-archetypes-test
+ mvn -B clean install && onos-archetypes-test
popd
fi