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:
this allows me start cargo container, can view in the ecipse console:
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:
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
Post a Comment