You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Giovanni Azua <br...@swissonline.ch> on 2007/06/27 23:04:59 UTC

Exception configuring javadoc with yDoc ...

The configuration is:

JDK 1.6
Maven 2.0.6

Bellow is the stack trace of my customized run of javadoc plugin 
using the yDoc doclet:

$ mvn javadoc:javadoc -X

Any ideas? 

Thanks in advance.

Regards,
Giovanni

[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-javadoc-plugin:2.2:javadoc' -->
[DEBUG]   (f) additionalparam = -link
http://java.sun.com/j2se/1.5.0/docs/api/
						-link
http://logging.apache.org/log4j/docs/api/
						-docfilessubdirs -umlautogen
-umlgen -umltypegen
						-umlpackagegen
-umloverviewgen -author
[DEBUG]   (f) aggregate = false
[DEBUG]   (f) author = true
[DEBUG]   (f) bottom = Copyright &copy; {inceptionYear}-{currentYear}
{organizationName}. All Rights Reserved.
[DEBUG]   (f) breakiterator = false
[DEBUG]   (f) charset = ISO-8859-1
[DEBUG]   (f) debug = false
[DEBUG]   (f) description = JavaDoc API documentation.
[DEBUG]   (f) destDir = apidocs
[DEBUG]   (f) docfilessubdirs = false
[DEBUG]   (f) doclet = ydoc.doclets.YStandard
[DEBUG]   (f) docletArtifact = groupId = 'null'
artifactId = 'null'
version = 'null'
[DEBUG]   (f) docletArtifacts =
[Lorg.apache.maven.plugin.javadoc.options.DocletArtifact;@19a0203
[DEBUG]   (f) docletPath =
C:\java\3p\ydoc-2.2_04-jdk1.5/lib/ydoc.jar:C:\java\3p\ydoc-2.2_04-jdk1.5/lib
/styleed.jar:C:\java\3p\ydoc-2.2_04-jdk1.5/lib/class2svg.jar:C:\java\3p\ydoc
-2.2_04-jdk1.5/resources
[DEBUG]   (f) doctitle = PerfectJPattern 0.0.1 API
[DEBUG]   (f) groups =
[Lorg.apache.maven.plugin.javadoc.options.Group;@e45b5e
[DEBUG]   (f) isOffline = false
[DEBUG]   (f) javadocDirectory =
C:\Projects\perfectjpattern\trunk/src/main/javadoc
[DEBUG]   (f) keywords = false
[DEBUG]   (f) links = []
[DEBUG]   (f) linksource = false
[DEBUG]   (f) localRepository = [local] -> file://C:\Documents and
Settings\Giovanni Azua Garcia\.m2\repository
[DEBUG]   (f) name = JavaDocs
[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) nosince = false
[DEBUG]   (f) notimestamp = false
[DEBUG]   (f) notree = false
[DEBUG]   (f) offlineLinks = []
[DEBUG]   (f) old = false
[DEBUG]   (f) outputDirectory =
C:\Projects\perfectjpattern\trunk\target\apidocs
[DEBUG]   (f) project = org.apache.maven.project.MavenProject@3b134788
[DEBUG]   (f) quiet = false
[DEBUG]   (f) reactorProjects =
[org.apache.maven.project.MavenProject@3b134788]
[DEBUG]   (f) remoteRepositories = [[central] ->
http://repo1.maven.org/maven2]
[DEBUG]   (s) reportOutputDirectory =
C:\Projects\perfectjpattern\trunk\target\site\apidocs
[DEBUG]   (f) serialwarn = false
[DEBUG]   (f) show = protected
[DEBUG]   (f) splitindex = false
[DEBUG]   (f) stylesheet = java
[DEBUG]   (f) tagletArtifact = groupId = 'null'
artifactId = 'null'
version = 'null'
[DEBUG]   (f) taglets =
[Lorg.apache.maven.plugin.javadoc.options.Taglet;@f0b4a3
[DEBUG]   (f) tags = [Lorg.apache.maven.plugin.javadoc.options.Tag;@15428dd
[DEBUG]   (f) use = true
[DEBUG]   (f) verbose = false
[DEBUG]   (f) version = true
[DEBUG]   (f) windowtitle = PerfectJPattern 0.0.1 API
[DEBUG] -- end configuration --
[INFO] [javadoc:javadoc]
[WARNING] No docletpath option was found. Please review <docletpath/> or
<docletArtifact/> or <doclets/>.
[DEBUG] "C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe" @options
@packages
1 error
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An error has occurred in JavaDocs report generation:Exit code: 1 -
javadoc: error - Invalid mode: Try running in headless mode.


Command line was:"C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe"
@options @packages

[INFO]
------------------------------------------------------------------------
[DEBUG] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An error has
occurred in JavaDocs report generation:Exit code: 1 - javadoc: error -
Invalid mode: Try running in headless mode.


Command line was:"C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe"
@options @packages
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:564)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
faultLifecycleExecutor.java:493)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
ycleExecutor.java:463)
	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:597)
	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)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error has
occurred in JavaDocs report generation:Exit code: 1 - javadoc: error -
Invalid mode: Try running in headless mode.


Command line was:"C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe"
@options @packages
	at
org.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:233
)
	at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
r.java:443)
	at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
cycleExecutor.java:539)
	... 16 more
Caused by: org.apache.maven.reporting.MavenReportException: Exit code: 1 -
javadoc: error - Invalid mode: Try running in headless mode.


Command line was:"C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe"
@options @packages
	at
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJa
vadocMojo.java:1203)
	at
org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:13
1)
	at
org.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:219
)
	... 18 more 



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


RE: Exception configuring javadoc with yDoc ...

Posted by Giovanni Azua <br...@swissonline.ch>.
The only way to solve the issue was to add all required ydoc library and
resource files under the CLASSPATH environment variable ... Strange as it
should not be that way.

Anyways how can I overwrite classpath info within a profile? examples? 

TIA,
Regards,
Giovanni



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


Re: Exception configuring javadoc with yDoc ...

Posted by Maria Odea Ching <oc...@exist.com>.
Hi,

I don't think you need to include the styleed.jar in your docletPath.
 From what I understand its an executable jar (a GUI-based style
editor). My guess is that's what's causing your error.

HTH,
Deng

Giovanni Azua wrote:
> The configuration is:
>
> JDK 1.6
> Maven 2.0.6
>
> Bellow is the stack trace of my customized run of javadoc plugin 
> using the yDoc doclet:
>
> $ mvn javadoc:javadoc -X
>
> Any ideas? 
>
> Thanks in advance.
>
> Regards,
> Giovanni
>
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-javadoc-plugin:2.2:javadoc' -->
> [DEBUG]   (f) additionalparam = -link
> http://java.sun.com/j2se/1.5.0/docs/api/
> 						-link
> http://logging.apache.org/log4j/docs/api/
> 						-docfilessubdirs -umlautogen
> -umlgen -umltypegen
> 						-umlpackagegen
> -umloverviewgen -author
> [DEBUG]   (f) aggregate = false
> [DEBUG]   (f) author = true
> [DEBUG]   (f) bottom = Copyright &copy; {inceptionYear}-{currentYear}
> {organizationName}. All Rights Reserved.
> [DEBUG]   (f) breakiterator = false
> [DEBUG]   (f) charset = ISO-8859-1
> [DEBUG]   (f) debug = false
> [DEBUG]   (f) description = JavaDoc API documentation.
> [DEBUG]   (f) destDir = apidocs
> [DEBUG]   (f) docfilessubdirs = false
> [DEBUG]   (f) doclet = ydoc.doclets.YStandard
> [DEBUG]   (f) docletArtifact = groupId = 'null'
> artifactId = 'null'
> version = 'null'
> [DEBUG]   (f) docletArtifacts =
> [Lorg.apache.maven.plugin.javadoc.options.DocletArtifact;@19a0203
> [DEBUG]   (f) docletPath =
> C:\java\3p\ydoc-2.2_04-jdk1.5/lib/ydoc.jar:C:\java\3p\ydoc-2.2_04-jdk1.5/lib
> /styleed.jar:C:\java\3p\ydoc-2.2_04-jdk1.5/lib/class2svg.jar:C:\java\3p\ydoc
> -2.2_04-jdk1.5/resources
> [DEBUG]   (f) doctitle = PerfectJPattern 0.0.1 API
> [DEBUG]   (f) groups =
> [Lorg.apache.maven.plugin.javadoc.options.Group;@e45b5e
> [DEBUG]   (f) isOffline = false
> [DEBUG]   (f) javadocDirectory =
> C:\Projects\perfectjpattern\trunk/src/main/javadoc
> [DEBUG]   (f) keywords = false
> [DEBUG]   (f) links = []
> [DEBUG]   (f) linksource = false
> [DEBUG]   (f) localRepository = [local] -> file://C:\Documents and
> Settings\Giovanni Azua Garcia\.m2\repository
> [DEBUG]   (f) name = JavaDocs
> [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) nosince = false
> [DEBUG]   (f) notimestamp = false
> [DEBUG]   (f) notree = false
> [DEBUG]   (f) offlineLinks = []
> [DEBUG]   (f) old = false
> [DEBUG]   (f) outputDirectory =
> C:\Projects\perfectjpattern\trunk\target\apidocs
> [DEBUG]   (f) project = org.apache.maven.project.MavenProject@3b134788
> [DEBUG]   (f) quiet = false
> [DEBUG]   (f) reactorProjects =
> [org.apache.maven.project.MavenProject@3b134788]
> [DEBUG]   (f) remoteRepositories = [[central] ->
> http://repo1.maven.org/maven2]
> [DEBUG]   (s) reportOutputDirectory =
> C:\Projects\perfectjpattern\trunk\target\site\apidocs
> [DEBUG]   (f) serialwarn = false
> [DEBUG]   (f) show = protected
> [DEBUG]   (f) splitindex = false
> [DEBUG]   (f) stylesheet = java
> [DEBUG]   (f) tagletArtifact = groupId = 'null'
> artifactId = 'null'
> version = 'null'
> [DEBUG]   (f) taglets =
> [Lorg.apache.maven.plugin.javadoc.options.Taglet;@f0b4a3
> [DEBUG]   (f) tags = [Lorg.apache.maven.plugin.javadoc.options.Tag;@15428dd
> [DEBUG]   (f) use = true
> [DEBUG]   (f) verbose = false
> [DEBUG]   (f) version = true
> [DEBUG]   (f) windowtitle = PerfectJPattern 0.0.1 API
> [DEBUG] -- end configuration --
> [INFO] [javadoc:javadoc]
> [WARNING] No docletpath option was found. Please review <docletpath/> or
> <docletArtifact/> or <doclets/>.
> [DEBUG] "C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe" @options
> @packages
> 1 error
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] An error has occurred in JavaDocs report generation:Exit code: 1 -
> javadoc: error - Invalid mode: Try running in headless mode.
>
>
> Command line was:"C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe"
> @options @packages
>
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: An error has
> occurred in JavaDocs report generation:Exit code: 1 - javadoc: error -
> Invalid mode: Try running in headless mode.
>
>
> Command line was:"C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe"
> @options @packages
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
> cycleExecutor.java:564)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(De
> faultLifecycleExecutor.java:493)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifec
> ycleExecutor.java:463)
> 	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:597)
> 	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)
> Caused by: org.apache.maven.plugin.MojoExecutionException: An error has
> occurred in JavaDocs report generation:Exit code: 1 - javadoc: error -
> Invalid mode: Try running in headless mode.
>
>
> Command line was:"C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe"
> @options @packages
> 	at
> org.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:233
> )
> 	at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManage
> r.java:443)
> 	at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLife
> cycleExecutor.java:539)
> 	... 16 more
> Caused by: org.apache.maven.reporting.MavenReportException: Exit code: 1 -
> javadoc: error - Invalid mode: Try running in headless mode.
>
>
> Command line was:"C:\Program Files\Java\jdk1.6.0_01\jre\..\bin\javadoc.exe"
> @options @packages
> 	at
> org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJa
> vadocMojo.java:1203)
> 	at
> org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:13
> 1)
> 	at
> org.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:219
> )
> 	... 18 more 
>
>
>
> ---------------------------------------------------------------------
> 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