(一)maven配置
1.maven下载地址
https://maven.apache.org/download.cgi
2.Maven仓库
https://mvnrepository.com/artifact/commons-httpclient/commons-httpclient/3.1
3.参考配置
1、https://blog.csdn.net/tirster/article/details/123418269 2、https://blog.csdn.net/xiguagaizi88/article/details/115376673 3、https://blog.csdn.net/weixin_44080187/article/details/122933194
4.maven BUILD FAILURE的解决方法
https://blog.csdn.net/qq_41970098/article/details/103745862
5.maven的conf下的setting设置
<mirrors>
<!-- 阿里云仓库 -->
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
</mirror>
<!-- 中央仓库1 -->
<mirror>
<id>repo1</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo1.maven.org/maven2/</url>
</mirror>
<!-- 中央仓库2 -->
<mirror>
<id>repo2</id>
<mirrorOf>central</mirrorOf>
<name>Human Readable Name for this Mirror.</name>
<url>http://repo2.maven.org/maven2/</url>
</mirror>
</mirrors>
<profile>
<id>JDK-1.8</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>
</profiles>
(二)用maven建立项目
建立项目后添加web模块,然后修改web模块修改