You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by c_inconnu3 <c_...@yahoo.fr> on 2005/09/22 21:41:34 UTC

[m2] javadoc plugin and

Hi,

I am trying to generate javadoc with M2 b1. My pom contains :

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <version>2.0-beta-1</version>
                <configuration>
                    
<linkoffline>http://java.sun.com/j2se/1.4.2/docs/api/ 
../root/src/javadoc/j2sdk-1.4.2/</linkoffline>
                    <source>1.4</source>
                </configuration>
            </plugin>
            ...
        </plugins>
    </reporting>

but i got :

[INFO] [javadoc:javadoc]
[INFO] C:\Programmation\j2sdk1.4.2_08\jre\..\bin\javadoc.exe -package 
-source 1.4 -sourcePath D:\projets\ndd\root\..\ndd
14-base\src\main\java -classpath 
D:\projets\ndd\root\..\base\target\classes;d:\temp\maven2\repository\junit\junit\
3.8.1\junit-3.8.1.jar;d:\temp\maven2\repository\log4j\log4j\1.2.9\log4j-1.2.9.jar;d:\temp\maven2\repository\commons-io\commons-io\
1.0\commons-io-1.0.jar;d:\temp\maven2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;d:\temp\maven2\repository\comm
ons-primitives\commons-primitives\1.0\commons-primitives-1.0.jar -author 
-bottom "Copyright null DD. All Rights Reserved
." -charset ISO-8859-1 -d 
D:\projets\ndd\root\..\base\target\javadoc\apidocs -doctitle "NDD Base 
project 0.20-SN
APSHOT API" -linkoffline "http://java.sun.com/j2se/1.4.2/docs/api/ 
../root/src/javadoc/j2sdk-1.4.2/" -stylesheetfile D:\proj
ets\ndd\root\..\base\target\javadoc\apidocs\stylesheet.css -use -version 
-windowtitle "NDD Base project 0.20-SNA
PSHOT API" @files
javadoc: Illegal package name: 
"D:\projets\ndd\root\..\base\target\javadoc\apidocs\stylesheet.css"
Loading source file myfile1
Loading source file myfile2
..
1 error
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] Diagnosis: An error has occurred in JavaDocs report generation.
[INFO] 
----------------------------------------------------------------------------
[ERROR] Cause:
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:357)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:479)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:460)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:442)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
        at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:131)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
        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.apache.maven.reporting.MavenReportException: Exit code: 1
        at 
org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:835)
        ... 18 more
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu Sep 22 21:35:45 CEST 2005
[INFO] Final Memory: 2M/4M
[INFO] 
----------------------------------------------------------------------------


Is there something wrong in my pom ?

Thanks

David DIDIER



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


Re: [m2] javadoc plugin and - online links in offline mode

Posted by Martin Skopp <sk...@riege.com>.
Hi Trygve,

Trygve Laugstøl schrieb:
> I was thinking something like this:
> 
> <offlineLinks>
>   <offlineLink>
>     <url>a</url>
>     <packageListUrl>b</packageListUrl> <-- is this really required?
>   </offlineLink>
> </offlineLinks>

It's required to specify a *online URL* and a *offline local path* when 
you want to generates *online links* in offline mode, see 
http://maven.apache.org/reference/plugins/javadoc/faq.html#offlineLinks 
for and example with the maven.javadoc.offlineLinks property.

To generate offline links in offline mode, the local path is sufficient, 
of course.

Regards,
-- 
Martin Skopp
Riege Software International GmbH
Support: mailto:maint@riege.com, Information: http://www.riege.com

This email is intended to be viewed with a nonproportional font.


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


Re: [m2] javadoc plugin and

Posted by Martin Skopp <sk...@riege.com>.
Hi,

Trygve Laugstøl schrieb:
> I was thinking something like this:
> 
> <offlineLinks>
>   <offlineLink>
>     <url>a</url>
>     <packageListUrl>b</packageListUrl> <-- is this really required?
>   </offlineLink>
> </offlineLinks>

Yeah, I would also appreciate keeping naming in sync with the 
javadoc-plugin propertly

maven.javadoc.offlineLinks

See http://maven.apache.org/reference/plugins/javadoc/properties.html

Thanks
-- 
Martin Skopp
Riege Software International GmbH
Support: mailto:maint@riege.com, Information: http://www.riege.com

This email is intended to be viewed with a nonproportional font.


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


Re: [m2] javadoc plugin and

Posted by c_inconnu3 <c_...@yahoo.fr>.
Hi,

I agree with Trygve, it should be better to have something like that

<offlineLinks>
  <offlineLink>
    *<extdocURL>*http://java.sun.com/j2se/1.4.2/docs/api/*</extdocURL>*
    *<packagelistLoc>*my/local/path/to/package-list*</packagelistLoc>*
  </offlineLink>
  <offlineLink>
    *<extdocURL>*...*</extdocURL>*
    *<packagelistLoc>*...*</packagelistLoc>*
  </offlineLink>
</offlineLinks>

rather than an ugly

<linkoffline>a b, c d</linkoffline>

wich could possibly be very very long...

David



Trygve Laugstøl a écrit :

>On Thu, 2005-09-22 at 18:46 -0400, Vincent Siveton wrote:
>  
>
>>Hi Trygve,
>>
>>    
>>
>>>>Try to specify linkoffline as a comma separated list of path or URL.
>>>>        
>>>>
>>>I think it would be best to make the linkoffline a List of Strings, it's
>>>more readable and easier to process for other tools.
>>>      
>>>
>>I agree with you.
>>I propose <linkoffline>a b, c d</linkoffline> as David tried.
>>    
>>
>
>I was thinking something like this:
>
><offlineLinks>
>  <offlineLink>
>    <url>a</url>
>    <packageListUrl>b</packageListUrl> <-- is this really required?
>  </offlineLink>
></offlineLinks>
>
>  
>
>>>Is there a reason for the parameter to be named "linkoffline" instead of
>>>"offline-link"? Is that the parameter to the javadoc tool?
>>>      
>>>
>>linkoffline is the parameter from the javadoc documentation:
>>http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#linkofflin
>>e
>>offlineLinkS is the parameter of m1 javadoc plugin.
>>    
>>
>
>I'd like to keep that name, it's IMO more intuitive.
>
>--
>Trygve
>
>
>---------------------------------------------------------------------
>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: [m2] javadoc plugin and

Posted by Trygve Laugstøl <tr...@codehaus.org>.
On Thu, 2005-09-22 at 18:46 -0400, Vincent Siveton wrote:
> Hi Trygve,
> 
> > > Try to specify linkoffline as a comma separated list of path or URL.
> > 
> > I think it would be best to make the linkoffline a List of Strings, it's
> > more readable and easier to process for other tools.
> 
> I agree with you.
> I propose <linkoffline>a b, c d</linkoffline> as David tried.

I was thinking something like this:

<offlineLinks>
  <offlineLink>
    <url>a</url>
    <packageListUrl>b</packageListUrl> <-- is this really required?
  </offlineLink>
</offlineLinks>

> > Is there a reason for the parameter to be named "linkoffline" instead of
> > "offline-link"? Is that the parameter to the javadoc tool?
> 
> linkoffline is the parameter from the javadoc documentation:
> http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#linkofflin
> e
> offlineLinkS is the parameter of m1 javadoc plugin.

I'd like to keep that name, it's IMO more intuitive.

--
Trygve


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


RE: [m2] javadoc plugin and

Posted by Vincent Siveton <vi...@gmail.com>.
Hi Trygve,

> > Try to specify linkoffline as a comma separated list of path or URL.
> 
> I think it would be best to make the linkoffline a List of Strings, it's
> more readable and easier to process for other tools.

I agree with you.
I propose <linkoffline>a b, c d</linkoffline> as David tried.
 
> Is there a reason for the parameter to be named "linkoffline" instead of
> "offline-link"? Is that the parameter to the javadoc tool?

linkoffline is the parameter from the javadoc documentation:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/javadoc.html#linkofflin
e
offlineLinkS is the parameter of m1 javadoc plugin.

Cheers,

Vincent


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


Re: [m2] javadoc plugin and

Posted by Trygve Laugstøl <tr...@codehaus.org>.
On Thu, 2005-09-22 at 16:13 -0400, Vincent Siveton wrote:
> Hi
> 
> Try to specify linkoffline as a comma separated list of path or URL.

I think it would be best to make the linkoffline a List of Strings, it's
more readable and easier to process for other tools.

Is there a reason for the parameter to be named "linkoffline" instead of
"offline-link"? Is that the parameter to the javadoc tool?

--
Trygve


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


Re: [m2] javadoc plugin and

Posted by Vincent Siveton <vi...@gmail.com>.
Seems to be a bug. Please fill an issue in JIRA.

Thanks,

Vincent

2005/9/22, c_inconnu3 <c_...@yahoo.fr>:
> I tried
>
> <linkoffline>a b, c d</linkoffline>
>
> but the generated command is then :
>
> javadoc.exe ... -linkoffline "a b" -linkoffline "c d" ...
>
> i looked the javadoc documentation and it seems that the syntax should be :
>
> javadoc.exe ... -linkoffline a b -linkoffline c d ...
>
> (without ")
>
>
> >Hi
> >
> >Try to specify linkoffline as a comma separated list of path or URL.
> >
> >Cheers,
> >
> >Vincent
> >
> >2005/9/22, c_inconnu3 <c_...@yahoo.fr>:
> >
> >
> >>Hi,
> >>
> >>I am trying to generate javadoc with M2 b1. My pom contains :
> >>
> >>   <reporting>
> >>       <plugins>
> >>           <plugin>
> >>               <groupId>org.apache.maven.plugins</groupId>
> >>               <artifactId>maven-javadoc-plugin</artifactId>
> >>               <version>2.0-beta-1</version>
> >>               <configuration>
> >>
> >><linkoffline>http://java.sun.com/j2se/1.4.2/docs/api/
> >>../root/src/javadoc/j2sdk-1.4.2/</linkoffline>
> >>                   <source>1.4</source>
> >>               </configuration>
> >>           </plugin>
> >>           ...
> >>       </plugins>
> >>   </reporting>
> >>
> >>but i got :
> >>
> >>[INFO] [javadoc:javadoc]
> >>[INFO] C:\Programmation\j2sdk1.4.2_08\jre\..\bin\javadoc.exe -package
> >>-source 1.4 -sourcePath D:\projets\ndd\root\..\ndd
> >>14-base\src\main\java -classpath
> >>D:\projets\ndd\root\..\base\target\classes;d:\temp\maven2\repository\junit\junit\
> >>3.8.1\junit-3.8.1.jar;d:\temp\maven2\repository\log4j\log4j\1.2.9\log4j-1.2.9.jar;d:\temp\maven2\repository\commons-io\commons-io\
> >>1.0\commons-io-1.0.jar;d:\temp\maven2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;d:\temp\maven2\repository\comm
> >>ons-primitives\commons-primitives\1.0\commons-primitives-1.0.jar -author
> >>-bottom "Copyright null DD. All Rights Reserved
> >>." -charset ISO-8859-1 -d
> >>D:\projets\ndd\root\..\base\target\javadoc\apidocs -doctitle "NDD Base
> >>project 0.20-SN
> >>APSHOT API" -linkoffline "http://java.sun.com/j2se/1.4.2/docs/api/
> >>../root/src/javadoc/j2sdk-1.4.2/" -stylesheetfile D:\proj
> >>ets\ndd\root\..\base\target\javadoc\apidocs\stylesheet.css -use -version
> >>-windowtitle "NDD Base project 0.20-SNA
> >>PSHOT API" @files
> >>javadoc: Illegal package name:
> >>"D:\projets\ndd\root\..\base\target\javadoc\apidocs\stylesheet.css"
> >>Loading source file myfile1
> >>Loading source file myfile2
> >>..
> >>1 error
> >>[INFO]
> >>----------------------------------------------------------------------------
> >>[ERROR] BUILD ERROR
> >>[INFO]
> >>----------------------------------------------------------------------------
> >>[INFO] Diagnosis: An error has occurred in JavaDocs report generation.
> >>[INFO]
> >>----------------------------------------------------------------------------
> >>[ERROR] Cause:
> >>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:357)
> >>       at
> >>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:479)
> >>       at
> >>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:460)
> >>       at
> >>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:442)
> >>       at
> >>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
> >>       at
> >>org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:131)
> >>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
> >>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
> >>       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.apache.maven.reporting.MavenReportException: Exit code: 1
> >>       at
> >>org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:835)
> >>       ... 18 more
> >>[INFO]
> >>----------------------------------------------------------------------------
> >>[INFO] Total time: 2 seconds
> >>[INFO] Finished at: Thu Sep 22 21:35:45 CEST 2005
> >>[INFO] Final Memory: 2M/4M
> >>[INFO]
> >>----------------------------------------------------------------------------
> >>
> >>
> >>Is there something wrong in my pom ?
> >>
> >>Thanks
> >>
> >>David DIDIER
> >>
> >>
> >>
> >>---------------------------------------------------------------------
> >>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
>
>

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


Re: [m2] javadoc plugin and

Posted by c_inconnu3 <c_...@yahoo.fr>.
I tried

<linkoffline>a b, c d</linkoffline>

but the generated command is then :

javadoc.exe ... -linkoffline "a b" -linkoffline "c d" ...

i looked the javadoc documentation and it seems that the syntax should be : 

javadoc.exe ... -linkoffline a b -linkoffline c d ...

(without ")


>Hi
>
>Try to specify linkoffline as a comma separated list of path or URL.
>
>Cheers,
>
>Vincent
>
>2005/9/22, c_inconnu3 <c_...@yahoo.fr>:
>  
>
>>Hi,
>>
>>I am trying to generate javadoc with M2 b1. My pom contains :
>>
>>   <reporting>
>>       <plugins>
>>           <plugin>
>>               <groupId>org.apache.maven.plugins</groupId>
>>               <artifactId>maven-javadoc-plugin</artifactId>
>>               <version>2.0-beta-1</version>
>>               <configuration>
>>
>><linkoffline>http://java.sun.com/j2se/1.4.2/docs/api/
>>../root/src/javadoc/j2sdk-1.4.2/</linkoffline>
>>                   <source>1.4</source>
>>               </configuration>
>>           </plugin>
>>           ...
>>       </plugins>
>>   </reporting>
>>
>>but i got :
>>
>>[INFO] [javadoc:javadoc]
>>[INFO] C:\Programmation\j2sdk1.4.2_08\jre\..\bin\javadoc.exe -package
>>-source 1.4 -sourcePath D:\projets\ndd\root\..\ndd
>>14-base\src\main\java -classpath
>>D:\projets\ndd\root\..\base\target\classes;d:\temp\maven2\repository\junit\junit\
>>3.8.1\junit-3.8.1.jar;d:\temp\maven2\repository\log4j\log4j\1.2.9\log4j-1.2.9.jar;d:\temp\maven2\repository\commons-io\commons-io\
>>1.0\commons-io-1.0.jar;d:\temp\maven2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;d:\temp\maven2\repository\comm
>>ons-primitives\commons-primitives\1.0\commons-primitives-1.0.jar -author
>>-bottom "Copyright null DD. All Rights Reserved
>>." -charset ISO-8859-1 -d
>>D:\projets\ndd\root\..\base\target\javadoc\apidocs -doctitle "NDD Base
>>project 0.20-SN
>>APSHOT API" -linkoffline "http://java.sun.com/j2se/1.4.2/docs/api/
>>../root/src/javadoc/j2sdk-1.4.2/" -stylesheetfile D:\proj
>>ets\ndd\root\..\base\target\javadoc\apidocs\stylesheet.css -use -version
>>-windowtitle "NDD Base project 0.20-SNA
>>PSHOT API" @files
>>javadoc: Illegal package name:
>>"D:\projets\ndd\root\..\base\target\javadoc\apidocs\stylesheet.css"
>>Loading source file myfile1
>>Loading source file myfile2
>>..
>>1 error
>>[INFO]
>>----------------------------------------------------------------------------
>>[ERROR] BUILD ERROR
>>[INFO]
>>----------------------------------------------------------------------------
>>[INFO] Diagnosis: An error has occurred in JavaDocs report generation.
>>[INFO]
>>----------------------------------------------------------------------------
>>[ERROR] Cause:
>>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:357)
>>       at
>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:479)
>>       at
>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:460)
>>       at
>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:442)
>>       at
>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>>       at
>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:131)
>>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
>>       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.apache.maven.reporting.MavenReportException: Exit code: 1
>>       at
>>org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:835)
>>       ... 18 more
>>[INFO]
>>----------------------------------------------------------------------------
>>[INFO] Total time: 2 seconds
>>[INFO] Finished at: Thu Sep 22 21:35:45 CEST 2005
>>[INFO] Final Memory: 2M/4M
>>[INFO]
>>----------------------------------------------------------------------------
>>
>>
>>Is there something wrong in my pom ?
>>
>>Thanks
>>
>>David DIDIER
>>
>>
>>
>>---------------------------------------------------------------------
>>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: [m2] javadoc plugin and

Posted by Vincent Siveton <vi...@gmail.com>.
Hi

Try to specify linkoffline as a comma separated list of path or URL.

Cheers,

Vincent

2005/9/22, c_inconnu3 <c_...@yahoo.fr>:
> Hi,
>
> I am trying to generate javadoc with M2 b1. My pom contains :
>
>    <reporting>
>        <plugins>
>            <plugin>
>                <groupId>org.apache.maven.plugins</groupId>
>                <artifactId>maven-javadoc-plugin</artifactId>
>                <version>2.0-beta-1</version>
>                <configuration>
>
> <linkoffline>http://java.sun.com/j2se/1.4.2/docs/api/
> ../root/src/javadoc/j2sdk-1.4.2/</linkoffline>
>                    <source>1.4</source>
>                </configuration>
>            </plugin>
>            ...
>        </plugins>
>    </reporting>
>
> but i got :
>
> [INFO] [javadoc:javadoc]
> [INFO] C:\Programmation\j2sdk1.4.2_08\jre\..\bin\javadoc.exe -package
> -source 1.4 -sourcePath D:\projets\ndd\root\..\ndd
> 14-base\src\main\java -classpath
> D:\projets\ndd\root\..\base\target\classes;d:\temp\maven2\repository\junit\junit\
> 3.8.1\junit-3.8.1.jar;d:\temp\maven2\repository\log4j\log4j\1.2.9\log4j-1.2.9.jar;d:\temp\maven2\repository\commons-io\commons-io\
> 1.0\commons-io-1.0.jar;d:\temp\maven2\repository\commons-lang\commons-lang\2.1\commons-lang-2.1.jar;d:\temp\maven2\repository\comm
> ons-primitives\commons-primitives\1.0\commons-primitives-1.0.jar -author
> -bottom "Copyright null DD. All Rights Reserved
> ." -charset ISO-8859-1 -d
> D:\projets\ndd\root\..\base\target\javadoc\apidocs -doctitle "NDD Base
> project 0.20-SN
> APSHOT API" -linkoffline "http://java.sun.com/j2se/1.4.2/docs/api/
> ../root/src/javadoc/j2sdk-1.4.2/" -stylesheetfile D:\proj
> ets\ndd\root\..\base\target\javadoc\apidocs\stylesheet.css -use -version
> -windowtitle "NDD Base project 0.20-SNA
> PSHOT API" @files
> javadoc: Illegal package name:
> "D:\projets\ndd\root\..\base\target\javadoc\apidocs\stylesheet.css"
> Loading source file myfile1
> Loading source file myfile2
> ..
> 1 error
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Diagnosis: An error has occurred in JavaDocs report generation.
> [INFO]
> ----------------------------------------------------------------------------
> [ERROR] Cause:
> 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:357)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:479)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:460)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:442)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
>        at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:131)
>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:186)
>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
>        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.apache.maven.reporting.MavenReportException: Exit code: 1
>        at
> org.apache.maven.plugin.javadoc.JavadocReport.executeReport(JavadocReport.java:835)
>        ... 18 more
> [INFO]
> ----------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Thu Sep 22 21:35:45 CEST 2005
> [INFO] Final Memory: 2M/4M
> [INFO]
> ----------------------------------------------------------------------------
>
>
> Is there something wrong in my pom ?
>
> Thanks
>
> David DIDIER
>
>
>
> ---------------------------------------------------------------------
> 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