Search code examples
javamaven-2maven-pluginjava-service-wrapper

Java Service Wrapper classpath ordering from Maven


So I understand that we can have a deterministic classpath order from Maven POM. But how can I use this in my Java Service Wrapper configuration file?


Solution

  • As per the example in the link below, use the maven appassember plug-in to generate your jsw scripts.
    Then whenever you add a new dependency in your pom and rebuild your app, your jsw script will be re-generated with the new dependency.

    http://mojo.codehaus.org/appassembler/appassembler-maven-plugin/usage_jsw.html