Eclipse+maven Development Environment Construction

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.