怎么设置eclipse中jdk版本

来源:互联网 发布:打车软件补贴方案 编辑:程序博客网 时间:2024/04/29 11:08

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

原创粉丝点击