[ http://jira.codehaus.org/browse/MOJO-166?page=all ]
Brett Porter updated MOJO-166:
------------------------------
Component: commons-attributes
aspectj
> tools.jar
> ---------
>
> Key: MOJO-166
> URL: http://jira.codehaus.org/browse/MOJO-166
> Project: Mojo
> Type: Bug
> Components: commons-attributes, aspectj
> Environment: mac os
> Reporter: Kaare Nilsen
> Assignee: Carlos Sanchez
>
>
> What is described in http://jira.codehaus.org/browse/MEV-241shouldalso apply
> for aspectj reporting since it is using tools.jar
> copied from the issue listed above.
> commons-attributes-compiler-2.1.pom has the following dependency:
> <dependency>
> <groupId>java</groupId>
> <artifactId>tools</artifactId>
> <version>1.4</version>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
> <scope>system</scope>
> </dependency>
> This breaks on MacOSX which doesn't have a tools.jar. After discussing this
> with brett he pointed me to it0063 in maven-core-it which solved this using
> profiles as follows:
> <profiles>
> <profile>
> <!-- NOTE: This will not be activated on OS X, since classes.jar
> already has the tools in it. -->
> <id>default-tools.jar</id>
> <activation>
> <property>
> <name>java.vendor</name>
> <value>Sun Microsystems Inc.</value>
> </property>
> </activation>
> <dependencies>
> <dependency>
> <groupId>sun.jdk</groupId>
> <artifactId>tools</artifactId>
> <version>1.4.2</version>
> <scope>system</scope>
> <systemPath>${java.home}/../lib/tools.jar</systemPath>
> </dependency>
> </dependencies>
> </profile>
> </profiles>
> I have checked out the repo and make the change and will attach the patch
> file. (Is there someway I could have tested this first?)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira