federkasten / appbundle-maven-plugin

Maven plugin that creates an Application Bundle for OS X containing all your project dependencies and the necessary metadata
Apache License 2.0
179 stars 56 forks source link

Adding multiple JVMOptions app cannot start #64

Open burzillibus opened 4 years ago

burzillibus commented 4 years ago

I'm trying to add this JVMOptions to theInfo.plist directly from the pom.xml of my Java application <jvmOptions>-Xms512m -Xmx4096m</jvmOptions>

But adding these options I've noticed that in the bundled Info.plist they are write as a single row of JVMOptions, and if I try to open my app from terminal I obtain only an anonymous error LSOpenURLsWithRole() failed with error -10810 for the file <path_to_my_app>. and the application will stop immediately. I've tried to write multiple rows of JVMOptions in my pom, but the plugin add only the last one in the final plist file.

As a workaround I encode all the JVMOptions directly in an Info.plist template and pass it to the maven plugin. In that way it works fine.

I think it would be nice if we could define a list of JVMOption to write in the plist file.

I'm using a Mac OS X 10.15.6 and I embed a JRE 1.8.0_251 in the app.

Please let me know if do you need more infos.