Maven profiles for tools.jar should take account of Mac OS
----------------------------------------------------------
Key: JASSIST-44
URL:
https://issues.jboss.org/browse/JASSIST-44
Project: Javassist
Issue Type: Bug
Environment: Maven version: 2.0.8
Java version: 1.5.0_13
OS name: "mac os x" version: "10.4.11" arch: "i386" Family:
"unix"
Reporter: Martin Burger
Assignee: Shigeru Chiba
Fix For: 3.16.1-GA
Attachments: patch.JASSIST-44
The pom.xml uses different profiles to add the tools.jar to the dependencies. However, it
is already included in the runtime for Mac OS X and some free JDKs and does not exist as a
separate file 'tools.jar'. See:
http://maven.apache.org/general.html#tools-jar-dependency
As soon as
http://jira.codehaus.org/browse/MNG-3106 gets fixed, activation should look
like the following example:
<activation>
<jdk>1.6</jdk>
<property>
<name>java.vendor</name>
<value>Sun Microsystems Inc.</value>
</property>
</activation>
In the meantime
<profiles>
<profile>
<id>tools.jar</id>
<activation>
<property>
<name>java.vendor</name>
<value>Sun Microsystems Inc.</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
<version>1.6</version>
<scope>system</scope>
<optional>true</optional>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
</dependency>
</dependencies>
</profile>
</profiles>
should do the job. It could be a permanent solution because the different profiles differ
only in the version element.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: