pom文件miss artifact com.sun:tools:jar:1.5.0:system问题
时间:2014-05-01 17:56:11
收藏:0
阅读:343
问题现象:
导入新的maven项目时,有时候pom.xml文件会提示一个错误信息:Missing artifact com.sun:tools:jar:1.5.0:system
问题原因:
maven是需要使用Jdk中的tools工具,而eclipse使用的是jre的运行环境,导致maven无法找到Jdk工具包tools.jar
解决方法:
1>将eclipse修改为jdk目录中的javaw作为启动环境。步骤可以参看另一篇博客:
2>在pom.xml中添加java.home属性节点,以及com.sun.tools依赖节点。
pom文件miss artifact com.sun:tools:jar:1.5.0:system问题,布布扣,bubuko.com
评论(0)