Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

eclipse maven plugin

 
Rishabh Bhardwaj
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 9280
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this doesn't have much to do with Struts, I'll move it to a more closely related forum...
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18156
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to read this: http://www.coderanch.com/t/630100/tools/maven-tomcat
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at the cargo plugin, that should do what you need (copying the war to your tomcat webapps directory).
http://cargo.codehaus.org/Maven2+plugin
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic