Conversion to WAR

SeedStack projects created by the generate goal of the SeedStack Maven plugin are designed to be run from command-line with an embedded Web server. You can convert this kind of project to a classic WAR.

  1. Add a src/main/webapp folder to hold the document root.
  2. Add a <packaging>war</packaging> tag to the pom.xml.
  3. Remove the build-capsule plugin execution (package goal of seedstack-maven-plugin) as this only works with standalone JAR files.
  4. Configure the maven-war-plugin to ignore the absence of the web.xml file:
  1. Remove the embedded Web server from project dependencies:

On this page