Beginner maven (2)-maven/artifactory/m2eclipse installation whole process

Source: Internet
Author: User
Tags command line artifactory

Some time ago to study maven, halfway because of the work of a period of time, again to see the installation process is basically forgotten. Have to look for information and then come again, will maven,artifactory and m2eclipse installation of the entire process of recording the record out, the memo. In addition, I think this information should be more suitable for MAVEN beginners, do it once you can complete the installation of three things, and then you can learn and use.

A. Install Maven

Install the official standard installation method (Http://maven.apache.org/download.html#Installation) to install the following steps

1. Download uncompressed apache-maven-2.0.9-bin.zip to installation directory

2. Add environment variable M2_home, point to Maven's installation directory, and note that you cannot end with "\"

3. Add (optional) MAVEN environment variable maven_opts, value is "-xms256m-xmx512m", the following can add additional

4. Modify path to add%m2_home%/bin to path

5. Ensure that the JAVA_HOME environment variable exists and is set correctly to ensure that the%java_home%/bin directory is in the path

After installation, perform "MVN--version" at the command line to detect if Maven is properly installed.

Add:

1. If you are using a proxy to access the Internet, you need to add the appropriate agent information to the MAVEN profile

Otherwise there will be an error:

The pulgin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or valid version could be found
     ......

Workaround:

Open the file Maven/conf/settings.xml, find <proxies>, open the original commented <proxy>, and modify the corresponding information.

Attention:

1.)

2. If the user name, password do not need, you can delete <username><password>, set to null also line.

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.