大佬教程收集整理的这篇文章主要介绍了如何使用 JDK 11 构建 JDK7 pom.xml?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我需要从 JDK 11 环境 (Maven 3.8.1) 中的源构建此 https://repo1.maven.org/maven2/org/glassfish/ha/ha-api/3.1.12/ 这是 pom.xml https://repo1.maven.org/maven2/org/glassfish/ha/ha-api/3.1.12/ha-api-3.1.12.pom 现在我收到以下错误:
@H_755_5@mvn install Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSetTings=on -Dswing.aatext=true [INFO] ScAnning for projects... [ERROR] [ERROR] Some problems were encountered while processing the POMs: [ERROR] Unresolveable build extension: Plugin org.glassfish.hk2:hk2-maven-plugin:2.0.5 or one of its dependencIEs Could not be resolved: Could not find artifact com.sun:tools:jar:2.0.5 at specifIEd path /home/katya/java/../lib/tools.jar @ [ERROR] UnkNown packaging: hk2-jar @ line 32,column 16 [WARNING] 'build.plugins.plugin[org.glassfish.hk2:hk2-maven-plugin].dependencIEs.dependency.systemPath' for com.sun:tools:jar refers to a non-exisTing file /home/katya/java/../lib/tools.jar. Please verify that you run Maven using a JDK and not just a JRE. @ line 161,column 37
请告诉我如何修改 pom.xml 以在我的环境中构建?谢谢!
Could not find artifact com.sun:tools:jar:2.0.5 at specified path /home/katya/java/../lib/tools.jar`
和
com.sun:tools:jar refers to a non-exisTing file /home/katya/java/../lib/tools.jar.
Please verify that you run Maven using a JDK and not just a JRE.
提供有价值的提示。
以上是大佬教程为你收集整理的如何使用 JDK 11 构建 JDK7 pom.xml?全部内容,希望文章能够帮你解决如何使用 JDK 11 构建 JDK7 pom.xml?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。