解决Maven工程中报 Missing artifact jdk.tools:jdk.tools
2019獨角獸企業重金招聘Python工程師標準>>>
解決方法:
????在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>
以上方法親自驗證過
轉載于:https://my.oschina.net/u/2000675/blog/811081
總結
以上是生活随笔為你收集整理的解决Maven工程中报 Missing artifact jdk.tools:jdk.tools的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux下安装compsoer ,并使
- 下一篇: POJ 2135 最小费用最大流