jpfss

请看解决方案:

1. 修改maven的settings.xml文件。

添加以下行,jdk版本改为自己需要的版本:

复制代码
<profile>  
    <id>jdk-1.7</id>  
    <activation>  
        <activeByDefault>true</activeByDefault>  
        <jdk>1.7</jdk>  
    </activation>  
    <properties>  
        <maven.compiler.source>1.7</maven.compiler.source>  
        <maven.compiler.target>1.7</maven.compiler.target>  
        <maven.compiler.compilerVersion>1.7</maven.compiler.compilerVersion>  
    </properties>  
</profile>
复制代码

2. 在eclipse中检查配置文件是否被引用到,之前我的user settting使用的位置不对。

    然后update setttings。

 

 3. 最后选择创建的项目,更新项目后,引用的jdk版本自动刷新。

 

分类:

技术点:

相关文章:

  • 2022-01-07
  • 2021-05-29
  • 2021-11-13
  • 2022-01-01
  • 2021-08-27
  • 2021-12-15
  • 2021-11-18
  • 2021-07-04
猜你喜欢
  • 2021-11-18
  • 2021-12-02
  • 2021-07-19
  • 2021-06-12
  • 2021-08-11
  • 2021-10-19
  • 2021-11-18
相关资源
相似解决方案