Correction, I ran /usr/bin/maven-2.0.6/bin/mvn org.apache.maven.plugins:maven-javadoc-plugin:2.2:javadoc, not maven-javadoc-plugin:2.0-beta-2.
On 8/20/07, L. J. <[EMAIL PROTECTED]> wrote: > > Thanks Wayne, > > Looks like the maven-javadoc-plugin 2.2 works with my maven 2.0.6 on AIX > but 2.3 does not. > > I run the following, and it works. > /usr/bin/maven-2.0.6/bin/mvn > org.apache.maven.plugins:maven-javadoc-plugin:2.0-beta-2:javadoc > > But if I run the following, it gives me the > java.util.NoSuchElementException error. > /usr/bin/maven-2.0.6/bin/mvn > org.apache.maven.plugins:maven-javadoc-plugin:2.3:javadoc > > However, even I put the maven-javadoc-plugin version number 2.2 in the > pom.xml as below, maven 2.0.6 still uses 2.3. > <groupId>org.apache.maven.plugins</groupId> > <artifactId>maven-javadoc-plugin</artifactId> > <version>2.2</version> > > What would be the best way/workaround, any suggestion? > > Thanks. > > LJ > > On 8/20/07, Wayne Fay <[EMAIL PROTECTED] > wrote: > > > > It seems like the newer versions of javadoc plugin are trying to parse > > version information out of your javadoc tool, and your tool is > > responding with fewer string tokens than is expected, resulting in the > > error below. > > > > I strongly doubt the Maven team tests on AIX much less with jdk4 on > > AIX, so it seems like you've simply stumbled into a bug. It would be > > great if you could grok the code and submit a patch yourself, as I > > certainly don't have an AIX instance to play with and I doubt many of > > the Maven team does either. > > > > First, go file a bug in JIRA. Then pull down the code and see if you > > can't figure it out. If you have troubles, jump onto IRC and we'll > > help you out. > > > > Wayne > > > > On 8/20/07, L. J. <[EMAIL PROTECTED]> wrote: > > > Hi Wayne, > > > > > > It is jdk1.4 on AIX. > > > > > > Thanks. > > > > > > LJ > > > > > > On 8/20/07, Wayne Fay < [EMAIL PROTECTED]> wrote: > > > > > > > > What JDK and what OS? > > > > > > > > Wayne > > > > > > > > On 8/20/07, L. J. < [EMAIL PROTECTED]> wrote: > > > > > I run mvn javadoc:javadoc with 2.0.6 and 2.0.7, both give me the > > > > following > > > > > error. > > > > > It works fine if I use 2.0.4. > > > > > > > > > > Has anyone seen this error before? > > > > > > > > > > Thanks. > > > > > > > > > > LJ > > > > > > > > > > [INFO] [javadoc:javadoc] > > > > > [INFO] > > > > > > > ------------------------------------------------------------------------ > > > > > [ERROR] FATAL ERROR > > > > > [INFO] > > > > > > > ------------------------------------------------------------------------ > > > > > [INFO] null > > > > > [INFO] > > > > > > > ------------------------------------------------------------------------ > > > > > [DEBUG] Trace > > > > > java.util.NoSuchElementException > > > > > at java.util.StringTokenizer.nextToken( > > StringTokenizer.java > > > > (Compiled > > > > > Code)) > > > > > at > > > > > > > org.apache.maven.plugin.javadoc.AbstractJavadocMojo.getJavadocVersion ( > > > > > AbstractJavadocMojo.java:2959) > > > > > at > > > > org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport > > > > > (AbstractJavadocMojo.java:1085) > > > > > at org.apache.maven.plugin.javadoc.JavadocReport.generate( > > > > > JavadocReport.java:131) > > > > > at org.apache.maven.plugin.javadoc.JavadocReport.execute( > > > > > JavadocReport.java:219) > > > > > at > > org.apache.maven.plugin.DefaultPluginManager.executeMojo ( > > > > > DefaultPluginManager.java:443) > > > > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals ( > > > > > DefaultLifecycleExecutor.java:539) > > > > > at > > > > > > > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal > > ( > > > > > DefaultLifecycleExecutor.java :493) > > > > > at > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal( > > > > > DefaultLifecycleExecutor.java:463) > > > > > at > > > > > > > > > > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures > > > > ( > > > > > DefaultLifecycleExecutor.java:311) > > > > > at > > > > > > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments( > > > > > DefaultLifecycleExecutor.java:224) > > > > > at > > org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute ( > > > > > DefaultLifecycleExecutor.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 :85) > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke ( > > > > > NativeMethodAccessorImpl.java:58) > > > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke( > > > > > DelegatingMethodAccessorImpl.java:60) > > > > > at java.lang.reflect.Method.invoke(Method.java:391) > > > > > 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) > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > 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] > > > > >
