java.home is automatically set to the JRE location, not the JDK. Perhaps
you are overriding it?

http://maven.apache.org/general.html##tools-jar-dependency

Scott Ryan wrote:
> I tried this and it worked however two strange things I noticed.  The first
> is that it crashes the site:site task when searching for the dependency.
> Also I noticed the path is rather strange.  It points to a location that
> does not exist <systemPath>${java.home}/../lib/tools.jar</systemPath> rather
> than <systemPath>${java.home}/lib/tools.jar</systemPath> however if I update
> it to point to the correct location the eclipse plugin and my plugin don't
> work.
> 
> Can you point me to the FAQ that you reference so I can get more
> understanding of how to use this correctly.
> 
> Scott Ryan
> Chief Technology Officer
> Soaring Eagle L.L.C.
> [EMAIL PROTECTED]
> www.soaringeagleco.com
> (303) 263-3044
> 
> -----Original Message-----
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 26, 2006 4:41 PM
> To: [email protected]
> Subject: Re: [mojo-dev] Using the Java tools jar inside a plugin
> 
> 
> I added the magic incantation for this to the FAQ the other day.
> 
> 
> dan tran wrote:
>> http://jira.codehaus.org/browse/MNG-806
>>
>>
>>
>> On 2/26/06, *Scott Ryan* <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>> wrote:
>>
>>     I have the need to make use of the java tools.jar inside my plugin.
> Is
>>     there a good way to make sure it is included in the plugin
>>     runtime?  In the
>>     past I had to include it in the dependency tree and manually create
>>     it in
>>     the repository.  I would think there is a much cleaner way to do
>>     this so I
>>     get the tools.jar from the current jdk.
>>
>>
>>     Scott Ryan
>>     Chief Technology Officer
>>     Soaring Eagle L.L.C.
>>     [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
>>     www.soaringeagleco.com <http://www.soaringeagleco.com>
>>     (303) 263-3044
>>
>>
>>
> 
> 

Reply via email to