您的位置:首页 > 编程语言 > Java开发

创建/导入maven项目时 eclipse默认jdk版本配置

2016-06-28 23:44 711 查看
maven的conf\setting.xml文件中找到jdk注释的地方,打开修改即可,如下

<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<localRepository>
D:\maven\repository
</localRepository>
<profiles>
<profile>
<id>jdk-1.7</id>

<activation>
<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>
</profiles>
</settings>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: