Version Description:
Eclipse 3.2.2
Maven 2.0.7
JDK 1.5 Above, this example is tested in the jdk1.50 version
MavenConfiguration Process
Maven official:http://www.apache.org/dyn/closer.cgi/maven/binaries/maven-2.0.7-bin.zip
after Maven downloads, unzip to the local directory, such asC: \ maven-2.0.7, configure the MAVEN environment variable m2_home ,
Add the bin directory to path .
Start cmd, input mvn–version, enter, you can see the maven version,
Description maven installed correctly;
For The use of Maven, please refer to the online information, do not describe here, there is a point to explain;
Maven2 mavenwindows xpc:\documents and settings\ %username%\.m2 username % login username for the operating system.
If c:\documents and settings\ %username%\.m2 setting.xml file, you can conf/setting.xml.m2 directory;
In the configuration file, there is a location to configure the local repository, the default is C:\Documents and Settings\%username%\.m2\ Repository, the default configuration is not appropriate, such as modifying the local repository save path to under the Maven installation directory, modify the setting.xml file under,<settings> to find the localrepository tag, which is commented out by default and added outside the comment section < Localrepository>c:/maven-2.0.7/repository</localrepository>, to save a location for the local repository, you need to manually Mavne Create the repository directory under the installation directory;
EclipseTo build the maven process:
How to install using Eclipse online:
Address input: http://m2eclipse.sonatype.org/sites/m2e/, tick on the list, click Next, go to next, have License select Accept, then wait for the installation and restart Eclipse.
If the download installation is particularly slow, you can cancel and then re-enter the following interface:
Click the red connection, and in the window that appears, remove all unnecessary hooks:
Click OK and reinstall, so the speed will be much faster.
http://blog.csdn.net/shiyuezhong/article/details/7959718
Eclipse+maven Development Environment Setup