This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes eclipse maven plugin Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "eclipse maven plugin " Watch "eclipse maven plugin " New topic

eclipse maven plugin

Rishabh Bhardwaj

Joined: Jul 27, 2013
Posts: 2
I have maven plug-in installed with eclipse (kepler version). So here when i have configured a maven build with

goals : clean install

when i run this maven build , it cleans and build the WAR again and put it in the target folder with other folders.

at this target location i have my updated WAR that i wish to deploy.

But i always have to copy this WAR to webapps folder so that my apache can read the updated WAR.

Can there be a way so that by maven build my WAR is updated at the webapps folder ?

Please please help me , i am sick and tired of copying , pasting my WAR at the webapps location of tomcat server.

Joe Ess

Joined: Oct 29, 2001
Posts: 8836

Since this doesn't have much to do with Struts, I'll move it to a more closely related forum...

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15951

You might want to read this:

Customer surveys are for companies who didn't pay proper attention to begin with.
Peter Johnson

Joined: May 14, 2008
Posts: 5812

Have a look at the cargo plugin, that should do what you need (copying the war to your tomcat webapps directory).

JBoss In Action
I agree. Here's the link:
subject: eclipse maven plugin
Similar Threads
Hot Deployment in IntelliJ and Tomcat
m2eclipse: Resources not copied over to target folder
maven clean war
Maven: What's the big deal?
Maven Assembling the Project during the 'mvn install' phase