You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ts...@apache.org on 2021/08/27 09:06:39 UTC
[camel-k] branch main updated: chore(build): use batch-mode for
maven-overlay task in CI
This is an automated email from the ASF dual-hosted git repository.
tsato pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new b129831 chore(build): use batch-mode for maven-overlay task in CI
b129831 is described below
commit b12983178dbf052db2cbcc7954cbfbc225e48e22
Author: Tadayoshi Sato <sa...@gmail.com>
AuthorDate: Fri Aug 27 16:29:44 2021 +0900
chore(build): use batch-mode for maven-overlay task in CI
---
script/maven_overlay.sh | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/script/maven_overlay.sh b/script/maven_overlay.sh
index 575804b..5b23fd7 100755
--- a/script/maven_overlay.sh
+++ b/script/maven_overlay.sh
@@ -15,9 +15,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-mvn dependency:get -Dartifact=ch.qos.logback:logback-core:1.2.3 -Ddest=$1
-mvn dependency:get -Dartifact=ch.qos.logback:logback-classic:1.2.3 -Ddest=$1
-mvn dependency:get -Dartifact=net.logstash.logback:logstash-logback-encoder:4.11 -Ddest=$1
-mvn dependency:get -Dartifact=com.fasterxml.jackson.core:jackson-annotations:2.9.10 -Ddest=$1
-mvn dependency:get -Dartifact=com.fasterxml.jackson.core:jackson-core:2.9.10 -Ddest=$1
-mvn dependency:get -Dartifact=com.fasterxml.jackson.core:jackson-databind:2.9.10.8 -Ddest=$1
\ No newline at end of file
+options=""
+if [ "$CI" = "true" ]; then
+ options="--batch-mode"
+fi
+
+mvn $options dependency:get -Dartifact=ch.qos.logback:logback-core:1.2.3 -Ddest=$1
+mvn $options dependency:get -Dartifact=ch.qos.logback:logback-classic:1.2.3 -Ddest=$1
+mvn $options dependency:get -Dartifact=net.logstash.logback:logstash-logback-encoder:4.11 -Ddest=$1
+mvn $options dependency:get -Dartifact=com.fasterxml.jackson.core:jackson-annotations:2.9.10 -Ddest=$1
+mvn $options dependency:get -Dartifact=com.fasterxml.jackson.core:jackson-core:2.9.10 -Ddest=$1
+mvn $options dependency:get -Dartifact=com.fasterxml.jackson.core:jackson-databind:2.9.10.8 -Ddest=$1