Maven download, install, uninstall, and MyEclipse configure Maven

Source: Internet
Author: User

Maven Download official website download: http://maven.apache.org/download.cgi Click on the link for the official website download page, turn to the indicated location, click the Red box option to download MAVEN installation 1, unzip the download, unzip to the location you want to be good,  I'm unzipping under D:/tools. 2, configure environment variables My Computer--Properties--Advanced system settings--environment variables, open environment variables have up to two locations can be added, above is for a user, the following is valid for all users, add where their own decision to click New, the variable name is maven_home, the variable value is the location of your MAVEN decompression, I configure the following and then find the environment variable path, then click Edit, at the end of the variable value added "%maven_home%\bin;" 3, verify that MAVEN is installed successfully windows+r, enter cmd, open the Command window input mvn-v Enter, see as shown, the installation is successful 4, modify the MAVEN local warehouse we use MAVEN to manage the jar package, MAVEN will first in the local warehouse to find the corresponding Jar, can not find to automatically according to the configuration to http://search.maven.org/download, after the download is placed in the local warehouse, then where is this local warehouse? If you haven't changed, the default is under c:/users/user name/.m2, we can modify the location of this local repository by modifying Maven's Setting.xml file to open D:\tools\apache-maven-3.5.2\ conf under Setting.xml file, add <localrepository>d:\tools\repository</localrepository>, as shown below, So the local repository will be changed to where we want it.
[HTML]View PlainCopy
  1. <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
  2. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemalocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/ Settings-1.0.0.xsd ">
  4. <Spanstyle=>     </span >  <localrepository >d:\tools\repository</localrepository ><span class=< Span class= "Attribute-value" > "Hljs-tag"  style= " margin:0px;padding:0px;font-family: ' Source code pro ',  monospace;font-size:12.6px;white-space: Pre;background-color:rgba (128,128,128,.05); " ></span>  
Maven uninstall maven because of the installation is only decompression, configuration environment variables, set up the local warehouse, so the uninstall is also very simple 1, delete the extracted MAVEN folder, 2, delete the settings of the environment variable maven_home, remove the "%maven_home" added in Path %\bin; " ; 3, delete the local warehouse; MyEclipse Configure MAVEN1, open windows-->preferences-->myeclipse-->maven4myeclipse-->installations, Click the Add button, select the Maven folder that you installed, and then tick the new MAVEN, and then apply is done in the OK configuration.

Reference: Maven download, install, uninstall, and MyEclipse configuration maven

Maven download, install, uninstall, and MyEclipse configure Maven

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.