eclipse建maven出现以上错误时,参考链接:https://blog.csdn.net/baoyu_G/article/details/80423749(亲测有效)

 

出现报错:

修改JRE System Library报错的永久性办法。 The project cannot be built until build path errors are reso

在D:\apache-maven-3.6.1\conf\settings.xml中写入如下字段:

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

 

 

 

相关文章:

  • 2021-05-21
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-21
  • 2021-05-28
  • 2021-07-21
猜你喜欢
  • 2021-07-04
  • 2021-05-02
  • 2021-08-14
  • 2022-12-23
  • 2021-09-30
  • 2021-07-13
  • 2021-08-14
相关资源
相似解决方案