earldouglas / sbt-war

Package and run .war files with sbt
BSD 3-Clause "New" or "Revised" License
382 stars 105 forks source link

Extract the container main class names to settings #978

Closed earldouglas closed 1 month ago

earldouglas commented 1 month ago

This creates two new hidden settings:

These are used when forking new container processes to specify the main method of the forked JVM.

Note that for WarPackageRunnerPlugin, we dropped the -jar argument and converted to -cp so that we can specify the main class manually. This also lets us use multiple libraries in the War configuration, if ever needed.