mracale
在 Maven 安装目录下的 settings.xml 配置文件中, 添加如下配置
 
<!--开始处更改下载依赖的存放路径, 以下目录需要已经创建-->
<localRepository>D:\javasource\maven-repository</localRepository>

<!--在 mirrors 标签下 添加阿里云maven私服库-->
<mirrors>
    <mirror>
    <id>alimaven</id>
    <mirrorOf>central</mirrorOf>
    <name>aliyun maven</name>
 <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    </mirror>
</mirrors>

<!-- 在 profiles 标签下指定jdk版本 -->
<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>
IntelliJ IDEA 设置Maven
 

分类:

技术点:

相关文章:

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