(i) Development environment
Eclipse Mars2 (4.5.2) + Maven 3.5.0
(ii) configuration steps
1. First of all, the MAVEN environment needs to be configured, maven:http://maven.apache.org/download.cgi
After the download is complete, go to the Conf folder in the MAVEN installation directory, modify the Settings.xml file, and add the following under the Mirrors tab:
配置maven仓库镜像,可以使以后下载jar包时提升速度
< mirror><Id>alimaven</id><Name>aliyun maven</name><url>http://maven.aliyun.com/nexus/content/groups/public/</url>< mirrorof>central </ mirrorof> </ < Span style= "color: #008000; Font-size:13px ">MIRROR>
To configure the local warehouse address, You can save the downloaded jar package to a local
<localrepository> warehouse address </localRepository>
3. Start Eclipse, open windows-Preferences, MAVEN
Select Add at installations, add Maven path
span>
4. Setting up profiles in Maven---User Settings
Configuration complete
Build maven under the Eclipse development environment