怎么设置eclipse中jdk版本

点击window->preferences

对话框中选择java->complier


maven 中jre报错

点击window->preferences

复制路径找到settings.xml文件

D:\soft\apache-maven-3.5.2\conf\settings.xml

这里可以使用阿里的jar包镜像仓库 速度块

 <mirrors>
    <mirror>
      <id>alimaven</id>
      <name>aliyun maven</name>
      <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
      <mirrorOf>central</mirrorOf>        
    </mirror>
  </mirrors>
//配置maven工程jdk版
<profile>   
    <id>jdk1.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>

猜你喜欢

转载自blog.csdn.net/qq_39658059/article/details/78704878