• Post Reply Bookmark Topic Watch Topic
  • New Topic

Build Script  RSS feed

 
Deep Mukherjee
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use maven for built script in eclipse... I have installed the plugin in eclipse. I am importing the existing web project
in the workspace and trying to make it war.but i failed...


can any one suggest the steps how i can archive the existing web project as war.It would be very convinient if the steps are explained with screenshots.


Thanks in advance.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, technically, Maven isn't based on developer "build scripts". It's based on the POM, which is more about defining what's located where and what the dependencies are.

To build a Maven WAR project, define the project as a WAR in your pom.xml file. When building inside Eclipse, right-click on the pom.xml in the navigator, and select the "Run As" menu. It should display a number of Maven goals. Usually "package" will do what you want.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!