> Hi,
>
> when I want to create the Javadoc for my project, Maven fails with an
> OutOfMemoryError. According to the documentation the javadoc plugin
> supports a parameter "maxmemory" so I added the following flag to the
> plugin configuration:
>
>   <build>
>     <plugins>
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-javadoc-plugin</artifactId>
>         <configuration>
>           <maxmemory>256m</maxmemory>
>         </configuration>
>       </plugin>
>     </plugins>
>
> Unfortunately I'm getting the following error when executing "mvn
> javadoc:javadoc":
>
> [INFO] [javadoc:javadoc]
> [INFO] c:\Programme\Java\jdk1.5.0\jre\..\bin\javadoc.exe @options @files
> usage: javadoc [options] [packagenames] [sourcefiles] [EMAIL PROTECTED]
> - -overview <file>          Read overview documentation from HTML file
>
> (...rest of the javadoc's command line parameters/options omitted...)
>
> - -stylesheetfile <path>            File to change style of the generated
> documentation
> - -docencoding <name>               Output encoding name
> 1 error

Ah, the joys of the javadoc plugin invocation!
The javadoc plugin invokes the javadoc tool in a separate task. In order
to do this, the plugin creates a temporary file that includes all the
options that are to be passed to the javadoc command and starts javadoc
with just this config file.

Of course, any options that apply to the javadoc invocation (that would be
passed to javadoc with the -J option) end up in the config file, too,
causing javadoc to complain.

I'm afraid that you have to go with the workarounds posted here
(increasing max heap for the mvn task).

-dirk

-- 
Anyway kids, have fun, play nicely, be good. And remember - if it ain't
broke, hit it again.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to