camel-quarkus icon indicating copy to clipboard operation
camel-quarkus copied to clipboard

[examples] Unify command for native build

Open JiriOndrusek opened this issue 2 weeks ago • 4 comments

Commandfor the native build is mosty mvn clean package -Pnative. There is also 1 command with -Dnative. This should be unified.

JiriOndrusek avatar Dec 11 '25 08:12 JiriOndrusek

@aldettinger I see your comment https://github.com/apache/camel-quarkus-examples/pull/194#discussion_r1542708856, does this still apply? (do we prefer -Dnative over -Pnative)>

JiriOndrusek avatar Dec 11 '25 08:12 JiriOndrusek

Whao, well done remembering that. It's been such a long time that the rationale behind this is totally forgotten :) The only tangible element would be that the quarkus native doc is using '-Dnative'.

I would say it still applies. We can dig more with the quarkus team if more explanation are needed.

aldettinger avatar Dec 11 '25 08:12 aldettinger

This commit mentions this is what is recommended by quarkus: https://github.com/quarkusio/quarkus/commit/0b8a4f087979ca1e9cc3c4f951aaff300e87d51e

aldettinger avatar Dec 11 '25 09:12 aldettinger

Small addition on the subject: when you create a new project using io.quarkus:quarkus-maven-plugin:3.27.1:create you end up with documentation (the README.md) using -Dnative and a pom file with the native profile. It's a little bit confusing.

gansheer avatar Dec 11 '25 10:12 gansheer