-qilin

  找到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>

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-08-24
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
  • 2022-02-07
猜你喜欢
  • 2022-02-07
  • 2021-10-02
  • 2022-12-23
相关资源
相似解决方案