- idea设置
2.settings.xml设置
<localRepository>C:\softafter\apache-maven-3.6.3\repository</localRepository>
<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>
- 如果是在国外,则不需要设置mirror,maven默认远程仓库:
https://repo.maven.apache.org/maven2