Installation
- Install and Configure Maven
- Download and unzip the Maven zip file into the installation directory. For example, in Windows, it could be c:\maven, or /usr/local/maven in Linux.
- Add the following environment variables:
- M2_HOME
The installation directory of Maven, e.g. c:\maven in Windows. - M2
The bin directory under the Maven installation directory, e.g. %M2_HOME%\bin. - Install Maven plugin in Eclipse
- In Eclipse, add a new software site in "Help" -> "Install New Software…". Next to the "Work with" dropdown list, press the "Add…" button.
- In the popup dialog (see Figure 2), input the followings:
Name: Maven Location: http://m2eclipse.sonatype.org/sites/m2e
Figure 2: Add a software site for installing new software/plugin - Select the newly added Maven site from the “Work with” dropdown list.
- Check the option “Maven Integration for Eclipse (Required)” from the list (see Figure 3).
- Press the “Next” button.
Figure 3: Available Software in Eclipse |
References
- Maven, http://maven.apache.org/
No comments:
Post a Comment