Maven Java Development Environment

View more Java development environment configuration, click the "Java development environment configuration Filmography"

Shop Chapter: Maven installation tutorial

1) downloading the installation package Maven

https://maven.apache.org/download.cgi

In fact, you can easily search the Internet to download the installation package

Note: win10 operating system, download the installation package format apache-maven-3.6.1-bin.zip

 

2) Installation

2.1 Select No Chinese directory, unzip the installation package that is, the installation is complete

 

2.2 configuration environment variable:

MAVEN_HOME, installation package path is: D: \ Maven \ apache-maven-3.5.4-bin \ apache-maven-3.5.4;

Under the existing PATH added:% MAVEN_HOME% \ bin;

 

2.3 test whether the installation was successful:

The dos window to perform mvn -v, following the successful return:

Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-18T02:33:14+08:00)

Maven home: D:\Maven\apache-maven-3.5.4-bin\apache-maven-3.5.4\bin..

Java version: 1.8.0_73, vendor: Oracle Corporation, runtime: C:\Program Files\Java\jdk1.8.0_73\jre

Default locale: zh_CN, platform encoding: GBK

OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

 

3) configuration file

In the maven installation package the same directory create a folder named repository;

Find maven configuration file D: \ Maven \ apache-maven-3.5.4-bin \ apache-maven-3.5.4 \ conf \ settings.xml;

Configuring local repository path:

<! - Configure the local warehouse ->

<localRepository>D:\Maven\repository</localRepository>

Ali server configuration from the lead pack:

<mirrors>

<! - Configure Ali cloud PW ->

  <mirror>

    <id>alimaven</id>

    <name>aliyun maven</name>

    <url>http://maven.aliyun.com/nexus/content/groups/public/</url>

    <mirrorOf>central</mirrorOf>

  </mirror>

</mirrors>

 

4) IDEA configuration

 

Guess you like

Origin www.cnblogs.com/xdzy/p/10992661.html