Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

copy war file to specific location

 
Raja Pam
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me how to copy the war file to a specific location using maven.

Please help.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you need the cargo plugin: http://cargo.codehaus.org/Maven2+plugin
 
Raja Pam
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks a lot.
I used following tag.


and mentioned username and password in <servers> tag of settings.xml.

But i'm facing following exception:



Some one please help to resolve the issue.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Oh, what you really meant is that you were having problems deploying the war to a remote repository. Well, that's a different issue entirely and the cargo plugin will not help you there. (It is usually best to initially post the error that you are running into, doing so will get a solution quicker.)

Anyway, the problem appears to be that the remote repository you are using requires authentication to deploy artifacts. You need to add an entry in your settings.xml that looks like this:


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic