• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maven in eclipse

 
bisharjan pokharel
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 http://www.sonatype.com/books/mvnref-book/reference/public-book.html
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic