Maven pom.xml 报 Missing artifact jdk.tools:jdk.tools:jar:1.7
2014-11-30 11:39
483 查看
linux中用eclipse 新建maven project,pom.xml中报Missing artifact jdk.tools:jdk.tools:jar:1.7
解决方法:
在pom.xml中添加如下依赖:
<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.7</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>
也可以在本地仓库中手动安装tools.jar,如下
mvn
install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools
-Dpackaging=jar -Dversion=1.6 -Dfile=tools.jar -DgeneratePom=true
然后在pom.xml中添加:
<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.7</version>
</dependency>
以上方法亲自验证过
解决方法:
在pom.xml中添加如下依赖:
<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.7</version>
<scope>system</scope>
<systemPath>${JAVA_HOME}/lib/tools.jar</systemPath>
</dependency>
也可以在本地仓库中手动安装tools.jar,如下
mvn
install:install-file -DgroupId=jdk.tools -DartifactId=jdk.tools
-Dpackaging=jar -Dversion=1.6 -Dfile=tools.jar -DgeneratePom=true
然后在pom.xml中添加:
<dependency>
<groupId>jdk.tools</groupId>
<artifactId>jdk.tools</artifactId>
<version>1.7</version>
</dependency>
以上方法亲自验证过
相关文章推荐
- Maven pom.xml 报 Missing artifact jdk.tools:jdk.tools:jar:1.7
- eclipse搭建maven项目 pom.xml出现红叉,提示Missing artifact jdk.tools:jdk.tools:jar:1.7,解决办法如下:
- Missing artifact com.sun:tools:jar:1.5.0 Maven依赖管理pom.xml中添加struts2-core包后报错的解决办法
- 解决在pom.xml文件中出现Missing artifact jdk.tools:jdk.tools:jar:1.6问题
- Maven搭建hadoop环境报Missing artifact jdk.tools:jdk.tools:jar:1.7
- maven:missing artifact jdk.tools:jar:1.7
- eclipse 导入maven项目:Missing artifact jdk.tools:jdk.tools:jar:1.7
- Maven报错: Missing artifact jdk.tools:jdk.tools:jar:1.7
- Maven Missing artifact jdk.tools:jdk.tools:jar:1.7 解决办法
- eclipse 运行maven工程出现Missing artifact jdk.tools:jdk.tools:jar:1.7问题
- Maven搭建hadoop环境报Missing artifact jdk.tools:jdk.tools:jar:1.7
- Maven搭建hadoop环境报Missing artifact jdk.tools:jdk.tools:jar:1.7
- maven project pom.xml 报Missing artifact com.sun:tools:jar:1.5.0:system
- 【maven】解决Missing artifact jdk.tools:jdk.tools:jar:1.6
- 在maven的pom.xml中出现Missing:com.sun:tools:jar:1.5.0错误
- Maven搭建hadoop环境报Missing artifact jdk.tools:jdk.tools:jar:1.6
- Maven pom.xml报错Multiple annotations found at this line: - Missing artifact log4j:log4j:jar:1.2.15:co
- Eclipse&Maven导入Maven项目后在pom.xml出现"Missing artifact org.springframework:spring-jdbc:jar:3.2.4.RELEAS"
- Missing artifact jdk.tools:jdk.tools:jar:1.6 pox.xml
- Maven错误信息:Missing artifact jdk.tools:jdk.tools:jar:1.6