Maven - Maven with Eclipse IDE - maven tutorial




maven tutorial tags : apache maven , maven repository , maven central

How to use Maven With Eclipse IDE ?

  • Maven also provides an excellent plugin which helps to integrate both eclipse and maven together.
  • M2eclipse is the plugin used to integrate maven and eclipse.
  • Some of the key benefits of this plugin:
    • Run Maven goals from Eclipse.
    • View the output of Maven commands inside the Eclipse using its own console.
    • Update maven dependencies with IDE.
    • Launch Maven builds from within Eclipse.
    • It does the dependency management for Eclipse build path based on Maven's pom.xml.
    • It resolves Maven dependencies from the Eclipse workspace without installing to local Maven repository (requires dependency project be in same workspace).
    • Automatic downloads required dependencies and sources from the remote Maven repositories.
    • It provides wizards for creating new Maven projects, pom.xml and to enable Maven support on existing projects
    • It provides quick search for dependencies in remote Maven repositories

Install m2eclipse Plugin

  • Follow the below link to easily install the m2eclipse plugin in your eclipse IDE.
  • http://books.sonatype.com/m2eclipse-book/reference/ch02s03.html

Creating a maven project in eclipse

  • Below is the step by step explanation on creating a maven project in eclipse.
  • Step 1: Open the eclipse. Go to File -> New -> Project and search by the keyword maven and select Maven Project
 Maven with Eclipse IDE

learn maven tutorial - maven with eclipse IDE - maven example

  • Step 2: Select the checkbox saying, Create a simple project and click on Next.
Maven with Eclipse IDE2

learn maven tutorial - Maven with eclipse IDE2 - maven example

  • Step 3: Provide the details for groupId, artifactId, version and packaging as shown below and click on Finish.
Maven with Eclipse IDE3

learn maven tutorial - maven with eclipse IDE - maven example

  • Step 4: A new project name SampleMavenProject will be created as shown below:
Maven with Eclipse IDE4

learn maven tutorial - maven eclipse IDE - maven example


Wikitechy provides an indepth knowledge on the below maven tutorial items such as maven download , maven install , maven goals , maven build , maven commands , maven plugin , maven search , maven eclipse , maven deploy , eclipse maven , maven junit , maven java , hibernate maven , maven project , java maven , maven version , maven proxy , maven 2 , maven pom , maven eclipse plugin , maven java version , maven properties , maven install windows , how to create maven project in eclipse , eclipse maven plugin , maven dependencies , what is maven in java , maven apache , maven project structure , how to install maven in eclipse

Related Searches to Maven with Eclipse IDE

Adblocker detected! Please consider reading this notice.

We've detected that you are using AdBlock Plus or some other adblocking software which is preventing the page from fully loading.

We don't have any banner, Flash, animation, obnoxious sound, or popup ad. We do not implement these annoying types of ads!

We need money to operate the site, and almost all of it comes from our online advertising.

Please add wikitechy.com to your ad blocking whitelist or disable your adblocking software.

×