You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Dave Sag (JIRA)" <ji...@codehaus.org> on 2005/10/10 11:01:11 UTC

[jira] Created: (MNG-1155) javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.

javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.
---------------------------------------------------------------------------------------

         Key: MNG-1155
         URL: http://jira.codehaus.org/browse/MNG-1155
     Project: Maven 2
        Type: Bug
  Components: maven-javadoc-plugin  
    Versions: 2.0-beta-3    
 Environment: Mac OSX 10.4.2
 Reporter: Dave Sag
     Fix For: 2.0-beta-4


The javadoc:javadoc plugin has started failing on my Mac since the release of beta 3 of m2.

the stacktrace is as follows:

[INFO] ----------------------------------------------------------------------------
[INFO] Diagnosis: An error has occurred in JavaDocs report generation.
[INFO] ----------------------------------------------------------------------------
[DEBUG] Trace:

org.apache.maven.plugin.MojoExecutionException: An error has occurred in JavaDocs report generation.
        at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:98)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:554)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:517)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:498)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:307)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
        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:324)
        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.reporting.MavenReportException: An error has occurred in javadoc report generation.
        at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:841)
        at org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:583)
        at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:92)
        ... 16 more
Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while executing process.
        at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:679)
        at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:69)
        at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:56)
        at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:831)
        ... 18 more
Caused by: java.io.IOException: /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/../bin/javadoc: not found
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:566)
        at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:674)
        ... 21 more

the correct path should be $JAVA_HOME/bin/javadoc

not $JAVA_HOME/../bin/javadoc

at least that's on the mac.  not sure where java ends up on other platforms.

dave


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (MNG-1155) javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.

Posted by "Jerome Lacoste (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1155?page=all ]

Jerome Lacoste updated MNG-1155:
--------------------------------

    Attachment: MNG-1155-macosx-support-for-javadoc-plugin.diff

Should work on Max OS X. What about Mac OS?

> javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.
> ---------------------------------------------------------------------------------------
>
>          Key: MNG-1155
>          URL: http://jira.codehaus.org/browse/MNG-1155
>      Project: Maven 2
>         Type: Bug
>   Components: maven-javadoc-plugin
>     Versions: 2.0-beta-3
>  Environment: Mac OSX 10.4.2
>     Reporter: Dave Sag
>     Assignee: John Casey
>      Fix For: 2.0-beta-4
>  Attachments: MNG-1155-macosx-support-for-javadoc-plugin.diff
>
>
> The javadoc:javadoc plugin has started failing on my Mac since the release of beta 3 of m2.
> the stacktrace is as follows:
> [INFO] ----------------------------------------------------------------------------
> [INFO] Diagnosis: An error has occurred in JavaDocs report generation.
> [INFO] ----------------------------------------------------------------------------
> [DEBUG] Trace:
> org.apache.maven.plugin.MojoExecutionException: An error has occurred in JavaDocs report generation.
>         at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:98)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:554)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:517)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:498)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:307)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
>         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:324)
>         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.reporting.MavenReportException: An error has occurred in javadoc report generation.
>         at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:841)
>         at org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:583)
>         at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:92)
>         ... 16 more
> Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while executing process.
>         at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:679)
>         at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:69)
>         at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:56)
>         at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:831)
>         ... 18 more
> Caused by: java.io.IOException: /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/../bin/javadoc: not found
>         at java.lang.UNIXProcess.forkAndExec(Native Method)
>         at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
>         at java.lang.Runtime.execInternal(Native Method)
>         at java.lang.Runtime.exec(Runtime.java:566)
>         at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:674)
>         ... 21 more
> the correct path should be $JAVA_HOME/bin/javadoc
> not $JAVA_HOME/../bin/javadoc
> at least that's on the mac.  not sure where java ends up on other platforms.
> dave

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (MNG-1155) javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1155?page=all ]
     
John Casey closed MNG-1155:
---------------------------

    Resolution: Fixed

Thanks, Dave. Applied the patch.

> javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.
> ---------------------------------------------------------------------------------------
>
>          Key: MNG-1155
>          URL: http://jira.codehaus.org/browse/MNG-1155
>      Project: Maven 2
>         Type: Bug
>   Components: maven-javadoc-plugin
>     Versions: 2.0-beta-3
>  Environment: Mac OSX 10.4.2
>     Reporter: Dave Sag
>     Assignee: John Casey
>      Fix For: 2.0-beta-4
>  Attachments: MNG-1155-macosx-support-for-javadoc-plugin.diff
>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> The javadoc:javadoc plugin has started failing on my Mac since the release of beta 3 of m2.
> the stacktrace is as follows:
> [INFO] ----------------------------------------------------------------------------
> [INFO] Diagnosis: An error has occurred in JavaDocs report generation.
> [INFO] ----------------------------------------------------------------------------
> [DEBUG] Trace:
> org.apache.maven.plugin.MojoExecutionException: An error has occurred in JavaDocs report generation.
>         at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:98)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:554)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:517)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:498)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:307)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
>         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:324)
>         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.reporting.MavenReportException: An error has occurred in javadoc report generation.
>         at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:841)
>         at org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:583)
>         at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:92)
>         ... 16 more
> Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while executing process.
>         at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:679)
>         at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:69)
>         at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:56)
>         at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:831)
>         ... 18 more
> Caused by: java.io.IOException: /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/../bin/javadoc: not found
>         at java.lang.UNIXProcess.forkAndExec(Native Method)
>         at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
>         at java.lang.Runtime.execInternal(Native Method)
>         at java.lang.Runtime.exec(Runtime.java:566)
>         at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:674)
>         ... 21 more
> the correct path should be $JAVA_HOME/bin/javadoc
> not $JAVA_HOME/../bin/javadoc
> at least that's on the mac.  not sure where java ends up on other platforms.
> dave

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MNG-1155) javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.

Posted by "Jerome Lacoste (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1155?page=comments#action_48442 ] 

Jerome Lacoste commented on MNG-1155:
-------------------------------------

I don't have a Mac, so take this with a grain of salt.

According to Sun, Apple is the provider of the VM.
http://www.java.com/en/download/manual.jsp

According to Apple
- the java.home points to /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/
  and the javadoc is in $JAVA_HOME/bin/

http://developer.apple.com/documentation/Java/Conceptual/Java14Development/01-JavaOverview/JavaOverview.html

So we probably just need to tune the construction of the Path according to the following patch.

> javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.
> ---------------------------------------------------------------------------------------
>
>          Key: MNG-1155
>          URL: http://jira.codehaus.org/browse/MNG-1155
>      Project: Maven 2
>         Type: Bug
>   Components: maven-javadoc-plugin
>     Versions: 2.0-beta-3
>  Environment: Mac OSX 10.4.2
>     Reporter: Dave Sag
>     Assignee: John Casey
>      Fix For: 2.0-beta-4

>
>
> The javadoc:javadoc plugin has started failing on my Mac since the release of beta 3 of m2.
> the stacktrace is as follows:
> [INFO] ----------------------------------------------------------------------------
> [INFO] Diagnosis: An error has occurred in JavaDocs report generation.
> [INFO] ----------------------------------------------------------------------------
> [DEBUG] Trace:
> org.apache.maven.plugin.MojoExecutionException: An error has occurred in JavaDocs report generation.
>         at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:98)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:554)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:517)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:498)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:307)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
>         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:324)
>         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.reporting.MavenReportException: An error has occurred in javadoc report generation.
>         at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:841)
>         at org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:583)
>         at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:92)
>         ... 16 more
> Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while executing process.
>         at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:679)
>         at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:69)
>         at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:56)
>         at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:831)
>         ... 18 more
> Caused by: java.io.IOException: /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/../bin/javadoc: not found
>         at java.lang.UNIXProcess.forkAndExec(Native Method)
>         at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
>         at java.lang.Runtime.execInternal(Native Method)
>         at java.lang.Runtime.exec(Runtime.java:566)
>         at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:674)
>         ... 21 more
> the correct path should be $JAVA_HOME/bin/javadoc
> not $JAVA_HOME/../bin/javadoc
> at least that's on the mac.  not sure where java ends up on other platforms.
> dave

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Commented: (MNG-1155) javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.

Posted by "Dave Sag (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MNG-1155?page=comments#action_48486 ] 

Dave Sag commented on MNG-1155:
-------------------------------

hey jerome, no need to worry about older mac os (pre x) as it never ran a java later than 1.1
hey john - many thanks.

> javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.
> ---------------------------------------------------------------------------------------
>
>          Key: MNG-1155
>          URL: http://jira.codehaus.org/browse/MNG-1155
>      Project: Maven 2
>         Type: Bug
>   Components: maven-javadoc-plugin
>     Versions: 2.0-beta-3
>  Environment: Mac OSX 10.4.2
>     Reporter: Dave Sag
>     Assignee: John Casey
>      Fix For: 2.0-beta-4
>  Attachments: MNG-1155-macosx-support-for-javadoc-plugin.diff
>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> The javadoc:javadoc plugin has started failing on my Mac since the release of beta 3 of m2.
> the stacktrace is as follows:
> [INFO] ----------------------------------------------------------------------------
> [INFO] Diagnosis: An error has occurred in JavaDocs report generation.
> [INFO] ----------------------------------------------------------------------------
> [DEBUG] Trace:
> org.apache.maven.plugin.MojoExecutionException: An error has occurred in JavaDocs report generation.
>         at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:98)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:554)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:517)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:498)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:307)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
>         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:324)
>         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.reporting.MavenReportException: An error has occurred in javadoc report generation.
>         at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:841)
>         at org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:583)
>         at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:92)
>         ... 16 more
> Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while executing process.
>         at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:679)
>         at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:69)
>         at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:56)
>         at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:831)
>         ... 18 more
> Caused by: java.io.IOException: /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/../bin/javadoc: not found
>         at java.lang.UNIXProcess.forkAndExec(Native Method)
>         at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
>         at java.lang.Runtime.execInternal(Native Method)
>         at java.lang.Runtime.exec(Runtime.java:566)
>         at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:674)
>         ... 21 more
> the correct path should be $JAVA_HOME/bin/javadoc
> not $JAVA_HOME/../bin/javadoc
> at least that's on the mac.  not sure where java ends up on other platforms.
> dave

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (MNG-1155) javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.

Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-1155?page=all ]

John Casey updated MNG-1155:
----------------------------

    Remaining Estimate: 30 minutes
     Original Estimate: 1800

applied patch, and testing.

> javadoc:javadoc fails with ioexception on Mac OSX due to wrong path to javadoc command.
> ---------------------------------------------------------------------------------------
>
>          Key: MNG-1155
>          URL: http://jira.codehaus.org/browse/MNG-1155
>      Project: Maven 2
>         Type: Bug
>   Components: maven-javadoc-plugin
>     Versions: 2.0-beta-3
>  Environment: Mac OSX 10.4.2
>     Reporter: Dave Sag
>     Assignee: John Casey
>      Fix For: 2.0-beta-4
>  Attachments: MNG-1155-macosx-support-for-javadoc-plugin.diff
>
> Original Estimate: 30 minutes
>         Remaining: 30 minutes
>
> The javadoc:javadoc plugin has started failing on my Mac since the release of beta 3 of m2.
> the stacktrace is as follows:
> [INFO] ----------------------------------------------------------------------------
> [INFO] Diagnosis: An error has occurred in JavaDocs report generation.
> [INFO] ----------------------------------------------------------------------------
> [DEBUG] Trace:
> org.apache.maven.plugin.MojoExecutionException: An error has occurred in JavaDocs report generation.
>         at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:98)
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:554)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:517)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:498)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:307)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)
>         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:324)
>         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.reporting.MavenReportException: An error has occurred in javadoc report generation.
>         at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:841)
>         at org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:583)
>         at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:92)
>         ... 16 more
> Caused by: org.codehaus.plexus.util.cli.CommandLineException: Error while executing process.
>         at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:679)
>         at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:69)
>         at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine(CommandLineUtils.java:56)
>         at org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:831)
>         ... 18 more
> Caused by: java.io.IOException: /System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Home/../bin/javadoc: not found
>         at java.lang.UNIXProcess.forkAndExec(Native Method)
>         at java.lang.UNIXProcess.<init>(UNIXProcess.java:54)
>         at java.lang.Runtime.execInternal(Native Method)
>         at java.lang.Runtime.exec(Runtime.java:566)
>         at org.codehaus.plexus.util.cli.Commandline.execute(Commandline.java:674)
>         ... 21 more
> the correct path should be $JAVA_HOME/bin/javadoc
> not $JAVA_HOME/../bin/javadoc
> at least that's on the mac.  not sure where java ends up on other platforms.
> dave

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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