Hi Kevin,

(See inside)

2007/3/24, Kevin Stembridge <[EMAIL PROTECTED]>:
Hi folks,
I'm getting an OutOfMemoryError when running mvn javadoc:javadoc in a
Java6 JVM. The same goal runs without error in Java5. My pom config and
console output are pasted below.

I tried adding a <maxMemory> element to the plugin config but it made no
difference. I was going to raise a JIRA issue for this but I thought I'd
check with the dev list first to make sure I wasn't missing something
obvious.

Cheers,
Kevin



     <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <configuration>
          <debug>true</debug>
          <aggregate>true</aggregate>
          <links>
            <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
          </links>
        </configuration>
      </plugin>


Console Output:

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An error has occurred in JavaDocs report generation:Exit code: 1
- 
/home/kevin/dev/workspaces/abfo-workspace/abfo/abfo-common/src/main/java/uk/co/objectsoft/http/ProxyDetect.java:20:
 warning: com.sun.java.browser.net.ProxyInfo is Sun proprietary API and may be 
removed in a future release
import com.sun.java.browser.net.ProxyInfo;
                               ^
/home/kevin/dev/workspaces/abfo-workspace/abfo/abfo-common/src/main/java/uk/co/objectsoft/http/ProxyDetect.java:21:
 warning: com.sun.java.browser.net.ProxyService is Sun proprietary API and may 
be removed in a future release
import com.sun.java.browser.net.ProxyService;
                               ^
/home/kevin/dev/workspaces/abfo-workspace/abfo/abfo-common/src/main/java/org/apache/commons/httpclient/contrib/ssl/EasySSLProtocolSocketFactory.java:44:
 warning: sun.rmi.runtime.Log is Sun proprietary API and may be removed in a 
future release
import sun.rmi.runtime.Log;
                      ^
javadoc: error - java.lang.OutOfMemoryError: Please increase memory.
For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx
such as -J-Xmx32m.

Command line was:/usr/local/share/jdk1.6.0/jre/../bin/javadoc @options
@packages


It seems that Javadoc tool generates this outofmemory exception, not the plugin.

Since you specified a debug option, 2 files are generated in
target/site/apidocs dir. Could you try the cmd line above in a prompt
from target/site/apidocs dir?

Thanks,

Vincent



---------------------------------------------------------------------
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