Maven some summary

Source: Internet
Author: User

 1.maven installation and configuration   download Maven's installation package from Maven's official website, http://maven.apache.org/download.html.   Unzip it in the directory you want to place.   Then configure MAVEN's environment variables (m2_home), such as my maven installed under D:\Maven\apache-maven-3.0.3, then m2_home=d:\maven\apache-maven-3.0.3. If you want to use the MAVEN command in any directory, add the bin directory under the M2_home directory to the System environment variable path.   Use MVN-V to see the current version of Maven, indicating that the installation was successful.   NOTE: Before you install MAVEN, you must make sure that your computer has a JDK installed and that the Java environment is configured. 2. Set HTTP proxy   In some cases security considerations, the host cannot directly access the external network of the central warehouse, but instead of a security-certified proxy server, through the proxy server to access the Central warehouse.   How do I configure an HTTP proxy?   First after MAVEN is installed, MAVEN configuration information (Setting.xml) is placed in the m2_home/conf directory, and we can set up the proxy by modifying the file. However, if you modify the file directly, the impact will be global and not conducive to future upgrades. So we copy the file and put it under ~/.M2, then the file will overwrite the Setting.xml under m2_home/conf and only be valid for the current user. This allows each user to configure Maven to suit their preferences and needs. Specifically how to configure the HTTP proxy in Setting.xml, code into:  <proxies>       <proxy>       <id>my-proxy</id>       <active>true</active>       <protocol>http</protocol>       

Maven some summary

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.