Maven

本地安装位置:D:\maven\apache-maven-3.5.2
本地maven仓库:D:\maven\apache-maven-3.5.2\maven-repo
setting:D:\maven\apache-maven-3.5.2\conf\settings.xml

Maven配置

Maven配置jdk版本

<!--<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>

Idea 中的Maven项目设置

setting设置本地安装的maven和仓库

image.png

重新导入maven依赖

reimport all maven projects
image.png

posted @ 2024-06-07 13:55  shelly双鱼座  阅读(7)  评论(0)    收藏  举报