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>
On 1/2/06, Kaare Nilsen <[EMAIL PROTECTED]> wrote: > Are there any java.home set or something. i would need it to make a > general path for mac os > > On 02/01/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote: > > hi Kaare, > > > > thanks for advice. I managed to solve my problem on aspectj-maven- > > plugin installation !! > > > > yes, there is no tools.jar on MacOSX. /System/Library/Frameworks/ > > JavaVM.framework/Classes/classes.jar will be the equivalent library > > http://lists.apple.com/archives/java-dev/2002/Jun/msg00901.html > > > > > > 1) I updated all "1.5.0_M5" to "1.5.0" release version > > aspectj-maven-plugin/ > > /pom.xml > > /src/test/resources/test-project/pom.xml > > /target/test-classes/test-project/pom.xml > > /src/test/java/org/codehaus/mojo/aspectj/AbstractAjcMojoTest.java > > > > 2) as for the tools.jar, I did NOT copy from windows or linux. just > > modify <systemPath> pointing to classes.jar on MacOSX. > > <dependency> > > <groupId>sun.jdk</groupId> > > <artifactId>tools</artifactId> > > <version>1.5.0</version> > > > > <systemPath>/System/Library/Frameworks/JavaVM.framework/Versions/ > > 1.5/Classes/classes.jar</systemPath> > > <scope>system</scope> > > </dependency> > > > > 3) mvn install <-- OK! > > > > Regards, > > Manchi > > > > On Jan 2, 2006, at 4:14 PM, Kaare Nilsen wrote: > > > > > Hi. > > > > > > I have never tested the plugin for mac os, so any help would be > > > appreciated. I would try as David Jencks said to try to remove the > > > dependency, and then see what happens. And i would be very happy if > > > you report your findings so that i could incorporate the changes to > > > the pom using a os spesific profile > > > > > > Kaare > > > > > > On 02/01/06, David Jencks <[EMAIL PROTECTED]> wrote: > > >> I don't know anything about aspectj or its maven plugin, but there is > > >> no tools.jar on a mac. The classes are included in the normal java > > >> runtime. IMO you should try to remove the dependency completely. > > >> > > >> thanks > > >> david jencks > > >> > > >> On Jan 1, 2006, at 7:15 PM, Man-Chi Leung wrote: > > >> > > >>> 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) > > >>> > > >>> > > >>> -------------------------------------------------------------------- > > >>> - > > >>> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >>> For additional commands, e-mail: [EMAIL PROTECTED] > > >>> > > >> > > >> > > >> --------------------------------------------------------------------- > > >> To unsubscribe, e-mail: [EMAIL PROTECTED] > > >> For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > >> > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]