[ http://jira.codehaus.org/browse/MOJO-206?page=comments#action_54803 ]
Kaare Nilsen commented on MOJO-206:
-----------------------------------
Carlos Sanchez
<[EMAIL PROTECTED]> to Maven
More options 2 Jan (1 day ago)
You can use profiles to include it only in Sun JDK
<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>
> sun.jdk:tools:jar:1.4.0 on MacOSX
> ---------------------------------
>
> Key: MOJO-206
> URL: http://jira.codehaus.org/browse/MOJO-206
> Project: Mojo
> Type: Bug
> Versions: 2.0
> Environment: Mac OSX
> Reporter: Kaare Nilsen
> Assignee: Kaare Nilsen
> Fix For: 2.0
>
>
> Man-Chi Leung
> <[EMAIL PROTECTED]> to Maven
> More options 2 Jan (1 day ago)
> hi,
> I checked out aspectj-maven-plugin from mojo sandbox, and I was
> trying to build it.
> however, I encountered an error saying that tools.jar was not found.
> to my understand, we need to install Sun's Jar separately due to the
> license issue. em.. ok!
> but there is no tools.jar for Mac in /System/Library/Java/
> Extensions. any advice? should I copy tools.jar from windows SDK to mac?
> anyone is having the same problem? pls help!
> [INFO]
> ------------------------------------------------------------------------
> ----
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> ----
> [INFO] Failed to resolve artifact.
> required artifacts missing:
> sun.jdk:tools:jar:1.4.0
> for the artifact:
> org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:2.0-SNAPSHOT
> from the specified remote repositories:
> central (http://repo1.maven.org/maven2),
> snapshots (http://snapshots.maven.codehaus.org/maven2)
--
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