The moose likes Ant, Maven and Other Build Tools and the fly likes maven in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "maven in eclipse" Watch "maven in eclipse" New topic

maven in eclipse

bisharjan pokharel

Joined: Apr 02, 2011
Posts: 1
Hello guys?? I have been using netbeans for last 3 years and now i am moving to ecipse.I am getting difficulty in running maven project in eclipse.It is a quite straight job to do in Netbeans.I have installed Plugins and other stuffs and created a project .But when i try to run it says to specify the goal.What is this and how to solve this ?? It gives a option to browse goal. Please post how to create an web application in eclipse??
Peter Johnson

Joined: May 14, 2008
Posts: 5852

What plugin did you install? Hopefully m2eclipse. How did you go about creating the project? Hopefully via New | Project | Maven | Maven Project. Or if you create the Maven project from the command line the m2eclipse plugin provides an "Import Maven project" option under File | Import. Also, what archetype did you use? For a web project you should use an archetype for a web project.

Maven projects in Eclipse typically use build-resources as the goal within Eclipse because that is the phase just before the testing phases.

To read more about goals and phase, see Maven the Complete Reference at

JBoss In Action
I agree. Here's the link:
subject: maven in eclipse
It's not a secret anymore!