From 5edc22b7a7c639bb361ed0c235cda6d288b12380 Mon Sep 17 00:00:00 2001 From: Foivos Zakkak Date: Tue, 6 Sep 2022 12:09:35 +0300 Subject: [PATCH] Update mvn commands in docs to match the ones ran by quarkus-cli `quarkus build` runs `mvn install` not `mvn package` The main noticeable difference when it come to the guides is that `mvn install` also runs tests while `mvn package` doesn't, though some guides imply that the tests are being run even with `mvn package`. --- .../includes/devtools/build-native-container-parameters.adoc | 2 +- .../asciidoc/includes/devtools/build-native-container.adoc | 4 ++-- docs/src/main/asciidoc/includes/devtools/build-native.adoc | 4 ++-- docs/src/main/asciidoc/includes/devtools/build.adoc | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/src/main/asciidoc/includes/devtools/build-native-container-parameters.adoc b/docs/src/main/asciidoc/includes/devtools/build-native-container-parameters.adoc index 1885434a18ab6..c02805cfa22cc 100644 --- a/docs/src/main/asciidoc/includes/devtools/build-native-container-parameters.adoc +++ b/docs/src/main/asciidoc/includes/devtools/build-native-container-parameters.adoc @@ -8,7 +8,7 @@ ifdef::devtools-wrapped[+] [source, bash, subs=attributes+, role="secondary asciidoc-tabs-sync-maven"] .Maven ---- -./mvnw package -Dnative -Dquarkus.native.container-build=true {build-additional-parameters} +./mvnw install -Dnative -Dquarkus.native.container-build=true {build-additional-parameters} ---- endif::[] ifndef::devtools-no-gradle[] diff --git a/docs/src/main/asciidoc/includes/devtools/build-native-container.adoc b/docs/src/main/asciidoc/includes/devtools/build-native-container.adoc index 060d9e8dc33a4..8aa4202cc97fd 100644 --- a/docs/src/main/asciidoc/includes/devtools/build-native-container.adoc +++ b/docs/src/main/asciidoc/includes/devtools/build-native-container.adoc @@ -15,10 +15,10 @@ ifdef::devtools-wrapped[+] .Maven ---- ifdef::build-additional-parameters[] -./mvnw package -Dnative -Dquarkus.native.container-build=true {build-additional-parameters} +./mvnw install -Dnative -DskipTests -Dquarkus.native.container-build=true {build-additional-parameters} endif::[] ifndef::build-additional-parameters[] -./mvnw package -Dnative -Dquarkus.native.container-build=true +./mvnw install -Dnative -DskipTests -Dquarkus.native.container-build=true endif::[] ---- endif::[] diff --git a/docs/src/main/asciidoc/includes/devtools/build-native.adoc b/docs/src/main/asciidoc/includes/devtools/build-native.adoc index dff6362c2ab31..4531e92616050 100644 --- a/docs/src/main/asciidoc/includes/devtools/build-native.adoc +++ b/docs/src/main/asciidoc/includes/devtools/build-native.adoc @@ -14,10 +14,10 @@ ifdef::devtools-wrapped[+] .Maven ---- ifdef::build-additional-parameters[] -./mvnw package -Dnative {build-additional-parameters} +./mvnw install -Dnative {build-additional-parameters} endif::[] ifndef::build-additional-parameters[] -./mvnw package -Dnative +./mvnw install -Dnative endif::[] ---- endif::[] diff --git a/docs/src/main/asciidoc/includes/devtools/build.adoc b/docs/src/main/asciidoc/includes/devtools/build.adoc index 86e8231978341..480621358d23e 100644 --- a/docs/src/main/asciidoc/includes/devtools/build.adoc +++ b/docs/src/main/asciidoc/includes/devtools/build.adoc @@ -14,10 +14,10 @@ ifdef::devtools-wrapped[+] .Maven ---- ifdef::build-additional-parameters[] -./mvnw clean package {build-additional-parameters} +./mvnw install {build-additional-parameters} endif::[] ifndef::build-additional-parameters[] -./mvnw clean package +./mvnw install endif::[] ---- endif::[]