This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Build Script Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Build Script" Watch "Build Script" New topic
Author

Build Script

Deep Mukherjee
Greenhorn

Joined: Jan 04, 2010
Posts: 20
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

Joined: Jun 25, 2001
Posts: 17149
    
  27

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.


An IDE is no substitute for an Intelligent Developer.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Build Script
 
It's not a secret anymore!