[jboss-jira] [JBoss JIRA] (JASSIST-44) Maven profiles for tools.jar should take account of Mac OS

Shigeru Chiba (JIRA) jira-events at lists.jboss.org
Tue Mar 6 11:14:39 EST 2012


     [ https://issues.jboss.org/browse/JASSIST-44?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shigeru Chiba resolved JASSIST-44.
----------------------------------

    Fix Version/s: 3.16.1-GA
       Resolution: Done

    
> 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: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list