diff options
author | Arnstein Ressem <aressem@vespa.ai> | 2024-05-02 23:19:57 +0200 |
---|---|---|
committer | Arnstein Ressem <aressem@vespa.ai> | 2024-05-02 23:19:57 +0200 |
commit | 8ebebb88ff66fe73dcf98acf0b8c7d7b45a75ee2 (patch) | |
tree | 89aa52daf2ae4c48fdf4ee46fa8923ab89699bc4 | |
parent | 4e72477d134a1d4a202a9a4e6ae9879f31c428f4 (diff) |
Make it possible to deploy from bootstrap and use threads when doing full bootstrap (not for plugins)
-rwxr-xr-x | bootstrap.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bootstrap.sh b/bootstrap.sh index a98909799e1..43c62033f6d 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -37,13 +37,14 @@ get_env_var_with_optional_default() { } readonly MAVEN_CMD=$(get_env_var_with_optional_default VESPA_MAVEN_COMMAND "$(pwd)/mvnw") - readonly MAVEN_EXTRA_OPTS=$(get_env_var_with_optional_default VESPA_MAVEN_EXTRA_OPTS) +readonly MAVEN_TARGET=$(get_env_var_with_optional_default VESPA_MAVEN_TARGET "install") echo "Using maven command: ${MAVEN_CMD}" echo "Using maven extra opts: ${MAVEN_EXTRA_OPTS}" +echo "Using maven target: ${MAVEN_TARGET}" mvn_install() { - ${MAVEN_CMD} --batch-mode --no-snapshot-updates -Dmaven.wagon.http.retryHandler.count=5 clean install ${MAVEN_EXTRA_OPTS} "$@" + ${MAVEN_CMD} --batch-mode --no-snapshot-updates -Dmaven.wagon.http.retryHandler.count=5 clean ${MAVEN_TARGET} ${MAVEN_EXTRA_OPTS} "$@" } force_move() { @@ -105,7 +106,7 @@ case "$MODE" in ;; full) echo "Building full set of dependencies." - mvn_install -am -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -pl jrt,linguistics,messagebus + mvn_install -am -T1C -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dmaven.source.skip=true -pl jrt,linguistics,messagebus ;; default) echo "Building default set of dependencies." |