You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Sinduria,Anuradha" <An...@securecomputing.com> on 2007/10/16 08:59:10 UTC
Java doc generation
Hi All,
I want to do Java doc generation while doing "mvn site" on my UNIX Free BSD
6.2.
I added following in my pom
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<links>
<link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
<link>http://plexus.codehaus.org/ref/1.0-alpha-9/apidocs</link>
<link>http://jakarta.apache.org/commons/dbcp/apidocs/</link>
</links>
</configuration>
</plugin>
I am getting the following error
[INFO] Generate "JavaDocs" report.
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error during page generation
Embedded error: Error rendering Maven report: Unable to find javadoc
version: Error while executing process.
java.io.IOException: /bin/bash: not found
[INFO]
------------------------------------------------------------------------
My bash is in /usr/local/bin/bash and I have sh shell inside /bin (/bin/sh)
I tried below plugin also but getting same error:
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<reportSets>
<reportSet>
<id>uml</id>
<configuration>
<doclet>gr.spinellis.umlgraph.doclet.UmlGraph</doclet>
<docletArtifact>
<groupId>umlgraph</groupId>
<artifactId>UMLGraph</artifactId>
<version>4.2-SNAPSHOT</version>
</docletArtifact>
<additionalparam>-views</additionalparam>
<destDir>target/uml</destDir>
<show>private</show>
</configuration>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
<reportSet>
<id>html</id>
<configuration>
<show>private</show>
</configuration>
<reports>
<report>javadoc</report>
</reports>
</reportSet>
</reportSets>
</plugin>
Please advice how to resolv it.
Thanks and Regards,
Anuradha Sinduria
Re: Java doc generation
Posted by Tim Kettler <ti...@udo.edu>.
The plugin executes 'javadoc -J-fullversion' to retrieve the version of
the javadoc tool and expects output like this:
java full version "1.5.0_11-b03"
See here for reference [1]. Can you try if your javadoc prints the
version information in some other format.
-Tim
[1]
https://svn.apache.org/repos/asf/maven/plugins/tags/maven-javadoc-plugin-2.3/src/main/java/org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java
Sinduria,Anuradha schrieb:
> I created a symbolic link, java doc generation started but it got stuck and
> generated this error
>
>
> [INFO] Generate "JavaDocs" report.
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] For input string: "dial"
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Trace
> java.lang.NumberFormatException: For input string: "dial"
> at
> sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
> at java.lang.Float.parseFloat(Float.java:394)
> at
> org.apache.maven.plugin.javadoc.AbstractJavadocMojo.getJavadocVersion(Abstra
> ctJavadocMojo.java:2966)
> at
> org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJa
> vadocMojo.java:1085)
> at
> org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:13
> 1)
> at
> org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDo
> cumentRenderer.java:67)
> at
> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Default
> SiteRenderer.java:239)
> at
> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRe
> nderer.java:115)
> at
> org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124)
> at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
> r.java:443)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
> cycleExecutor.java:539)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:480)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
> ycleExecutor.java:459)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
> ures(DefaultLifecycleExecutor.java:311)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
> ultLifecycleExecutor.java:278)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
> Executor.java:143)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
> )
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
> .java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> [INFO]
> ------------------------------------------------------------------------
>
> Thanks and Regards,
> Anuradha Sinduria
>
>
> -----Original Message-----
> From: Tim Kettler [mailto:tim.kettler@udo.edu]
> Sent: Tuesday, October 16, 2007 1:47 PM
> To: Maven Users List
> Subject: Re: Java doc generation
>
> Hi,
>
> this is a known bug [1]. It's fixed in svn but a fixed version is not
> released yet. Aa a workaround, just create a symlink.
>
> -Tim
>
> [1] http://jira.codehaus.org/browse/PLXUTILS-34
>
> Sinduria,Anuradha schrieb:
>>
>>
>> Hi All,
>>
>>
>>
>> I want to do Java doc generation while doing "mvn site" on my UNIX Free
> BSD
>> 6.2.
>>
>> I added following in my pom
>>
>>
>>
>> <plugin>
>>
>> <groupId>org.apache.maven.plugins</groupId>
>>
>> <artifactId>maven-javadoc-plugin</artifactId>
>>
>> <configuration>
>>
>> <links>
>>
>> <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
>>
>>
> <link>http://plexus.codehaus.org/ref/1.0-alpha-9/apidocs</link>
>> <link>http://jakarta.apache.org/commons/dbcp/apidocs/</link>
>>
>> </links>
>>
>> </configuration>
>>
>> </plugin>
>>
>>
>>
>> I am getting the following error
>>
>>
>>
>> [INFO] Generate "JavaDocs" report.
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [ERROR] BUILD ERROR
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>> [INFO] Error during page generation
>>
>>
>>
>> Embedded error: Error rendering Maven report: Unable to find javadoc
>> version: Error while executing process.
>>
>> java.io.IOException: /bin/bash: not found
>>
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>> My bash is in /usr/local/bin/bash and I have sh shell inside /bin
> (/bin/sh)
>>
>>
>> I tried below plugin also but getting same error:
>>
>>
>>
>> <plugin>
>>
>> <artifactId>maven-javadoc-plugin</artifactId>
>>
>> <reportSets>
>>
>> <reportSet>
>>
>> <id>uml</id>
>>
>> <configuration>
>>
>>
> <doclet>gr.spinellis.umlgraph.doclet.UmlGraph</doclet>
>> <docletArtifact>
>>
>> <groupId>umlgraph</groupId>
>>
>> <artifactId>UMLGraph</artifactId>
>>
>> <version>4.2-SNAPSHOT</version>
>>
>> </docletArtifact>
>>
>> <additionalparam>-views</additionalparam>
>>
>> <destDir>target/uml</destDir>
>>
>> <show>private</show>
>>
>> </configuration>
>>
>> <reports>
>>
>> <report>javadoc</report>
>>
>> </reports>
>>
>> </reportSet>
>>
>> <reportSet>
>>
>> <id>html</id>
>>
>> <configuration>
>>
>> <show>private</show>
>>
>> </configuration>
>>
>> <reports>
>>
>> <report>javadoc</report>
>>
>> </reports>
>>
>> </reportSet>
>>
>> </reportSets>
>>
>> </plugin>
>>
>>
>>
>> Please advice how to resolv it.
>>
>>
>>
>> Thanks and Regards,
>>
>> Anuradha Sinduria
>>
>>
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> 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
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
RE: Java doc generation
Posted by "Sinduria,Anuradha" <An...@securecomputing.com>.
I created a symbolic link, java doc generation started but it got stuck and
generated this error
[INFO] Generate "JavaDocs" report.
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] For input string: "dial"
[INFO]
------------------------------------------------------------------------
[INFO] Trace
java.lang.NumberFormatException: For input string: "dial"
at
sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
at java.lang.Float.parseFloat(Float.java:394)
at
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.getJavadocVersion(Abstra
ctJavadocMojo.java:2966)
at
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJa
vadocMojo.java:1085)
at
org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:13
1)
at
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDo
cumentRenderer.java:67)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(Default
SiteRenderer.java:239)
at
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRe
nderer.java:115)
at
org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124)
at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:539)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
(DefaultLifecycleExecutor.java:480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFail
ures(DefaultLifecycleExecutor.java:311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(Defa
ultLifecycleExecutor.java:278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO]
------------------------------------------------------------------------
Thanks and Regards,
Anuradha Sinduria
-----Original Message-----
From: Tim Kettler [mailto:tim.kettler@udo.edu]
Sent: Tuesday, October 16, 2007 1:47 PM
To: Maven Users List
Subject: Re: Java doc generation
Hi,
this is a known bug [1]. It's fixed in svn but a fixed version is not
released yet. Aa a workaround, just create a symlink.
-Tim
[1] http://jira.codehaus.org/browse/PLXUTILS-34
Sinduria,Anuradha schrieb:
>
>
> Hi All,
>
>
>
> I want to do Java doc generation while doing "mvn site" on my UNIX Free
BSD
> 6.2.
>
> I added following in my pom
>
>
>
> <plugin>
>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-javadoc-plugin</artifactId>
>
> <configuration>
>
> <links>
>
> <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
>
>
<link>http://plexus.codehaus.org/ref/1.0-alpha-9/apidocs</link>
>
> <link>http://jakarta.apache.org/commons/dbcp/apidocs/</link>
>
> </links>
>
> </configuration>
>
> </plugin>
>
>
>
> I am getting the following error
>
>
>
> [INFO] Generate "JavaDocs" report.
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] BUILD ERROR
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Error during page generation
>
>
>
> Embedded error: Error rendering Maven report: Unable to find javadoc
> version: Error while executing process.
>
> java.io.IOException: /bin/bash: not found
>
> [INFO]
> ------------------------------------------------------------------------
>
>
>
> My bash is in /usr/local/bin/bash and I have sh shell inside /bin
(/bin/sh)
>
>
>
> I tried below plugin also but getting same error:
>
>
>
> <plugin>
>
> <artifactId>maven-javadoc-plugin</artifactId>
>
> <reportSets>
>
> <reportSet>
>
> <id>uml</id>
>
> <configuration>
>
>
<doclet>gr.spinellis.umlgraph.doclet.UmlGraph</doclet>
>
> <docletArtifact>
>
> <groupId>umlgraph</groupId>
>
> <artifactId>UMLGraph</artifactId>
>
> <version>4.2-SNAPSHOT</version>
>
> </docletArtifact>
>
> <additionalparam>-views</additionalparam>
>
> <destDir>target/uml</destDir>
>
> <show>private</show>
>
> </configuration>
>
> <reports>
>
> <report>javadoc</report>
>
> </reports>
>
> </reportSet>
>
> <reportSet>
>
> <id>html</id>
>
> <configuration>
>
> <show>private</show>
>
> </configuration>
>
> <reports>
>
> <report>javadoc</report>
>
> </reports>
>
> </reportSet>
>
> </reportSets>
>
> </plugin>
>
>
>
> Please advice how to resolv it.
>
>
>
> Thanks and Regards,
>
> Anuradha Sinduria
>
>
>
>
>
>
---------------------------------------------------------------------
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
Re: Java doc generation
Posted by Tim Kettler <ti...@udo.edu>.
Hi,
this is a known bug [1]. It's fixed in svn but a fixed version is not
released yet. Aa a workaround, just create a symlink.
-Tim
[1] http://jira.codehaus.org/browse/PLXUTILS-34
Sinduria,Anuradha schrieb:
>
>
> Hi All,
>
>
>
> I want to do Java doc generation while doing "mvn site" on my UNIX Free BSD
> 6.2.
>
> I added following in my pom
>
>
>
> <plugin>
>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-javadoc-plugin</artifactId>
>
> <configuration>
>
> <links>
>
> <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
>
> <link>http://plexus.codehaus.org/ref/1.0-alpha-9/apidocs</link>
>
> <link>http://jakarta.apache.org/commons/dbcp/apidocs/</link>
>
> </links>
>
> </configuration>
>
> </plugin>
>
>
>
> I am getting the following error
>
>
>
> [INFO] Generate "JavaDocs" report.
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] BUILD ERROR
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Error during page generation
>
>
>
> Embedded error: Error rendering Maven report: Unable to find javadoc
> version: Error while executing process.
>
> java.io.IOException: /bin/bash: not found
>
> [INFO]
> ------------------------------------------------------------------------
>
>
>
> My bash is in /usr/local/bin/bash and I have sh shell inside /bin (/bin/sh)
>
>
>
> I tried below plugin also but getting same error:
>
>
>
> <plugin>
>
> <artifactId>maven-javadoc-plugin</artifactId>
>
> <reportSets>
>
> <reportSet>
>
> <id>uml</id>
>
> <configuration>
>
> <doclet>gr.spinellis.umlgraph.doclet.UmlGraph</doclet>
>
> <docletArtifact>
>
> <groupId>umlgraph</groupId>
>
> <artifactId>UMLGraph</artifactId>
>
> <version>4.2-SNAPSHOT</version>
>
> </docletArtifact>
>
> <additionalparam>-views</additionalparam>
>
> <destDir>target/uml</destDir>
>
> <show>private</show>
>
> </configuration>
>
> <reports>
>
> <report>javadoc</report>
>
> </reports>
>
> </reportSet>
>
> <reportSet>
>
> <id>html</id>
>
> <configuration>
>
> <show>private</show>
>
> </configuration>
>
> <reports>
>
> <report>javadoc</report>
>
> </reports>
>
> </reportSet>
>
> </reportSets>
>
> </plugin>
>
>
>
> Please advice how to resolv it.
>
>
>
> Thanks and Regards,
>
> Anuradha Sinduria
>
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Java doc generation
Posted by Gisbert Amm <gi...@webde.de>.
What does ls /bin/bash say? If you get "No such file or directory" you
need to add a symlink in /bin to your Bash in /usr/local/bin/bash.
If /bin/bash is there, then most likely the script that is called got
Windows line endings in it which results in a erroneous call to
/bin/bash\r and the \r not visible in the error output.
-Gisbert
Sinduria,Anuradha wrote:
>
>
> Hi All,
>
>
>
> I want to do Java doc generation while doing "mvn site" on my UNIX Free BSD
> 6.2.
>
> I added following in my pom
>
>
>
> <plugin>
>
> <groupId>org.apache.maven.plugins</groupId>
>
> <artifactId>maven-javadoc-plugin</artifactId>
>
> <configuration>
>
> <links>
>
> <link>http://java.sun.com/j2se/1.5.0/docs/api/</link>
>
> <link>http://plexus.codehaus.org/ref/1.0-alpha-9/apidocs</link>
>
> <link>http://jakarta.apache.org/commons/dbcp/apidocs/</link>
>
> </links>
>
> </configuration>
>
> </plugin>
>
>
>
> I am getting the following error
>
>
>
> [INFO] Generate "JavaDocs" report.
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] BUILD ERROR
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Error during page generation
>
>
>
> Embedded error: Error rendering Maven report: Unable to find javadoc
> version: Error while executing process.
>
> java.io.IOException: /bin/bash: not found
>
> [INFO]
> ------------------------------------------------------------------------
>
>
>
> My bash is in /usr/local/bin/bash and I have sh shell inside /bin (/bin/sh)
>
>
>
> I tried below plugin also but getting same error:
>
>
>
> <plugin>
>
> <artifactId>maven-javadoc-plugin</artifactId>
>
> <reportSets>
>
> <reportSet>
>
> <id>uml</id>
>
> <configuration>
>
> <doclet>gr.spinellis.umlgraph.doclet.UmlGraph</doclet>
>
> <docletArtifact>
>
> <groupId>umlgraph</groupId>
>
> <artifactId>UMLGraph</artifactId>
>
> <version>4.2-SNAPSHOT</version>
>
> </docletArtifact>
>
> <additionalparam>-views</additionalparam>
>
> <destDir>target/uml</destDir>
>
> <show>private</show>
>
> </configuration>
>
> <reports>
>
> <report>javadoc</report>
>
> </reports>
>
> </reportSet>
>
> <reportSet>
>
> <id>html</id>
>
> <configuration>
>
> <show>private</show>
>
> </configuration>
>
> <reports>
>
> <report>javadoc</report>
>
> </reports>
>
> </reportSet>
>
> </reportSets>
>
> </plugin>
>
>
>
> Please advice how to resolv it.
>
>
>
> Thanks and Regards,
>
> Anuradha Sinduria
>
>
>
>
>
>
--
Gisbert Amm
Softwareentwickler Infrastruktur
Telefon: (0721) 91374 - 4224
Telefax: (0721) 91374 - 2740
E-Mail: gisbert.amm@1und1.de
Internet: www.1und1.de
1&1 Internet AG
Elgendorfer Strasse 57
56410 Montabaur
Amtsgericht Montabaur HRB 6484
Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Andreas
Gauger, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Norbert
Lang, Achim Weiss
Aufsichtsratsvorsitzender: Michael Scheeren
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org