1. Apache maven 3.39配置
1.环境变量自己配置,
2.配置阿里云镜像和本地仓库
<localRepository>D:Apachemaven
epository</localRepository>
<mirror>
<id>alimaven</id>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
<mirrorOf>central</mirrorOf>
</mirror>
3.profiles标签添加
<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>
4.idea配置
点击->setting
搜索maven
点击importing->勾选
settings->system settings->updata下面的Use secure Connetion去掉
点击apply
5.创建项目
创建完成之后发现pom.xml文件中标签报错消失