2

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

user1127860
  • 150
  • 2
  • 14

2 Answers2

3

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

Raghuram
  • 51,854
  • 11
  • 110
  • 122
  • Why they are not logging SHUT DOWN log message if they are explicitly shutting down the container? Do you have any idea? – JProgrammer Jul 09 '12 at 02:57
0

Well, it is possible. You need to create Maven sub-project and start it with maven-antrun-plugin as a background process.

yegor256
  • 102,010
  • 123
  • 446
  • 597