In the pom.xml for a java project, I get missing artifact jdk.tools:jdk.tools:jar:1.6 error

后端 未结 7 905
执念已碎
执念已碎 2021-02-05 05:20

I think I know how to solve the problem except: I don\'t know where in the pom the specific version is referred to (I do not see it explicitly) and the solution I have seen is t

7条回答
  •  春和景丽
    2021-02-05 06:12

    You can use the "java.home" environment variable :

    
       com.sun
       tools
       1.6
       system
       ${java.home}/lib/tools.jar
    
    

    Please have a look to : https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#System_Dependencies

提交回复
热议问题