Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Auto Closed
-
2.9
-
None
-
None
Description
The POM for org.apache.maven.plugin-tools, org.apache.maven.plugin-tools, Version 2.9 asserts a dependency on the JDK's tools.jar like this:
<dependency> <groupId>com.sun</groupId> <artifactId>tools</artifactId> <version>1.4.2</version> <scope>system</scope> <systemPath>${java.home}/../lib/tools.jar</systemPath> </dependency>
This caused build path failures on my windows system that m2eclipse simply was not able to resolve, despite my use of the JDK, finally had to give up. I also note that on a Mac it will never work. Compare with the approach taken by artifact log4j, group log4j, version 1.2.16 for a tools.jar dependency:
<dependency> <groupId>sun.jdk</groupId> <artifactId>tools</artifactId> <version>1.4.2</version> <scope>system</scope> <systemPath>${tools.jar}</systemPath> </dependency>
This "tools.jar" variable is defined in terms of machine profiles.
Thanks for listening.