maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manoj Kumar" <jainmano...@gmail.com>
Subject Re: OutOfMemoryError when creating Javadoc
Date Fri, 24 Feb 2006 05:42:13 GMT
hi

i never use javadoc, so i can't say about your error but you can solve your
out of memory problem by increasing memory heap size in mvn.bat file, that
is in your maven installations bin dir.
in mvn.bat you can find the following


@REM Start MAVEN2
for %%i in ("%M2_HOME%"\core\boot\classworlds-*) do set
CLASSWORLDS_JAR="%%i"
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% "-
Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%"
org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
goto end

just add the -Xmx256m after %MAVEN_OPTS% it will  become as

@REM Start MAVEN2
for %%i in ("%M2_HOME%"\core\boot\classworlds-*) do set
CLASSWORLDS_JAR="%%i"
%MAVEN_JAVA_EXE% %MAVEN_OPTS% -Xmx256m -classpath %CLASSWORLDS_JAR% "-
Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%"
org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS%
goto end

hope it will work


On 2/23/06, Thorsten Heit <thorsten.heit@xtramind.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> 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] [@files]
> - -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
> [INFO]
> -
>
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> -
>
> ----------------------------------------------------------------------------
> [INFO] An error has occurred in JavaDocs report generation.
>
> Embedded error: Exit code: 1 - javadoc: error - invalid flag: -J-Xmx256m
>
> [INFO]
> -
>
> ----------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO]
> -
>
> ----------------------------------------------------------------------------
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Thu Feb 23 18:20:06 CET 2006
> [INFO] Final Memory: 3M/7M
> [INFO]
> -
>
> ----------------------------------------------------------------------------
>
>
> Can someone tell me what I'm doing wrong?
>
>
> Regards
>
> Thorsten
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2.1 (MingW32)
>
> iD8DBQFD/frpQvObkgCcDe0RAlF1AJ0b9Aj7bMJz2iQi/a0cDPG1TMIhcQCcCHRO
> eGCol2cWbY6EHmrgcPVlFKc=
> =sD3W
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message