Hi,
I think it is a bug in the maven javadoc plugin. The code to move into
a certain directory is failing because the directory is not quoted.
I can reproduce on my Mac and i get:
Command line was:"cd /Users/paulsandoz/tmp/wadl with space/generate-
wadl-1.0.2-SNAPSHOT/target/site/apidocs && /System/Library/Frameworks/
JavaVM.framework/Versions/1.5.0/Home/bin/javadoc" @options
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
583)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeTaskSegments(DefaultLifecycleExecutor.java:291)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error
has occurred in JavaDocs report generation:Exit code: 1 - /bin/sh:
line 0: cd: /Users/paulsandoz/tmp/wadl: No such file or directory
Command line was:"cd /Users/paulsandoz/tmp/wadl with space/generate-
wadl-1.0.2-SNAPSHOT/target/site/apidocs && /System/Library/Frameworks/
JavaVM.framework/Versions/1.5.0/Home/bin/javadoc" @options
at
org
.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:
238)
at
org
.apache
.maven
.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
558)
... 16 more
Caused by: org.apache.maven.reporting.MavenReportException: Exit code:
1 - /bin/sh: line 0: cd: /Users/paulsandoz/tmp/wadl: No such file or
directory
Command line was:"cd /Users/paulsandoz/tmp/wadl with space/generate-
wadl-1.0.2-SNAPSHOT/target/site/apidocs && /System/Library/Frameworks/
JavaVM.framework/Versions/1.5.0/Home/bin/javadoc" @options
at
org
.apache
.maven
.plugin
.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:
1580)
at
org
.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:
136)
at
org
.apache.maven.plugin.javadoc.JavadocReport.execute(JavadocReport.java:
224)
... 18 more
Paul.
On Jan 28, 2009, at 9:09 PM, Gili wrote:
>
> The problem has something to do with the fact that I'm building
> Jersey from
> within a path that contains spaces. The full path is: "c:\users\gili
> \My
> Documents\\jersey\trunk\jersey\samples\generate-wadl\target\classes/
> resourcedoc.xml"
>
> Gili
>
>
> Gili wrote:
>>
>> See the attached build log.
>>
>> http://n2.nabble.com/file/n2234568/build.log build.log
>>
>> Caused by: org.apache.maven.reporting.MavenReportException: Exit
>> code: 1 -
>> javadoc: error - Illegal package name:
>> "Documents\jersey\trunk\jersey\samples\generate-wadl\target\classes/
>> resourcedoc.xml"
>>
>> Gili
>>
>
> --
> View this message in context: http://n2.nabble.com/samples-generate-wadl-fails-to-build-under-Windows-tp2234568p2234576.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>