eclipse - How do I start and stop a Cargo container using M2Eclipse? -


to run maven application in windows, start cargo container command:

c:\code\myapp> mvn -p cargo.run 

then use ctrl-c stop cargo container.

i want same thing in eclipse. i've created run configuration maven:

enter image description here

this allows me start cargo container, can view in the ecipse console:

enter image description here

at point, ctrl-c nothing. read here ctrl-c doesn't work inside eclipse, can stop container mvn cargo:stop. can see in screenshot, i'm trying use command doesn't anything. there's maven console in eclipse, command doesn't there either:

enter image description here

if use terminate button in console window (red square), leaves orphaned jre instance have stop manually, , container still running.

is there window should trying use command? there better way start , stop container in eclipse?

there information missing in question, pom configuration lot provide best answer possible.

the solution work sure create new run configuration maven on project, did launch container cargo, instead of using profile created launch cargo, use goal cargo:stop , run configuration.

it launch command mvn cargo:stop in shell , stop container. , able stop console of execution launched cargo without having orphaned jre running.

a few years ago (about 8...) tried find better solution when worked lot cargo not improved way it.


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -