The Launch4J port for Maven is terribly documented and I fail to use it in the way I want.
Is there some good Maven plugin to gernerate an exe file with following criteria (at least some of them, if possible):
- No wrapping of jars
- Jars can be in different directories relative to the jar file
- The jars are exactly the dependancies, so adding new jars to a directory with a different name does not have any effect.
- Xmx and Xms can be configured through a file
- Process runs under the .exe name if possible (not so important)
You can use the maven-assembly-plugin, with two execution one specifying the main class and packaging all your dependencies in a single jar, so you don't need any classpath. The second execution will put all you configuration files in the same jar. So finaly you have not an exe you have a jar with the manifest file in a zip file.