• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Build Script

 
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
Saloon Keeper
Pie
Posts: 18153
52
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic