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

  • Home
  • SEARCH
  • 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 8046439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T05:47:11+00:00 2026-06-05T05:47:11+00:00

Got a simple task upon: mvn deploy copy final artifact org.foo.MyProject_1.2.3.war to /tomcat/webapps/myproject.war Set

  • 0

Got a simple task upon: mvn deploy copy final artifact org.foo.MyProject_1.2.3.war to /tomcat/webapps/myproject.war

Set up pom according to the maven docs:

...
<distributionManagement>
        <repository>
                <id>local_tomcat</id>
                <url>/tomcat/webapps</url>
        </repository>
</distributionManagement>
...    
<extensions>
        <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-file</artifactId>
                <version>2.2</version>
        </extension>
</extensions>
...

But it didn’t work. By some reason wagon tries to create directory /org/foo/MyProject/1.2.3 and fails.

Of course i could utilise tomcat:deploy or ant, but i thought deploy was a right choice for deployment.

It appears to me that i mistreated deploy plug in. It is just the same as install with ability to install artifact on remote repository. Am i right?

If deploy is wrong choice what is proper way of transferring/renaming files in maven?
Wagon looks nice though not sure if it can rename files.

thanx in advance

  • 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-06-05T05:47:12+00:00Added an answer on June 5, 2026 at 5:47 am

    The deploy in the Maven meaning is to put artifacts into a remote repository (usually a repository manager or sometimes Maven central) and NOT into containers like Tomcat etc. Furthermore based on the lifecylce in Maven the deploy phase comes after the install phase which means in other words that the install has already run if you have called mvn deploy.
    If you would like to deploy an artifact (usually a war) to Tomcat the maven-tomcat-plugin is the right choice. For doing a kind of integration tests the cargo2-maven-plugin might be a better solution.

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

Sidebar

Related Questions

I have a very simple task but got confused. I need my action to
I've got really simple code: static void Main(string[] args) { var task = Task.Factory.StartNew(GetInt);
I've got a simple task for now: connect to a remote server and get
I wish to accomplish a fairly simple task (I hope!) I got two div
This is just a simple async task but I have always got strange compiler
I got stuck with XML and Python. The task is simple but I couldn't
I've got a relatively simple task I'm trying to accomplish with the Google Calendar
I've got a simple one to many relationship between tasks and priorities. class Task
Let's assume we got simple page that accepts one parameter: <f:viewParam name=name value=#{bean.name}/> When
Hello i'v got simple program which is couting characters in given text until line

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.