appbundle-maven-plugin icon indicating copy to clipboard operation
appbundle-maven-plugin copied to clipboard

Adding multiple JVMOptions app cannot start

Open burzillibus opened this issue 4 years ago • 0 comments

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.

burzillibus avatar Jul 21 '20 14:07 burzillibus