我需要构建https://repo1.maven.org/maven2/org/glassfish/ha/ha-api/3.1.12/来自JDK 11环境中的源代码(Maven 3.8.1(这是pom.xmlhttps://repo1.maven.org/maven2/org/glassfish/ha/ha-api/3.1.12/ha-api-3.1.12.pom现在我得到以下错误:
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.
给出有价值的提示。
JRE中没有.../lib/tools.jar
,JDK9以后的版本中也没有.../lib/tools.jar
。