mojohaus / appassembler

https://www.mojohaus.org/appassembler/
MIT License
93 stars 49 forks source link

EXTRA_JVM_ARGUMENTS not working as expected #69

Open ccarv opened 5 years ago

ccarv commented 5 years ago

I am using 2.0.0 of this plugin but have only found documentation for 1.10. I stumbled on a related issue but it doesn't address an alternative solution.

We have a very large multi-module Maven project with several appassembler components. The build POM defines the plugin and a base configuration that is applicable to all of the components within this project, and any component specific changes can be made with some POM properties (main class, additional command line arguments, etc...) at the component level. Everything has worked out great up until the JVM arguments.

I tried using the <extraJvmArguments> option and using a POM property but it doesn't do anything. Per the documentation in 1.10, this should initialize a EXTRA_JVM_ARGUMENTS.

Ideally, it would be nice if each component could have a "options" file where the JVM arguments are defined, and all appassembler would have to do is parse this and translate to the appropriate platform.

Is there any functionality that I could leverage that might give me this option?

Thank you