I have problems with following pom (see end of message), attach-javadocs
execution:
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-javadoc-plugin:2.6.1:jar' -->
[DEBUG] (f) aggregate = false
[DEBUG] (f) attach = true
[DEBUG] (f) author = true
[DEBUG] (f) bootclasspathArtifacts = []
[DEBUG] (f) bottom = Copyright © {inceptionYear}-{currentYear}
{organizationName}. All Rights Reserved.
[DEBUG] (f) breakiterator = false
[DEBUG] (f) debug = false
[DEBUG] (f) defaultManifestFile =
/home/hsn/sf/javalib/bin/META-INF/MANIFEST.MF
[DEBUG] (f) destDir = /
[DEBUG] (f) detectJavaApiLink = true
[DEBUG] (f) detectLinks = false
[DEBUG] (f) detectOfflineLinks = true
[DEBUG] (f) docfilessubdirs = false
[DEBUG] (f) docletArtifact = groupId = 'null'
artifactId = 'null'
version = 'null'
[DEBUG] (f) docletArtifacts = []
[DEBUG] (f) doctitle = FSP Java Library 1.0rc8 API
[DEBUG] (f) failOnError = true
[DEBUG] (f) finalName = jfsplib-1.0rc8
[DEBUG] (f) groups = []
[DEBUG] (f) isOffline = false
[DEBUG] (f) jarOutputDirectory = /home/hsn/sf/javalib/target
[DEBUG] (f) javaApiLinks = {}
[DEBUG] (f) javadocDirectory = /home/hsn/sf/javalib/src/main/javadoc
[DEBUG] (f) keywords = false
[DEBUG] (f) links = []
[DEBUG] (f) linksource = false
[DEBUG] (f) localRepository =
Repository[local|file:///home/hsn/.m2/repository]
[DEBUG] (f) nocomment = false
[DEBUG] (f) nodeprecated = false
[DEBUG] (f) nodeprecatedlist = false
[DEBUG] (f) nohelp = false
[DEBUG] (f) noindex = false
[DEBUG] (f) nonavbar = false
[DEBUG] (f) nooverview = false
[DEBUG] (f) nosince = false
[DEBUG] (f) notimestamp = false
[DEBUG] (f) notree = false
[DEBUG] (f) offlineLinks = []
[DEBUG] (f) old = false
[DEBUG] (f) outputDirectory = /home/hsn/sf/javalib/target/apidocs
[DEBUG] (f) overview = /home/hsn/sf/javalib/src/main/javadoc/overview.html
[DEBUG] (f) project = MavenProject: net.fsp:jfsplib:1.0rc8 @
/home/hsn/sf/javalib/pom.xml
[DEBUG] (f) quiet = false
[DEBUG] (f) reactorProjects = [MavenProject: net.fsp:jfsplib:1.0rc8 @
/home/hsn/sf/javalib/pom.xml]
[DEBUG] (f) remoteRepositories =
[Repository[central|http://repo1.maven.org/maven2]]
[DEBUG] (f) resourcesArtifacts = []
[DEBUG] (f) serialwarn = false
[DEBUG] (f) session = org.apache.maven.execution.mavensess...@1732ed2
[DEBUG] (f) settings = org.apache.maven.settings.setti...@c87621
[DEBUG] (f) show = protected
[DEBUG] (f) skip = false
[DEBUG] (f) splitindex = false
[DEBUG] (f) stylesheet = java
[DEBUG] (f) tagletArtifact = groupId = 'null'
artifactId = 'null'
version = 'null'
[DEBUG] (f) tagletArtifacts = []
[DEBUG] (f) taglets = []
[DEBUG] (f) tags = []
[DEBUG] (f) use = true
[DEBUG] (f) useDefaultManifestFile = false
[DEBUG] (f) useStandardDocletOptions = true
[DEBUG] (f) verbose = false
[DEBUG] (f) version = true
[DEBUG] (f) windowtitle = FSP Java Library 1.0rc8 API
[DEBUG] -- end configuration --
[INFO] [javadoc:jar {execution: attach-javadocs}]
[WARNING] Source files encoding has not been set, using platform encoding
ISO8859-1, i.e. build is platform dependent!
[DEBUG] No Java API link found.
[DEBUG] Try to add links for modules...
[DEBUG] /usr/local/diablo-jdk1.5.0/jre/../bin/javadoc @options @packages
[INFO]
Loading source files for package net.fsp...
Constructing Javadoc information...
Standard Doclet version 1.5.0
Building tree for all the packages and classes...
Generating
/home/hsn/sf/javalib/target/apidocs/net/fsp//FSPInputStream.html...
Generating
/home/hsn/sf/javalib/target/apidocs/net/fsp//FSPOutputStream.html...
Generating /home/hsn/sf/javalib/target/apidocs/net/fsp//FSPpacket.html...
[....]
Generating /home/hsn/sf/javalib/target/apidocs/stylesheet.css...
Javadoc seems to be generated fine.
at this time maven2 starts calling STAT on every file in filesystem (as
shown by ktrace)
24847 java CALL stat(0x8298a00,0xbfbfcaf8)
24847 java NAMI
"/usr/src/crypto/openssl/crypto/engine/hw_sureware_err.h"
24847 java RET stat 0
24847 java CALL stat(0x8298a00,0xbfbfcaf8)
24847 java NAMI
"/usr/src/crypto/openssl/crypto/engine/hw_sureware_err.h"
24847 java RET stat 0
24847 java CALL stat(0x8298a00,0xbfbfcaf8)
24847 java NAMI "/usr/src/crypto/openssl/crypto/engine/hw_ubsec.c"
24847 java RET stat 0
24847 java CALL stat(0x8298a00,0xbfbfcaf8)
24847 java NAMI "/usr/src/crypto/openssl/crypto/engine/hw_ubsec.c"
24847 java RET stat 0
which takes quite a lot time and finally fails with:
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Java heap space
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.OutOfMemoryError: Java heap space
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 25 minutes 39 seconds
[INFO] Finished at: Wed Oct 28 19:42:01 CET 2009
[INFO] Final Memory: 28M/63M
[INFO]
------------------------------------------------------------------------
sadly mvn -X does not provide any info what happens after generating
stylesheet.css. I am not sure if control returned from javadoc to maven, but
there is just only 1 java process running. i assume that javadoc is executed
in its own process. separated from mvn.
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.fsp</groupId>
<artifactId>jfsplib</artifactId>
<name>FSP Java Library</name>
<version>1.0rc8</version>
<url>http://fsp.sourceforge.net/javalib.html</url>
<packaging>jar</packaging>
<description>Java FSP Library adds support for the FSP protocol to any
Java
program by implementing the URLStreamHandler factory.
</description>
<licenses>
<license>
<name>MIT License</name>
</license>
</licenses>
<developers>
<developer>
<name>Radim Kolar</name>
</developer>
</developers>
<organization>
<name>FSP Project</name>
<url>http://fsp.sourceforge.net</url>
</organization>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.5</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>${basedir}/src</sourceDirectory>
<testSourceDirectory>${basedir}/tests</testSourceDirectory>
<outputDirectory>${basedir}/bin</outputDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<phase>process-test-sources</phase>
<goals>
<goal>testCompile</goal>
</goals>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</execution>
</executions>
<configuration>
<source>1.2</source>
<target>1.2</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptors>
<descriptor>zip.xml</descriptor>
</descriptors>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.6.1</version>
<executions>
<execution>
<phase>compile</phase>
<id>gen-javadoc-in-build-phase</id>
<goals>
<goal>javadoc</goal>
</goals>
</execution>
<execution>
<id>attach-javadocs</id>
<phase>package</phase>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<outputDirectory>${project.build.directory}/apidocs</outputDirectory>
<!-- <javadocExecutable>c:/program
files/Java/jdk1.6.0_16/bin/javadoc</javadocExecutable>
-->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-clean-plugin</artifactId>
<configuration>
<filesets>
<fileset>
<directory>javadoc</directory>
<includes>
<include>**</include>
</includes>
</fileset>
</filesets>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.1.1</version>
<executions>
<execution>
<id>attach-sources</id>
<phase>package</phase>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<extensions>
<extension>
<groupId>org.apache.maven.wagon</groupId>
<artifactId>wagon-ssh-external</artifactId>
</extension>
</extensions>
</build>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<reportOutputDirectory>${basedir}/javadoc</reportOutputDirectory>
<destDir>/</destDir>
</configuration>
</plugin>
</plugins>
</reporting>
<distributionManagement>
<repository>
<id>fsp-releases</id>
<name>FSP releases Maven 2 repo</name>
<url>scpexe://shell.sourceforge.net/home/groups/f/fs/fsp/htdocs/m2</url>
</repository>
</distributionManagement>
</project>
--
View this message in context:
http://www.nabble.com/generating-javadoc%3Ajar-fails-tp26100770p26100770.html
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]