maven项目搭建
一:下载JDK 网址: https://www.oracle.com/technetwork/java/javase/downloads/index.html
所有版本下载地址:https://www.oracle.com/technetwork/java/javase/archive-139210.html
二:下载maven,网址: http://maven.apache.org/download.cgi
三:配置环境变量
JAVA_HOME --》D:\jdk8
MAVEN_HOME --》D:\maven3.6\apache-maven-3.6.2
path --》%JAVA_HOME%\bin;D:\git\Git\cmd;D:\TortoiseGit\bin;%MAVEN_HOME%/bin
配置setting.xml
<localRepository>D:\mavenRepository</localRepository>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
<profile>
<id>jdk</id>
<activation>
<activeByDefault>true</activeByDefault>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
配置eclipse maven
设置护眼背景色
maven镜像仓库地址:
https://mvnrepository.com/