Installing Maven plugin in Eclipse JUNO

Some time ago we have shown you how to install Maven plugin in Eclipse INDIGO. Today we are going to show you how to quickly setup Maven 3 Eclipse plugin in Eclipse JUNO. In about 5 minutes you will be ready to start your first project.

1. Maven plugin installation

• Start Eclipse
• Navigate to http://www.eclipse.org/m2e/download
• Copy the latest Latest m2e linkhttp://download.eclipse.org/technology/m2e/releases
• Navigate to Help -> Install New Software option
• Add a new repository – enter copied link as a Location value
• Hit OK and wait for the sync process to end
• Pick m2e - Maven Integration for Eclipse
• Click Next and then accept the license agreement. Wait for the installation process to end.
• Restart Eclipse

2. Setting up maven plugin

Now we are going to set up maven 3 eclipse plugin to use external maven installation. This way you will share the same artifact repository while building project from Eclipse IDE and straight from the console as well. If you want to find out how to install maven 3 on your machine visit our ealier tutorial here.

• Navigate to Window->Preferences->Maven->Installations
• Click Add
• Point the external maven installation folder
• Click Apply

3. Testing configuration

We are going to create a sample web app project to test if the maven 3 eclipse plugin has been set up correctly.

• In the Project Explorer window right click and select New->Other
• Select Maven Project and click Next
• In the filter field enter webapp
• Pick maven-archetype-webapp
• Click Next
• Enter Group Id and Artifact Id values
• Click Next. An empty webapp project has been created.

5 Responses to "Installing Maven plugin in Eclipse JUNO"

  1. Alvin Adolfo Estrada Ortiz says:

    Good Moning

    I have a problem at the moment to create a maven webapp proyect in eclipse kepler, it shows the next message

    Could not calculate build plan: Plugin org.apache.maven.plugins:maven-war-plugin:2.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.1.1
    Plugin org.apache.maven.plugins:maven-war-plugin:2.1.1 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-war-plugin:jar:2.1.1

    Coul you please help me? :)

    Reply
    • itcuties says:

      Hello, the plugin can be set to use the external maven installation as shown in this video. Do you do that? Can you tell what’s your maven installation version?

      Reply
  2. rahul says:

    Really simple .. easy to do stuff.. Thanks

    Reply
  3. MD Aftab Alam says:

    nice maven installation video …

    Reply
  4. Shayne says:

    When getting rid of drain clogs, avoid using chemical cleaners.
    But make sure that you consider the style your home is built
    with. These microbes will settle in the tank and digest the waste in the tank.

    Reply

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>