maven missing com.sun:tools:jar:1.6.0

Missing:
----------
1) com.sun:tools:jar:1.5.0

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.5.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.codehaus.mojo:jaxws-maven-plugin:maven-plugin:1.9
2) com.sun:tools:jar:1.5.0

----------
1 required artifact is missing.

for artifact:

...

Or maybe missing com.sun:tools:jar:1.6.0. Same issue.

On Mac OS, the tools.jar classes are included in classes.jar. There's no need for a systemPath dependency on Mac OS. All required classes are already in the runtime (classes.jar). The attached patch adds the com.sun.tools.jar dependency only for Sun JVMs.

Solution:

Find all dependency on this com.sun:tools:jar:1.6.0, comment all of them. That's it.

<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.5.0</version>
<scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>

你可能感兴趣的:(maven)