You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -249,10 +249,10 @@ Compiling fully static binaries is done by statically linking https://musl.libc.
249
249
250
250
Producing a native executable can lead to a few issues, and so it's also a good idea to run some tests against the application running in the native file. The reasoning is explained in the link:getting-started-testing#quarkus-integration-test[Testing Guide].
251
251
252
-
To see the `GreetingResourceIT` run against the native executable, use `./mvnw verify -Pnative`:
252
+
To see the `GreetingResourceIT` run against the native executable, use `./mvnw verify -Dnative`:
253
253
[source,shell,subs=attributes+]
254
254
----
255
-
$ ./mvnw verify -Pnative
255
+
$ ./mvnw verify -Dnative
256
256
...
257
257
Finished generating 'getting-started-1.0.0-SNAPSHOT-runner' in 22.0s.
* `quarkus.native.container-build=true` allows for creating a Linux executable without GraalVM being installed (and is only necessary if you don't have GraalVM installed locally or your local operating system is not Linux)
@@ -579,7 +579,7 @@ USER quarkus
579
579
WORKDIR /code
580
580
RUN ./mvnw -B org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline
581
581
COPY src /code/src
582
-
RUN ./mvnw package -Pnative
582
+
RUN ./mvnw package -Dnative
583
583
584
584
## Stage 2 : create the docker final image
585
585
FROM quay.io/quarkus/quarkus-micro-image:2.0
@@ -714,7 +714,7 @@ USER quarkus
714
714
WORKDIR /code
715
715
RUN ./mvnw -B org.apache.maven.plugins:maven-dependency-plugin:3.1.2:go-offline
716
716
COPY src /code/src
717
-
RUN ./mvnw package -Pnative -DskipTests -Dquarkus.native.additional-build-args="--static","--libc=musl"
717
+
RUN ./mvnw package -Dnative -DskipTests -Dquarkus.native.additional-build-args="--static","--libc=musl"
718
718
719
719
## Stage 2 : create the final image
720
720
FROM scratch
@@ -737,7 +737,7 @@ More details on xref:./upx.adoc[UPX Compression documentation].
737
737
In certain circumstances, you may want to build the native image in a separate step.
738
738
For example, in a CI/CD pipeline, you may want to have one step to generate the source that will be used for the native image generation and another step to use these sources to actually build the native executable.
739
739
For this use case, you can set the `quarkus.package.type=native-sources`.
740
-
This will execute the java compilation as if you had started native compilation (`-Pnative`), but stops before triggering the actual call to GraalVM's `native-image`.
740
+
This will execute the java compilation as if you had started native compilation (`-Dnative`), but stops before triggering the actual call to GraalVM's `native-image`.
0 commit comments