quarkusio / quarkus

Quarkus: Supersonic Subatomic Java.
https://quarkus.io
Apache License 2.0
13.83k stars 2.7k forks source link

In quarkus:run, support modifying the arg line or jvm args #44626

Open edeandrea opened 14 hours ago

edeandrea commented 14 hours ago

Description

I'd love to be able to use the quarkus:run goal but be able to use jdk preview features.

i tried adding

<jvmArgs>--enable-preview --enable-native-access=ALL-UNNAMED</jvmArgs>
<modules>
    <module>jdk.incubator.vector</module>
</modules>

to the quarkus-maven-plugin config, but it doesn't work.

Implementation ideas

No response

venugopal98 commented 3 hours ago

Hi @edeandrea ,I want to work on this.

geoand commented 2 hours ago

@venugopal98 thanks for stepping up!

The changes need to go into https://github.com/quarkusio/quarkus/blob/1eaecd624368f156ecaeb8c52debbbd0961e5229/devtools/maven/src/main/java/io/quarkus/maven/RunMojo.java. The properties that @edeandrea mentions can be found in https://github.com/quarkusio/quarkus/blob/1eaecd624368f156ecaeb8c52debbbd0961e5229/devtools/maven/src/main/java/io/quarkus/maven/DevMojo.java, so you can handle them in similar way

venugopal98 commented 2 hours ago

Thanks, @geoand. Can you assign the issue to me? I will review the codebase and get back to you with any additional questions or details.

geoand commented 2 hours ago

Done!