标签:yun maven配置 efault com aliyun settings url style compile
找到Maven的安装目录,在安装目录下找到conf->settings.xml,在该文件中找到<mirrors></mirrors>标签,在该标签内添加阿里云镜像:
<mirror>
<id>nexus-aliyun</id>
<mirrorOf>central</mirrorOf>
<name>Nexus aliyun</name>
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
</mirror>
接着找到<profiles></profiles>标签,在该内添加jdk1.8的配置
<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>
标签:yun maven配置 efault com aliyun settings url style compile
原文地址:https://www.cnblogs.com/-qilin/p/12823327.html