See this for starters: https://www.vogella.com/tutorials/EclipseMaven/article.html
If you get the error "maven could not resolve archetype", try the suggestions in these 2 links:
https://stackoverflow.com/questions/15506043/create-a-maven-project-in-eclipse-complains-could-not-resolve-archetype
https://stackoverflow.com/questions/18499931/eclipse-java-ee-new-maven-project-could-not-resolve-archetype
To setup Eclipse with M2E:
Way 1: Maven Eclipse plugin installation step by step:
- Open Eclipse IDE
- Click Help -> Install New Software...
- Click Add button at top right corner
- At pop up: fill up Name as "M2Eclipse" and Location as "http://download.eclipse.org/technology/m2e/releases" or http://download.eclipse.org/technology/m2e/milestones/1.0
- Now click OK
After that installation would be started.
Way 2: Another way to install Maven plug-in for Eclipse by "Eclipse Marketplace":
- Open Eclipse
- Go to Help -> Eclipse Marketplace
- Search by Maven
- Click "Install" button at "Maven Integration for Eclipse" section
- Follow the instruction step by step
After successful installation do the followings in Eclipse:
- Go to Window --> Preferences
- Observe, Maven is enlisted at left panel
Finally,
- Click on an existing project
- Select Configure -> Convert to Maven Project
No comments:
Post a Comment