1. 配置阿里云镜像
找到Maven的安装目录,找到settings.xml文件
<mirrors> <mirror> <id>nexus-aliyunid> <mirrorOf>centralmirrorOf> <name>Nexus aliyunname> <url>http://maven.aliyun.com/nexus/content/groups/publicurl> mirror> mirrors>
2. 配置Maven使用JDK1.8进行项目编译
<profiles><profile><id>jdk-1.8id><activation><activeByDefault>trueactiveByDefault><jdk>1.8jdk>activation><properties> <maven.compiler.source>1.8maven.compiler.source> <maven.compiler.target>1.8maven.compiler.target> <maven.compiler.compilerVersion>1.8maven.compiler.compilerVersion>properties>profile> profiles>
来源地址:https://blog.csdn.net/qq_67021195/article/details/130210030