Hi Try to specify linkoffline as a comma separated list of path or URL.
Cheers, Vincent 2005/9/22, c_inconnu3 <[EMAIL PROTECTED]>: > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
