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 7190059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T19:25:57+00:00 2026-05-28T19:25:57+00:00

I want to set up my maven built web app, to build and deploy

  • 0

I want to set up my maven built web app, to build and deploy as part of my regular job.

The build works fine, however using the container deployment plugin seems unreliable in that a fresh deployment works but redeploying the app fails. The plugin can not deploy when app is already deployed (the war is already in webapps directory). To be clear if I delete the war’s and undeploy everthing and then to a jenkins build it works as expected but then subsequently they fail. The error message is :

org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: FAIL - Encountered exception javax.management.RuntimeErrorException: Error invoking method check

Should I instead be deploying as part of the maven build itself, using deploy:deploy and adding a distribution management section ?

Or is their a jenkins setting i am missing ?

  • 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-28T19:25:58+00:00Added an answer on May 28, 2026 at 7:25 pm

    I am doing this https://stackoverflow.com/a/6524012/106261

    I can either call cargo:redeploy as a post build step if I want to have deployment detail stored within pom

    Or I call cargo:undeploy as a post build step, then use container deploy plugin to actually deploy using the settings I put in jenkins.

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

Sidebar

Related Questions

We are using maven. I want to set up infrastructure, so that automatically built
I want to set up a maven javascript project using the maven-javascript-plugin. This works
i have a multiple marker Google map, it works fine but i want set
For a build-job on a build-server, I want to set the .m2 location to
i want maven to download custom jar files from an ftp how to set
I want to set a repeating alarm monthly; but my app resets the alarm
I build all my web projects at work using RAD/Eclipse, and I'm interested to
I'm developing my application as a set of OSGi bundles using Maven 2. Some
I have set up a Maven 2 repository (call 'dev repository') using Apache Archiva
I need to set locale for a single console. I want to build Apache

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.