I tried it but the error is same.

Thanks,

Pankaj



-----Original Message-----
From: Haroon Rafique [mailto:[email protected]] 
Sent: Friday, February 05, 2010 5:27 AM
To: Maven Users List
Subject: RE: help needed with maven antrun plugin

On Yesterday at 1:26pm, PA=>Pankaj Agarwal <[email protected]>
wrote:

PA> Here's the exact error.
PA> 
PA> [INFO] 
PA>
------------------------------------------------------------------------

PA> [ERROR] BUILD ERROR [INFO] 
PA>
------------------------------------------------------------------------

PA> [INFO] An Ant BuildException has occured: The following error
occurred 
PA> while executing this line: build.xml:118: 
PA> com.bea.util.jam.internal.javadoc.JavadocClassloadingException: An 
PA> error has occurred while invoking javadoc to inspect your source

Here's my experience. I don't remember when I added this, but here is
what 
I use as a dependency for the maven-antrun-plugin:

                    <dependency>
                        <groupId>sun.jdk</groupId>
                        <artifactId>tools</artifactId>
                        <version>1.6</version>
                        <scope>system</scope>
<systemPath>${java.home}/../lib/tools.jar</systemPath>
                    </dependency>

Works for me, YMMV.

Hope that helps.
--
Haroon Rafique
<[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]

Reply via email to