[ https://jira.codehaus.org/browse/MPLUGIN-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=299793#comment-299793 ]
Olivier Lamy commented on MPLUGIN-202: -------------------------------------- yup please detail osx version, java installation version ? Here no problem "it work on my machine" :-) {code} mbp-olamy:maven-pmd-plugin olamy$ uname -a Darwin mbp-olamy 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr 9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64 mbp-olamy:maven-pmd-plugin olamy$ which java /Library/Java/Home//bin/java mbp-olamy:maven-pmd-plugin olamy$ $JAVA_HOME/bin/java -version java version "1.6.0_31" Java(TM) SE Runtime Environment (build 1.6.0_31-b04-415-11M3635) Java HotSpot(TM) 64-Bit Server VM (build 20.6-b01-415, mixed mode) {code} > Dependency on tools.jar should be expressed with profiles > --------------------------------------------------------- > > Key: MPLUGIN-202 > URL: https://jira.codehaus.org/browse/MPLUGIN-202 > Project: Maven 2.x Plugin Tools > Issue Type: Bug > Components: maven-plugin-tools-javadoc > Affects Versions: 2.9 > Reporter: Chris Lott > Priority: Minor > > 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: > {code:xml}<dependency> > <groupId>com.sun</groupId> > <artifactId>tools</artifactId> > <version>1.4.2</version> > <scope>system</scope> > <systemPath>${java.home}/../lib/tools.jar</systemPath> > </dependency>{code} > 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: > {code:xml}<dependency> > <groupId>sun.jdk</groupId> > <artifactId>tools</artifactId> > <version>1.4.2</version> > <scope>system</scope> > <systemPath>${tools.jar}</systemPath> > </dependency>{code} > This "tools.jar" variable is defined in terms of machine profiles. > Thanks for listening. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira