[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

maven to copy jar, war to tomcat webapp

Posted on 2014-08-02
4
Medium Priority
?
501 Views
Last Modified: 2014-08-10
Hi,

I am following below link

http://evgeny-goldin.com/wiki/Copy-maven-plugin


I wonder how can i copy generated jar, war from maven clean command(mvn clean install ) automatically to tomcat webapp directory. please advise
0
Comment
Question by:gudii9
  • 2
  • 2
4 Comments
 
LVL 36

Accepted Solution

by:
mccarl earned 2000 total points
ID: 40238175
You should be able to use the copy plugin to do this, however if you want to be flexible and be able to deploy your webapp to remote tomcat's to (and handle automatically starting the webapp, etc, etc) you could look at the Cargo maven plugin. There are some examples here... https://weblogs.java.net/blog/johnsmart/archive/2009/12/28/automated-deployment-cargo-and-maven-short-primer
0
 
LVL 7

Author Comment

by:gudii9
ID: 40242379
however if you want to be flexible and be able to deploy your webapp to remote tomcat's

does cargo maven works with local tomcat as well(not remote in my case with windows laptop with eclipse and tomcat on same laptop)
please advise
0
 
LVL 36

Expert Comment

by:mccarl
ID: 40243328
Yes it can work just fine with a local Tomcat too.
0
 
LVL 7

Author Comment

by:gudii9
ID: 40244258
sure. I will try
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
A solution for Fortify Path Manipulation.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month18 days, 7 hours left to enroll

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question