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

Martin Burger (JIRA) jira-events at lists.jboss.org
Mon Nov 23 07:11:29 EST 2009


    [ https://jira.jboss.org/jira/browse/JASSIST-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12496046#action_12496046 ] 

Martin Burger commented on JASSIST-44:
--------------------------------------

This is still an issue in r505 (http://anonsvn.jboss.org/repos/javassist). The Maven issue http://jira.codehaus.org/browse/MNG-3106 is fixed; thus, the provided patch (patch.JASSIST-44) fixes this issue.

> Maven profiles for tools.jar should take account of Mac OS
> ----------------------------------------------------------
>
>                 Key: JASSIST-44
>                 URL: https://jira.jboss.org/jira/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
>         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 contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list