You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benoit Decherf <de...@yahoo-inc.com> on 2008/02/05 12:17:37 UTC

mvn site can't create javadoc report

Hi,

I have a strange pb with mvn site.
My component declare a parent which contains the list of reports plugin 
to execute. But it fails trying to create test-javadoc.
This is very strange because if I juste execute mvn 
javadoc:test-javadoc, it works.
If I desactive the cobertura plugin it also works wich mvn site, but it 
fails with mvn release:perform.

I have no idea how to debug this ?

Thanks.
Benoit

Here is the trace:

[INFO] Generating "Test JavaDocs" report.
[WARNING] -notimestamp option is not supported on Java version < 1.5
[DEBUG] "cd 
/home/decherfb/tmp/apache-continuum-1.2-SNAPSHOT/apps/continuum/webapp/WEB-INF/working-directory/1/target/checkout/target/site/testapidocs 
&& /usr/
java/j2sdk1.4.2_16/jre/../bin/javadoc" @options @packages
Loading source files for package com.kelkoo.drilldown...
Loading source files for package com.kelkoo.drilldown.beans...
Loading source files for package com.kelkoo.drilldown.filters...
Loading source files for package com.kelkoo.drilldown.glossary.util...
Loading source files for package com.kelkoo.drilldown.seo...
2 errors
[INFO] 
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
------------------------------------------------------------------------
[INFO] Error during page generation

Embedded error: Error rendering Maven report: Exit code: 1 - javadoc: 
Illegal package name: 
"erfb.tmp.apache-continuum-1.2-SNAPSHOT.apps.continuum.webapp.WEB-I
NF.working-directory.1.target.checkout.mock.java.com.kelkoo.drilldown"
javadoc: Illegal package name: 
"erfb.tmp.apache-continuum-1.2-SNAPSHOT.apps.continuum.webapp.WEB-INF.working-directory.1.target.checkout.mock.java.com.kelkoo.d
rilldown.tools"

Command line was:"cd 
/home/decherfb/tmp/apache-continuum-1.2-SNAPSHOT/apps/continuum/webapp/WEB-INF/working-directory/1/target/checkout/target/site/testapidocs
 && /usr/java/j2sdk1.4.2_16/jre/../bin/javadoc" @options @packages


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: mvn site can't create javadoc report

Posted by Benoit Decherf <de...@yahoo-inc.com>.
I found the problem. In another plugin I add a test compiler source root 
(project.addTestCompileSourceRoot ), but I put a relative path.
Then the javadoc plugin fails to get the packages from it 
(AbstractJavadocMojo.getPackageNamesOrFilesWithUnnamedPackages).

I think this is a bug in the javadoc plugin. What do you think ?

Benoit

Benoit Decherf wrote:
> Hi,
>
> I have a strange pb with mvn site.
> My component declare a parent which contains the list of reports 
> plugin to execute. But it fails trying to create test-javadoc.
> This is very strange because if I juste execute mvn 
> javadoc:test-javadoc, it works.
> If I desactive the cobertura plugin it also works wich mvn site, but 
> it fails with mvn release:perform.
>
> I have no idea how to debug this ?
>
> Thanks.
> Benoit
>
> Here is the trace:
>
> [INFO] Generating "Test JavaDocs" report.
> [WARNING] -notimestamp option is not supported on Java version < 1.5
> [DEBUG] "cd 
> /home/decherfb/tmp/apache-continuum-1.2-SNAPSHOT/apps/continuum/webapp/WEB-INF/working-directory/1/target/checkout/target/site/testapidocs 
> && /usr/
> java/j2sdk1.4.2_16/jre/../bin/javadoc" @options @packages
> Loading source files for package com.kelkoo.drilldown...
> Loading source files for package com.kelkoo.drilldown.beans...
> Loading source files for package com.kelkoo.drilldown.filters...
> Loading source files for package com.kelkoo.drilldown.glossary.util...
> Loading source files for package com.kelkoo.drilldown.seo...
> 2 errors
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] 
> ------------------------------------------------------------------------
> [INFO] Error during page generation
>
> Embedded error: Error rendering Maven report: Exit code: 1 - javadoc: 
> Illegal package name: 
> "erfb.tmp.apache-continuum-1.2-SNAPSHOT.apps.continuum.webapp.WEB-I
> NF.working-directory.1.target.checkout.mock.java.com.kelkoo.drilldown"
> javadoc: Illegal package name: 
> "erfb.tmp.apache-continuum-1.2-SNAPSHOT.apps.continuum.webapp.WEB-INF.working-directory.1.target.checkout.mock.java.com.kelkoo.d 
>
> rilldown.tools"
>
> Command line was:"cd 
> /home/decherfb/tmp/apache-continuum-1.2-SNAPSHOT/apps/continuum/webapp/WEB-INF/working-directory/1/target/checkout/target/site/testapidocs 
>
> && /usr/java/j2sdk1.4.2_16/jre/../bin/javadoc" @options @packages
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org