Quarkus 1.13.0.Final unable to build native image at command line

552 views
Skip to first unread message

Sébastien Dionne

unread,
Apr 6, 2021, 11:43:38 AM4/6/21
to Quarkus Development mailing list
I use the online generator to generate a basic demo.  I downloaded the zip file and unzip it.  I launch the command that is in readme.md

mvn package -Pnative -Dquarkus.native.container-build=true

but It doesn't compile.  The documentation in the readme is not up to date ?

PS C:\Users\sd003526\Downloads\code-with-quarkus (5)\code-with-quarkus> mvn package -Pnative -Dquarkus.native.container-build=true
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< org.acme:code-with-quarkus >---------------------
[INFO] Building code-with-quarkus 1.0.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.823 s
[INFO] Finished at: 2021-04-06T11:40:24-04:00
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase ".native.container-build=true". You must specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available lifecycle phases are: validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-clean, clean, post-clean, pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
PS C:\Users\sd003526\Downloads\code-with-quarkus (5)\code-with-quarkus>

I'm using this : 
PS C:\Users\sd003526\Downloads\code-with-quarkus (5)\code-with-quarkus> mvn --version
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: C:\dev\maven\bin\..
Java version: 11.0.6, vendor: Oracle Corporation, runtime: C:\dev\jdk11
Default locale: fr_CA, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
PS C:\Users\sd003526\Downloads\code-with-quarkus (5)\code-with-quarkus>

Guillaume Smet

unread,
Apr 6, 2021, 12:31:49 PM4/6/21
to sebastie...@gmail.com, Quarkus Development mailing list
Please open an issue with the generated project attached.

--
You received this message because you are subscribed to the Google Groups "Quarkus Development mailing list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quarkus-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/quarkus-dev/738598ef-81f8-4e23-8dea-94162296945dn%40googlegroups.com.

Georgios Andrianakis

unread,
Apr 6, 2021, 12:33:54 PM4/6/21
to Guillaume Smet, Sébastien Dionne, Quarkus Development mailing list
It does look like your command line is wrong somehow

George Gastaldi

unread,
Apr 6, 2021, 12:36:30 PM4/6/21
to Georgios Andrianakis, Guillaume Smet, Sébastien Dionne, Quarkus Development mailing list
Are you sure there isn't a space between "-Dquarkus." and "native-container-build=true" ?

Sébastien Dionne

unread,
Apr 6, 2021, 12:39:57 PM4/6/21
to Quarkus Development mailing list
there is no space in the command

Reply all
Reply to author
Forward
0 new messages