user1127860
user1127860

Reputation: 160

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?

Upvotes: 2

Views: 694

Answers (2)

yegor256
yegor256

Reputation: 105083

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

Upvotes: 0

Raghuram
Raghuram

Reputation: 52645

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

Upvotes: 3

Related Questions