maven环境变量配置
官网下载maven
http://maven.apache.org/download.cgi
1 .首先配置系统变量
2.然后配置path里面的变量
3.确定之后,打开cmd输入mvn -version检查是否配置成功
进入conf文件夹打开setting.xml配置阿里云镜像在mirrors标签中设置
<mirror>
<id>aliyunmaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>https://maven.aliyun.com/repository/public </url>
</mirror>
本地仓库
在maven目录创建maven-repo文件夹
然后在setting.xml中localRepository标签中加上刚刚创建的路径
<localRepository>D:\dashuju\apache-maven-3.6.3\maven-repo</localRepository>
//防止资源导出失败的问题
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>