Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6901219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:38:45+00:00 2026-05-27T07:38:45+00:00

Using the run mojo from the cargo-maven2-plugin I would like to know of a

  • 0

Using the run mojo from the cargo-maven2-plugin I would like to know of a better way to shut down the container.

The console output says Ctrl+C to stop, but that seems to do nothing.

If I terminate, it leaves an orphan java.exe process that I have to kill myself.

Am I doing something wrong? This is a little cumbersome.

Edit: I am usign Tomcat in a standalone config. If I use embedded Jetty, naturally terminate works, however we need Tomcat.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T07:38:45+00:00Added an answer on May 27, 2026 at 7:38 am

    The CTRL+C thing seems to be a known Eclipse/Jetty issue. The last post says that issuing mvn cargo:stop would stop an already running container, however it doesn’t work for me—albeit, I’ve only made some quick test a with an archetype generated webapp.

    Using Eclipse Indigo Service Release 1 (20110916-0149) if I issue mvn cargo:run and wait for the container to boot (for now it’s Jetty, no configurations; let’s see if you can get it working like this) clicking on the big red Terminate button kills the running process and no lingering java{,w}.exe are left behind.

    I don’t know how do you issue mvn cargo:run from Eclipse right now, but maybe you’re using it as an External Tool (and that’s why a process is left behind). If you have m2eclipse installed you should create Maven run configurations for it like this:

    Run --> Run Configurations --> Maven build --> right click --> New
    

    It should be straightforward from here on.

    (I’ve found two Eclipse bug tickets (here and here) that seems to be related to Eclipse’s inability to read a healthy CTRL+C via it’s console.)


    I’ve verified that when I’m starting an external Tomcat (7.0.23) instance with mvn cargo:run from Eclipse via the m2e plugin (after the container have started) CTRL+C indeed doesn’t work.

    After this I’ve ran mvn cargo:run from my Cygwin console. The result was the same.

    Finally I’ve tried it from Windows’s cmd and it worked.

    My guess is that this is a bug in the cargo-maven-plugin.

    Running mvn cargo:stop from either Eclipse or Cygwin did the trick for me.

    You can run the cargo plugin from Eclipse by creating a Maven build Run or Debug configuration in Eclipse.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to execute WScript.Shell command using Run and set it to be
I'm using Sqlyog to run queries on a db. Is there a way to
I am using execv() to run commands from /bin/ such as 'ls', 'pwd', 'echo'
I'm using Application run to call several macros in order like this. Sub Run_All_Macros()
I'm trying to invoke a native Windows command from Cygwin using run , but
I'm trying to start a Rails app from Maven exec plugin. I'm using ./script/rails
I'm using the maven cargo plugin to remotely deploy a servlet in tomcat. When
I'm trying to generate beans from an xsd by using the jaxb2-maven-plugin maven plugin,
I am developing a WPF application that must run using Windows Classic theme. The
I have a C# exe that needs to be run using WMI and access

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.