Search code examples
tomcatmavenmaven-cargo

Start Tomcat with Maven Cargo without stop when Maven is finish


Is ist possible to Start a Tomcat with Maven without stopping Tomcat after Maven has finished?


Solution

  • It does not look possible. Look at the plugin documentation here.

    cargo:start : will automatically shut down as soon as the parent Maven instance quits
    cargo:run : Start a container and wait for the user to press CTRL + C to stop