unable to generate site with module-info defined

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

unable to generate site with module-info defined

Russell Gold-3
I have added a module-info to my project, and now when I run mvn site, it is failing:

> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site) on project simplestub: Error during page generation
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error during page generation
> at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:143)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> ... 20 more
> Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error rendering Maven report:
> Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3: error: module not found: org.objectweb.asm.commons
>     requires org.objectweb.asm.commons;
>                               ^
> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module not found: javassist
>     requires javassist;
>              ^


Note that this code compiles and runs just find with the module-info; it just doesn’t generate a site.
Reply | Threaded
Open this post in threaded view
|

Re: unable to generate site with module-info defined

Hervé BOUTEMY
Hi Russel,

Can you give more stacktrace lines, please, since I suppose it is a reporting
plugin issue, but I cannot figure out *which* report plugin

(and I'll have to find a way to have more tiny stacktraces when there is an
issue with a report plugin that is launched by maven-site-plugin, since
everybody points finger at maven-site-plugin instead of the reporting plugin
that failed... I know that currently, from a user perspective, that is the
natural perception: I need to find a trick to change this, I don't know how
yet)

Regards,

Hervé

Le vendredi 29 septembre 2017, 12:25:02 CEST Russell Gold a écrit :
> I have added a module-info to my project, and now when I run mvn site, it is
failing:

> > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> > goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site)
> > on project simplestub: Error during page generation>
> > at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> > va:213) at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> > va:154) at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> > va:146) at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
> > LifecycleModuleBuilder.java:117) at
> > org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(
> > LifecycleModuleBuilder.java:81) at
> > org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreade
> > dBuilder.build(SingleThreadedBuilder.java:51) at
> > org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleSt
> > arter.java:128) at
> > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
> > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
> > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
> > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
> > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
> > at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
> > at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> > Method) at
> > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMet
> > hodAccessorImpl.java:62) at
> > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Deleg
> > atingMethodAccessorImpl.java:43) at
> > java.base/java.lang.reflect.Method.invoke(Method.java:564)
> > at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launche
> > r.java:289) at
> > org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:2
> > 29) at
> > org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launc
> > her.java:415) at
> > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356
> > )>
> > Caused by: org.apache.maven.plugin.MojoExecutionException: Error during
> > page generation>
> > at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:143)
> > at
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui
> > ldPluginManager.java:134) at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> > va:208) ... 20 more
> >
> > Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
> > rendering Maven report: Exit code: 1 -
> > /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java
> > :3: error: module not found: org.objectweb.asm.commons>
> >     requires org.objectweb.asm.commons;
> >    
> >                               ^
> >
> > /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:
> > 4: error: module not found: javassist>
> >     requires javassist;
> >    
> >              ^
>
> Note that this code compiles and runs just find with the module-info; it
> just doesn’t generate a site.



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: unable to generate site with module-info defined

Hervé BOUTEMY
I just improved output in MSITE-797 for future maven-site-plugin 3.7 (not yet
released)

But please upgrade to 3.4 minimum as the error message will give you much
better insight on the cause of the failure: see https://issues.apache.org/
jira/browse/MSITE-713

Regards,

Hervé

Le samedi 30 septembre 2017, 13:15:36 CEST Hervé BOUTEMY a écrit :

> Hi Russel,
>
> Can you give more stacktrace lines, please, since I suppose it is a
> reporting plugin issue, but I cannot figure out *which* report plugin
>
> (and I'll have to find a way to have more tiny stacktraces when there is an
> issue with a report plugin that is launched by maven-site-plugin, since
> everybody points finger at maven-site-plugin instead of the reporting plugin
> that failed... I know that currently, from a user perspective, that is the
> natural perception: I need to find a trick to change this, I don't know how
> yet)
>
> Regards,
>
> Hervé
>
> Le vendredi 29 septembre 2017, 12:25:02 CEST Russell Gold a écrit :
> > I have added a module-info to my project, and now when I run mvn site, it
> > is
> failing:
> > > org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> > > execute
> > > goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site)
> > > on project simplestub: Error during page generation>
> > >
> > > at
> > >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
> > > a
> > > va:213) at
> > >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
> > > a
> > > va:154) at
> > >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
> > > a
> > > va:146) at
> > >
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> > > (
> > > LifecycleModuleBuilder.java:117) at
> > >
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> > > (
> > > LifecycleModuleBuilder.java:81) at
> > >
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThread
> > > e
> > > dBuilder.build(SingleThreadedBuilder.java:51) at
> > >
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleS

> > > t
> > > arter.java:128) at
> > > org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
> > > at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
> > > at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
> > > at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
> > > at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
> > > at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
> > > at
> > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> > > Method) at
> > > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMe
> > > t
> > > hodAccessorImpl.java:62) at
> > > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Dele
> > > g
> > > atingMethodAccessorImpl.java:43) at
> > > java.base/java.lang.reflect.Method.invoke(Method.java:564)
> > > at
> > >
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch
> > > e
> > > r.java:289) at
> > >
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> > > 2
> > > 29) at
> > >
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun
> > > c
> > > her.java:415) at
> > > org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
35
> > > 6
> > > )>
> > >
> > > Caused by: org.apache.maven.plugin.MojoExecutionException: Error during
> > > page generation>
> > >
> > > at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:143)
> > > at
> > >
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBu
> > > i
> > > ldPluginManager.java:134) at
> > >
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j

> > > a
> > > va:208) ... 20 more
> > >
> > > Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
> > > rendering Maven report: Exit code: 1 -
> > > /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
> > > a
> > >
> > > :3: error: module not found: org.objectweb.asm.commons>
> > > :
> > >     requires org.objectweb.asm.commons;
> > >    
> > >                               ^
> > >
> > > /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
> > > a:
> > > 4: error: module not found: javassist>
> > >
> > >     requires javassist;
> > >    
> > >              ^
> >
> > Note that this code compiles and runs just find with the module-info; it
> > just doesn’t generate a site.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: unable to generate site with module-info defined

Russell Gold-3
I tried 3.5.1 but got “An API incompatibility was encountered,” so here is the result from 3.4:

> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on project simplestub: Error generating maven-javadoc-plugin:3.0.0-M1:javadoc:
> [ERROR] Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3: error: module not found: org.objectweb.asm.commons
> [ERROR]     requires org.objectweb.asm.commons;
> [ERROR]                               ^
> [ERROR] /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module not found: javassist
> [ERROR]     requires javassist;
> [ERROR]              ^
> [ERROR]
> [ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages @argfile
> [ERROR]
> [ERROR] Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
> [ERROR]
> [ERROR] -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on project simplestub: Error generating maven-javadoc-plugin:3.0.0-M1:javadoc:
> Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3: error: module not found: org.objectweb.asm.commons
>     requires org.objectweb.asm.commons;
>                               ^
> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module not found: javassist
>     requires javassist;
>              ^
>
> Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages @argfile
>
> Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
>
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error generating maven-javadoc-plugin:3.0.0-M1:javadoc:
> Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3: error: module not found: org.objectweb.asm.commons
>     requires org.objectweb.asm.commons;
>                               ^
> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module not found: javassist
>     requires javassist;
>              ^
>
> Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages @argfile
>
> Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
>
> at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:146)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> ... 20 more
> Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error generating maven-javadoc-plugin:3.0.0-M1:javadoc:
> Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3: error: module not found: org.objectweb.asm.commons
>     requires org.objectweb.asm.commons;
>                               ^
> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module not found: javassist
>     requires javassist;
>              ^
>
> Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages @argfile
>
> Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
>
> at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:239)
> at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:311)
> at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:129)
> at org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:182)
> at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:141)
> ... 22 more
> Caused by: org.apache.maven.reporting.MavenReportException:
> Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3: error: module not found: org.objectweb.asm.commons
>     requires org.objectweb.asm.commons;
>                               ^
> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module not found: javassist
>     requires javassist;
>              ^
>
> Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages @argfile
>
> Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
>
> at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeJavadocCommandLine(AbstractJavadocMojo.java:5075)
> at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:2093)
> at org.apache.maven.plugins.javadoc.JavadocReport.generate(JavadocReport.java:130)
> at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:233)
> ... 26 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException


I

> On Sep 30, 2017, at 6:29 PM, Hervé BOUTEMY <[hidden email]> wrote:
>
> I just improved output in MSITE-797 for future maven-site-plugin 3.7 (not yet
> released)
>
> But please upgrade to 3.4 minimum as the error message will give you much
> better insight on the cause of the failure: see https://issues.apache.org/
> jira/browse/MSITE-713
>
> Regards,
>
> Hervé
>
> Le samedi 30 septembre 2017, 13:15:36 CEST Hervé BOUTEMY a écrit :
>> Hi Russel,
>>
>> Can you give more stacktrace lines, please, since I suppose it is a
>> reporting plugin issue, but I cannot figure out *which* report plugin
>>
>> (and I'll have to find a way to have more tiny stacktraces when there is an
>> issue with a report plugin that is launched by maven-site-plugin, since
>> everybody points finger at maven-site-plugin instead of the reporting plugin
>> that failed... I know that currently, from a user perspective, that is the
>> natural perception: I need to find a trick to change this, I don't know how
>> yet)
>>
>> Regards,
>>
>> Hervé
>>
>> Le vendredi 29 septembre 2017, 12:25:02 CEST Russell Gold a écrit :
>>> I have added a module-info to my project, and now when I run mvn site, it
>>> is
>> failing:
>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>> execute
>>>> goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site)
>>>> on project simplestub: Error during page generation>
>>>>
>>>> at
>>>>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>> a
>>>> va:213) at
>>>>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>> a
>>>> va:154) at
>>>>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>> a
>>>> va:146) at
>>>>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>>> (
>>>> LifecycleModuleBuilder.java:117) at
>>>>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>>> (
>>>> LifecycleModuleBuilder.java:81) at
>>>>
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThread
>>>> e
>>>> dBuilder.build(SingleThreadedBuilder.java:51) at
>>>>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleS
>>>> t
>>>> arter.java:128) at
>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>>>> at
>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>> Method) at
>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMe
>>>> t
>>>> hodAccessorImpl.java:62) at
>>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Dele
>>>> g
>>>> atingMethodAccessorImpl.java:43) at
>>>> java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>> at
>>>>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch
>>>> e
>>>> r.java:289) at
>>>>
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
>>>> 2
>>>> 29) at
>>>>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun
>>>> c
>>>> her.java:415) at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
> 35
>>>> 6
>>>> )>
>>>>
>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error during
>>>> page generation>
>>>>
>>>> at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:143)
>>>> at
>>>>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBu
>>>> i
>>>> ldPluginManager.java:134) at
>>>>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>> a
>>>> va:208) ... 20 more
>>>>
>>>> Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
>>>> rendering Maven report: Exit code: 1 -
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
>>>> a
>>>>
>>>> :3: error: module not found: org.objectweb.asm.commons>
>>>> :
>>>>    requires org.objectweb.asm.commons;
>>>>
>>>>                              ^
>>>>
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
>>>> a:
>>>> 4: error: module not found: javassist>
>>>>
>>>>    requires javassist;
>>>>
>>>>             ^
>>>
>>> Note that this code compiles and runs just find with the module-info; it
>>> just doesn’t generate a site.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>

Reply | Threaded
Open this post in threaded view
|

Re: unable to generate site with module-info defined

Russell Gold-3
And here is the stack trace with 3.5.1:

> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:183)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> ... 20 more
> Caused by: org.apache.maven.plugin.PluginContainerException: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-site-plugin:3.5.1:site: java.lang.ExceptionInInitializerError: null
> -----------------------------------------------------
> realm =    plugin>org.apache.maven.plugins:maven-site-plugin:3.5.1
> strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> urls[0] = file:/Users/rgold/.m2/repository/org/apache/maven/plugins/maven-site-plugin/3.5.1/maven-site-plugin-3.5.1.jar
> urls[1] = file:/Users/rgold/.m2/repository/org/apache/maven/reporting/maven-reporting-exec/1.2/maven-reporting-exec-1.2.jar
> urls[2] = file:/Users/rgold/.m2/repository/org/apache/maven/reporting/maven-reporting-api/3.0/maven-reporting-api-3.0.jar
> urls[3] = file:/Users/rgold/.m2/repository/org/apache/maven/shared/maven-shared-utils/0.3/maven-shared-utils-0.3.jar
> urls[4] = file:/Users/rgold/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar
> urls[5] = file:/Users/rgold/.m2/repository/org/sonatype/aether/aether-util/1.7/aether-util-1.7.jar
> urls[6] = file:/Users/rgold/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/aether-util-0.9.0.M2.jar
> urls[7] = file:/Users/rgold/.m2/repository/org/apache/maven/maven-aether-provider/3.0/maven-aether-provider-3.0.jar
> urls[8] = file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar
> urls[9] = file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar
> urls[10] = file:/Users/rgold/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar
> urls[11] = file:/Users/rgold/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar
> urls[12] = file:/Users/rgold/.m2/repository/org/apache/maven/maven-archiver/2.5/maven-archiver-2.5.jar
> urls[13] = file:/Users/rgold/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2/sisu-inject-bean-1.4.2.jar
> urls[14] = file:/Users/rgold/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-guice-2.1.7-noaop.jar
> urls[15] = file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-archiver/2.9/plexus-archiver-2.9.jar
> urls[16] = file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-io/2.4/plexus-io-2.4.jar
> urls[17] = file:/Users/rgold/.m2/repository/org/apache/commons/commons-compress/1.9/commons-compress-1.9.jar
> urls[18] = file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
> urls[19] = file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/plexus-utils-3.0.20.jar
> urls[20] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.7/doxia-sink-api-1.7.jar
> urls[21] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-logging-api/1.7/doxia-logging-api-1.7.jar
> urls[22] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.7/doxia-module-xhtml-1.7.jar
> urls[23] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-core/1.7/doxia-core-1.7.jar
> urls[24] = file:/Users/rgold/.m2/repository/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.jar
> urls[25] = file:/Users/rgold/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar
> urls[26] = file:/Users/rgold/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar
> urls[27] = file:/Users/rgold/.m2/repository/xmlunit/xmlunit/1.5/xmlunit-1.5.jar
> urls[28] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.7/doxia-module-apt-1.7.jar
> urls[29] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.7/doxia-module-xdoc-1.7.jar
> urls[30] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.7/doxia-module-fml-1.7.jar
> urls[31] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-markdown/1.7/doxia-module-markdown-1.7.jar
> urls[32] = file:/Users/rgold/.m2/repository/org/pegdown/pegdown/1.2.1/pegdown-1.2.1.jar
> urls[33] = file:/Users/rgold/.m2/repository/org/parboiled/parboiled-java/1.1.4/parboiled-java-1.1.4.jar
> urls[34] = file:/Users/rgold/.m2/repository/org/parboiled/parboiled-core/1.1.4/parboiled-core-1.1.4.jar
> urls[35] = file:/Users/rgold/.m2/repository/org/ow2/asm/asm/4.1/asm-4.1.jar
> urls[36] = file:/Users/rgold/.m2/repository/org/ow2/asm/asm-tree/4.1/asm-tree-4.1.jar
> urls[37] = file:/Users/rgold/.m2/repository/org/ow2/asm/asm-analysis/4.1/asm-analysis-4.1.jar
> urls[38] = file:/Users/rgold/.m2/repository/org/ow2/asm/asm-util/4.1/asm-util-4.1.jar
> urls[39] = file:/Users/rgold/.m2/repository/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar
> urls[40] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.7.1/doxia-decoration-model-1.7.1.jar
> urls[41] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.7.1/doxia-site-renderer-1.7.1.jar
> urls[42] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-skin-model/1.7.1/doxia-skin-model-1.7.1.jar
> urls[43] = file:/Users/rgold/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
> urls[44] = file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-velocity/1.2/plexus-velocity-1.2.jar
> urls[45] = file:/Users/rgold/.m2/repository/org/apache/velocity/velocity/1.7/velocity-1.7.jar
> urls[46] = file:/Users/rgold/.m2/repository/org/apache/velocity/velocity-tools/2.0/velocity-tools-2.0.jar
> urls[47] = file:/Users/rgold/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
> urls[48] = file:/Users/rgold/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar
> urls[49] = file:/Users/rgold/.m2/repository/commons-chain/commons-chain/1.1/commons-chain-1.1.jar
> urls[50] = file:/Users/rgold/.m2/repository/commons-logging/commons-logging/1.1/commons-logging-1.1.jar
> urls[51] = file:/Users/rgold/.m2/repository/commons-validator/commons-validator/1.3.1/commons-validator-1.3.1.jar
> urls[52] = file:/Users/rgold/.m2/repository/dom4j/dom4j/1.1/dom4j-1.1.jar
> urls[53] = file:/Users/rgold/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
> urls[54] = file:/Users/rgold/.m2/repository/sslext/sslext/1.2-0/sslext-1.2-0.jar
> urls[55] = file:/Users/rgold/.m2/repository/org/apache/struts/struts-core/1.3.8/struts-core-1.3.8.jar
> urls[56] = file:/Users/rgold/.m2/repository/antlr/antlr/2.7.2/antlr-2.7.2.jar
> urls[57] = file:/Users/rgold/.m2/repository/org/apache/struts/struts-taglib/1.3.8/struts-taglib-1.3.8.jar
> urls[58] = file:/Users/rgold/.m2/repository/org/apache/struts/struts-tiles/1.3.8/struts-tiles-1.3.8.jar
> urls[59] = file:/Users/rgold/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
> urls[60] = file:/Users/rgold/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar
> urls[61] = file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-integration-tools/1.7.1/doxia-integration-tools-1.7.1.jar
> urls[62] = file:/Users/rgold/.m2/repository/org/mortbay/jetty/jetty/6.1.25/jetty-6.1.25.jar
> urls[63] = file:/Users/rgold/.m2/repository/org/mortbay/jetty/servlet-api/2.5-20081211/servlet-api-2.5-20081211.jar
> urls[64] = file:/Users/rgold/.m2/repository/org/mortbay/jetty/jetty-util/6.1.25/jetty-util-6.1.25.jar
> urls[65] = file:/Users/rgold/.m2/repository/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar
> urls[66] = file:/Users/rgold/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4.jar
> Number of foreign imports: 1
> import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
>
> -----------------------------------------------------
>
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:181)
> ... 21 more
> Caused by: java.lang.ExceptionInInitializerError
> at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.generateDocument(DefaultSiteRenderer.java:708)
> at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(DefaultSiteRenderer.java:465)
> at org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument(DoxiaDocumentRenderer.java:53)
> at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:329)
> at org.apache.maven.plugins.site.render.SiteMojo.renderDoxiaDocuments(SiteMojo.java:264)
> at org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:171)
> at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:135)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
> ... 21 more
> Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 1
> at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116)
> at java.base/java.lang.String.substring(String.java:1885)
> at org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:1133)
> at org.apache.commons.lang.SystemUtils.<clinit>(SystemUtils.java:818)
> ... 29 more


It looks as though DefaultBuildPluginManager doesn’t know about the change in java version formats. I am running:

> /Users/rgold/projects/meterware/simplestub> mvn -version
> Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)
> Maven home: /opt/local/share/java/maven3
> Java version: 9, vendor: Oracle Corporation
> Java home: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"


- Russ

> On Sep 30, 2017, at 9:41 PM, Russell Gold <[hidden email]> wrote:
>
> I tried 3.5.1 but got “An API incompatibility was encountered,” so here is the result from 3.4:
>
>> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on project simplestub: Error generating maven-javadoc-plugin:3.0.0-M1:javadoc:
>> [ERROR] Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3: error: module not found: org.objectweb.asm.commons
>> [ERROR]     requires org.objectweb.asm.commons;
>> [ERROR]                               ^
>> [ERROR] /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module not found: javassist
>> [ERROR]     requires javassist;
>> [ERROR]              ^
>> [ERROR]
>> [ERROR] Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages @argfile
>> [ERROR]
>> [ERROR] Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
>> [ERROR]
>> [ERROR] -> [Help 1]
>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on project simplestub: Error generating maven-javadoc-plugin:3.0.0-M1:javadoc:
>> Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3: error: module not found: org.objectweb.asm.commons
>>    requires org.objectweb.asm.commons;
>>                              ^
>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module not found: javassist
>>    requires javassist;
>>             ^
>>
>> Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages @argfile
>>
>> Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
>>
>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
>> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
>> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
>> at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
>> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>> at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.base/java.lang.reflect.Method.invoke(Method.java:564)
>> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
>> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
>> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
>> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error generating maven-javadoc-plugin:3.0.0-M1:javadoc:
>> Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3: error: module not found: org.objectweb.asm.commons
>>    requires org.objectweb.asm.commons;
>>                              ^
>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module not found: javassist
>>    requires javassist;
>>             ^
>>
>> Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages @argfile
>>
>> Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
>>
>> at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:146)
>> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
>> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
>> ... 20 more
>> Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error generating maven-javadoc-plugin:3.0.0-M1:javadoc:
>> Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3: error: module not found: org.objectweb.asm.commons
>>    requires org.objectweb.asm.commons;
>>                              ^
>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module not found: javassist
>>    requires javassist;
>>             ^
>>
>> Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages @argfile
>>
>> Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
>>
>> at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:239)
>> at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:311)
>> at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:129)
>> at org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java:182)
>> at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:141)
>> ... 22 more
>> Caused by: org.apache.maven.reporting.MavenReportException:
>> Exit code: 1 - /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:3: error: module not found: org.objectweb.asm.commons
>>    requires org.objectweb.asm.commons;
>>                              ^
>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java:4: error: module not found: javassist
>>    requires javassist;
>>             ^
>>
>> Command line was: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc @options @packages @argfile
>>
>> Refer to the generated Javadoc files in '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
>>
>> at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeJavadocCommandLine(AbstractJavadocMojo.java:5075)
>> at org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:2093)
>> at org.apache.maven.plugins.javadoc.JavadocReport.generate(JavadocReport.java:130)
>> at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:233)
>> ... 26 more
>> [ERROR]
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions, please read the following articles:
>> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
>
>
> I
>
>> On Sep 30, 2017, at 6:29 PM, Hervé BOUTEMY <[hidden email]> wrote:
>>
>> I just improved output in MSITE-797 for future maven-site-plugin 3.7 (not yet
>> released)
>>
>> But please upgrade to 3.4 minimum as the error message will give you much
>> better insight on the cause of the failure: see https://issues.apache.org/
>> jira/browse/MSITE-713
>>
>> Regards,
>>
>> Hervé
>>
>> Le samedi 30 septembre 2017, 13:15:36 CEST Hervé BOUTEMY a écrit :
>>> Hi Russel,
>>>
>>> Can you give more stacktrace lines, please, since I suppose it is a
>>> reporting plugin issue, but I cannot figure out *which* report plugin
>>>
>>> (and I'll have to find a way to have more tiny stacktraces when there is an
>>> issue with a report plugin that is launched by maven-site-plugin, since
>>> everybody points finger at maven-site-plugin instead of the reporting plugin
>>> that failed... I know that currently, from a user perspective, that is the
>>> natural perception: I need to find a trick to change this, I don't know how
>>> yet)
>>>
>>> Regards,
>>>
>>> Hervé
>>>
>>> Le vendredi 29 septembre 2017, 12:25:02 CEST Russell Gold a écrit :
>>>> I have added a module-info to my project, and now when I run mvn site, it
>>>> is
>>> failing:
>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>>> execute
>>>>> goal org.apache.maven.plugins:maven-site-plugin:3.3:site (default-site)
>>>>> on project simplestub: Error during page generation>
>>>>>
>>>>> at
>>>>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>>> a
>>>>> va:213) at
>>>>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>>> a
>>>>> va:154) at
>>>>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>>> a
>>>>> va:146) at
>>>>>
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>>>> (
>>>>> LifecycleModuleBuilder.java:117) at
>>>>>
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>>>> (
>>>>> LifecycleModuleBuilder.java:81) at
>>>>>
>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThread
>>>>> e
>>>>> dBuilder.build(SingleThreadedBuilder.java:51) at
>>>>>
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleS
>>>>> t
>>>>> arter.java:128) at
>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>>>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>>>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>>>>> at
>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>> Method) at
>>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMe
>>>>> t
>>>>> hodAccessorImpl.java:62) at
>>>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Dele
>>>>> g
>>>>> atingMethodAccessorImpl.java:43) at
>>>>> java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>> at
>>>>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch
>>>>> e
>>>>> r.java:289) at
>>>>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
>>>>> 2
>>>>> 29) at
>>>>>
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun
>>>>> c
>>>>> her.java:415) at
>>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>> 35
>>>>> 6
>>>>> )>
>>>>>
>>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error during
>>>>> page generation>
>>>>>
>>>>> at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:143)
>>>>> at
>>>>>
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBu
>>>>> i
>>>>> ldPluginManager.java:134) at
>>>>>
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>>> a
>>>>> va:208) ... 20 more
>>>>>
>>>>> Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
>>>>> rendering Maven report: Exit code: 1 -
>>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
>>>>> a
>>>>>
>>>>> :3: error: module not found: org.objectweb.asm.commons>
>>>>> :
>>>>>   requires org.objectweb.asm.commons;
>>>>>
>>>>>                             ^
>>>>>
>>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
>>>>> a:
>>>>> 4: error: module not found: javassist>
>>>>>
>>>>>   requires javassist;
>>>>>
>>>>>            ^
>>>>
>>>> Note that this code compiles and runs just find with the module-info; it
>>>> just doesn’t generate a site.
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [hidden email]
>>> For additional commands, e-mail: [hidden email]
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [hidden email]
>> For additional commands, e-mail: [hidden email]
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: unable to generate site with module-info defined

Hervé BOUTEMY
ok

with 3.4, you can see "Error generating maven-javadoc-plugin:3.0.0-M1:javadoc"
you're issue is only indirectly with maven-site-plugin, but more directly with
maven-javadoc-plugin

reproducing this issue is then best done with "mvn javadoc:javadoc", to
directly use the offending plugin (instead of trying to aggregate every
report)


then with 3.5.1: if you look at the end of the stacktrace:
> Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length
1
> at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116)
> at java.base/java.lang.String.substring(String.java:1885)
> at
org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:
1133)
you'll find a typical issue with Java 9 when some lib expects java version to
be 1.x and finds 9.x in Java 9
This time, the issue is maven-site-plugin, it was discusse on [hidden email]
just one week ago, and Robert Scholte is currently releasing the fix in Doxia
Sitetools 1.7.5
The issue is tracked with:
- https://issues.apache.org/jira/browse/MSITE-796 at maven-site-plugin level,
- and https://issues.apache.org/jira/browse/DOXIASITETOOLS-177 at Doxia
Sitetools level

And, as any Java 9 compatibility issue, it should be tracked on our Java 9
Wiki page: https://cwiki.apache.org/confluence/display/MAVEN/Java+9+-+Jigsaw

I see that we forgot to trace MSITE-796: I'll add it soon.


Pfeewww, to summarize, you're mixing 2 independant issues:
- javadoc:javadoc issue, not yet precisely understood, but which is the
initial issue
- known site plugin issue with Java 9, fixed in latest snapshots but not yet in
any release

to continue our investigations, please stay with maven-site-plugin 3.4, and
run "mvn javadoc:javadoc": perhaps you found a new issue with this plugin
regarding Java 9 modules

Regards,

Hervé

Le samedi 30 septembre 2017, 21:57:00 CEST Russell Gold a écrit :

> And here is the stack trace with 3.5.1:
> > at
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui
> > ldPluginManager.java:183) at
> > org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
> > va:208) ... 20 more
> >
> > Caused by: org.apache.maven.plugin.PluginContainerException: An API
> > incompatibility was encountered while executing
> > org.apache.maven.plugins:maven-site-plugin:3.5.1:site:
> > java.lang.ExceptionInInitializerError: null
> > -----------------------------------------------------
> > realm =    plugin>org.apache.maven.plugins:maven-site-plugin:3.5.1
> > strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> > urls[0] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/plugins/maven-site-plug
> > in/3.5.1/maven-site-plugin-3.5.1.jar urls[1] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/reporting/maven-reporti
> > ng-exec/1.2/maven-reporting-exec-1.2.jar urls[2] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/reporting/maven-reporti
> > ng-api/3.0/maven-reporting-api-3.0.jar urls[3] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/shared/maven-shared-uti
> > ls/0.3/maven-shared-utils-0.3.jar urls[4] =
> > file:/Users/rgold/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/js
> > r305-2.0.1.jar urls[5] =
> > file:/Users/rgold/.m2/repository/org/sonatype/aether/aether-util/1.7/aeth
> > er-util-1.7.jar urls[6] =
> > file:/Users/rgold/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/
> > aether-util-0.9.0.M2.jar urls[7] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/maven-aether-provider/3
> > .0/maven-aether-provider-3.0.jar urls[8] =
> > file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-interpolation
> > /1.14/plexus-interpolation-1.14.jar urls[9] =
> > file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-component-ann
> > otations/1.5.5/plexus-component-annotations-1.5.5.jar urls[10] =
> > file:/Users/rgold/.m2/repository/org/sonatype/plexus/plexus-sec-dispatche
> > r/1.3/plexus-sec-dispatcher-1.3.jar urls[11] =
> > file:/Users/rgold/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/pl
> > exus-cipher-1.4.jar urls[12] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/maven-archiver/2.5/mave
> > n-archiver-2.5.jar urls[13] =
> > file:/Users/rgold/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2
> > /sisu-inject-bean-1.4.2.jar urls[14] =
> > file:/Users/rgold/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-
> > guice-2.1.7-noaop.jar urls[15] =
> > file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-archiver/2.9/
> > plexus-archiver-2.9.jar urls[16] =
> > file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-io/2.4/plexus
> > -io-2.4.jar urls[17] =
> > file:/Users/rgold/.m2/repository/org/apache/commons/commons-compress/1.9/
> > commons-compress-1.9.jar urls[18] =
> > file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta
> > -7/plexus-i18n-1.0-beta-7.jar urls[19] =
> > file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/
> > plexus-utils-3.0.20.jar urls[20] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.
> > 7/doxia-sink-api-1.7.jar urls[21] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-logging-api
> > /1.7/doxia-logging-api-1.7.jar urls[22] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-xhtm
> > l/1.7/doxia-module-xhtml-1.7.jar urls[23] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-core/1.7/do
> > xia-core-1.7.jar urls[24] =
> > file:/Users/rgold/.m2/repository/org/apache/httpcomponents/httpclient/4.0
> > .2/httpclient-4.0.2.jar urls[25] =
> > file:/Users/rgold/.m2/repository/commons-codec/commons-codec/1.3/commons-
> > codec-1.3.jar urls[26] =
> > file:/Users/rgold/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1
> > /httpcore-4.0.1.jar urls[27] =
> > file:/Users/rgold/.m2/repository/xmlunit/xmlunit/1.5/xmlunit-1.5.jar
> > urls[28] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-apt/
> > 1.7/doxia-module-apt-1.7.jar urls[29] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc
> > /1.7/doxia-module-xdoc-1.7.jar urls[30] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-fml/
> > 1.7/doxia-module-fml-1.7.jar urls[31] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-mark
> > down/1.7/doxia-module-markdown-1.7.jar urls[32] =
> > file:/Users/rgold/.m2/repository/org/pegdown/pegdown/1.2.1/pegdown-1.2.1.
> > jar urls[33] =
> > file:/Users/rgold/.m2/repository/org/parboiled/parboiled-java/1.1.4/parbo
> > iled-java-1.1.4.jar urls[34] =
> > file:/Users/rgold/.m2/repository/org/parboiled/parboiled-core/1.1.4/parbo
> > iled-core-1.1.4.jar urls[35] =
> > file:/Users/rgold/.m2/repository/org/ow2/asm/asm/4.1/asm-4.1.jar urls[36]
> > =
> > file:/Users/rgold/.m2/repository/org/ow2/asm/asm-tree/4.1/asm-tree-4.1.ja
> > r urls[37] =
> > file:/Users/rgold/.m2/repository/org/ow2/asm/asm-analysis/4.1/asm-analysi
> > s-4.1.jar urls[38] =
> > file:/Users/rgold/.m2/repository/org/ow2/asm/asm-util/4.1/asm-util-4.1.ja
> > r urls[39] =
> > file:/Users/rgold/.m2/repository/javax/servlet/servlet-api/2.5/servlet-ap
> > i-2.5.jar urls[40] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-decoration-
> > model/1.7.1/doxia-decoration-model-1.7.1.jar urls[41] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-site-render
> > er/1.7.1/doxia-site-renderer-1.7.1.jar urls[42] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-skin-model/
> > 1.7.1/doxia-skin-model-1.7.1.jar urls[43] =
> > file:/Users/rgold/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
> > urls[44] =
> > file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-velocity/1.2/
> > plexus-velocity-1.2.jar urls[45] =
> > file:/Users/rgold/.m2/repository/org/apache/velocity/velocity/1.7/velocit
> > y-1.7.jar urls[46] =
> > file:/Users/rgold/.m2/repository/org/apache/velocity/velocity-tools/2.0/v
> > elocity-tools-2.0.jar urls[47] =
> > file:/Users/rgold/.m2/repository/commons-beanutils/commons-beanutils/1.7.
> > 0/commons-beanutils-1.7.0.jar urls[48] =
> > file:/Users/rgold/.m2/repository/commons-digester/commons-digester/1.8/co
> > mmons-digester-1.8.jar urls[49] =
> > file:/Users/rgold/.m2/repository/commons-chain/commons-chain/1.1/commons-
> > chain-1.1.jar urls[50] =
> > file:/Users/rgold/.m2/repository/commons-logging/commons-logging/1.1/comm
> > ons-logging-1.1.jar urls[51] =
> > file:/Users/rgold/.m2/repository/commons-validator/commons-validator/1.3.
> > 1/commons-validator-1.3.1.jar urls[52] =
> > file:/Users/rgold/.m2/repository/dom4j/dom4j/1.1/dom4j-1.1.jar urls[53] =
> > file:/Users/rgold/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar urls[54] =
> > file:/Users/rgold/.m2/repository/sslext/sslext/1.2-0/sslext-1.2-0.jar
> > urls[55] =
> > file:/Users/rgold/.m2/repository/org/apache/struts/struts-core/1.3.8/stru
> > ts-core-1.3.8.jar urls[56] =
> > file:/Users/rgold/.m2/repository/antlr/antlr/2.7.2/antlr-2.7.2.jar
> > urls[57] =
> > file:/Users/rgold/.m2/repository/org/apache/struts/struts-taglib/1.3.8/st
> > ruts-taglib-1.3.8.jar urls[58] =
> > file:/Users/rgold/.m2/repository/org/apache/struts/struts-tiles/1.3.8/str
> > uts-tiles-1.3.8.jar urls[59] =
> > file:/Users/rgold/.m2/repository/commons-collections/commons-collections/
> > 3.2.1/commons-collections-3.2.1.jar urls[60] =
> > file:/Users/rgold/.m2/repository/commons-lang/commons-lang/2.4/commons-la
> > ng-2.4.jar urls[61] =
> > file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-integration
> > -tools/1.7.1/doxia-integration-tools-1.7.1.jar urls[62] =
> > file:/Users/rgold/.m2/repository/org/mortbay/jetty/jetty/6.1.25/jetty-6.1
> > .25.jar urls[63] =
> > file:/Users/rgold/.m2/repository/org/mortbay/jetty/servlet-api/2.5-200812
> > 11/servlet-api-2.5-20081211.jar urls[64] =
> > file:/Users/rgold/.m2/repository/org/mortbay/jetty/jetty-util/6.1.25/jett
> > y-util-6.1.25.jar urls[65] =
> > file:/Users/rgold/.m2/repository/org/apache/commons/commons-lang3/3.4/com
> > mons-lang3-3.4.jar urls[66] =
> > file:/Users/rgold/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4
> > .jar Number of foreign imports: 1
> > import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
> >
> > -----------------------------------------------------
> >
> > at
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui
> > ldPluginManager.java:181) ... 21 more
> >
> > Caused by: java.lang.ExceptionInInitializerError
> >
> > at
> > org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.generateDocument
> > (DefaultSiteRenderer.java:708) at
> > org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(D
> > efaultSiteRenderer.java:465) at
> > org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument
> > (DoxiaDocumentRenderer.java:53) at
> > org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSi
> > teRenderer.java:329) at
> > org.apache.maven.plugins.site.render.SiteMojo.renderDoxiaDocuments(SiteM
> > ojo.java:264) at
> > org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java
> > :171) at
> > org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:135)
> > at
> > org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui
> > ldPluginManager.java:134) ... 21 more
> >
> > Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3,
> > length 1>
> > at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116)
> > at java.base/java.lang.String.substring(String.java:1885)
> > at
> > org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.ja
> > va:1133) at
> > org.apache.commons.lang.SystemUtils.<clinit>(SystemUtils.java:818) ...
> > 29 more
>
> It looks as though DefaultBuildPluginManager doesn’t know about the change
in java version formats. I am running:

> > /Users/rgold/projects/meterware/simplestub> mvn -version
> > Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426;
> > 2017-04-03T15:39:06-04:00) Maven home: /opt/local/share/java/maven3
> > Java version: 9, vendor: Oracle Corporation
> > Java home: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
> > Default locale: en_US, platform encoding: UTF-8
> > OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
>
> - Russ
>
> > On Sep 30, 2017, at 9:41 PM, Russell Gold <[hidden email]> wrote:
> >
> > I tried 3.5.1 but got “An API incompatibility was encountered,” so here is
the result from 3.4:

> >> [ERROR] Failed to execute goal
> >> org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on
> >> project simplestub: Error generating
> >> maven-javadoc-plugin:3.0.0-M1:javadoc: [ERROR] Exit code: 1 -
> >> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
> >> a:3: error: module not found: org.objectweb.asm.commons [ERROR]    
> >> requires org.objectweb.asm.commons;
> >> [ERROR]                               ^
> >> [ERROR]
> >> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
> >> a:4: error: module not found: javassist [ERROR]     requires javassist;
> >> [ERROR]              ^
> >> [ERROR]
> >> [ERROR] Command line was:
> >> /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc
> >> @options @packages @argfile [ERROR]
> >> [ERROR] Refer to the generated Javadoc files in
> >> '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
> >> [ERROR]
> >> [ERROR] -> [Help 1]
> >> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> >> goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site)
> >> on project simplestub: Error generating
> >> maven-javadoc-plugin:3.0.0-M1:javadoc: Exit code: 1 -
> >> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
> >> a:3: error: module not found: org.objectweb.asm.commons>>
> >>    requires org.objectweb.asm.commons;
> >>    
> >>                              ^
> >>
> >> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java
> >> :4: error: module not found: javassist>>
> >>    requires javassist;
> >>    
> >>             ^
> >>
> >> Command line was:
> >> /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc
> >> @options @packages @argfile
> >>
> >> Refer to the generated Javadoc files in
> >> '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.>>
> >> at
> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
> >> ava:213) at
> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
> >> ava:154) at
> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
> >> ava:146) at
> >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> >> (LifecycleModuleBuilder.java:117) at
> >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> >> (LifecycleModuleBuilder.java:81) at
> >> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThread
> >> edBuilder.build(SingleThreadedBuilder.java:51) at
> >> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleS
> >> tarter.java:128) at
> >> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
> >> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
> >> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
> >> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
> >> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
> >> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
> >> at
> >> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
> >> Method) at
> >> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMe
> >> thodAccessorImpl.java:62) at
> >> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Dele
> >> gatingMethodAccessorImpl.java:43) at
> >> java.base/java.lang.reflect.Method.invoke(Method.java:564)
> >> at
> >> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch
> >> er.java:289) at
> >> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> >> 229) at
> >> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun
> >> cher.java:415) at
> >> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:35
> >> 6)>>
> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> >> generating maven-javadoc-plugin:3.0.0-M1:javadoc: Exit code: 1 -
> >> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
> >> a:3: error: module not found: org.objectweb.asm.commons>>
> >>    requires org.objectweb.asm.commons;
> >>    
> >>                              ^
> >>
> >> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java
> >> :4: error: module not found: javassist>>
> >>    requires javassist;
> >>    
> >>             ^
> >>
> >> Command line was:
> >> /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc
> >> @options @packages @argfile
> >>
> >> Refer to the generated Javadoc files in
> >> '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.>>
> >> at
> >> org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:146
> >> )
> >> at
> >> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBu
> >> ildPluginManager.java:134) at
> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
> >> ava:208) ... 20 more
> >>
> >> Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
> >> generating maven-javadoc-plugin:3.0.0-M1:javadoc: Exit code: 1 -
> >> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
> >> a:3: error: module not found: org.objectweb.asm.commons>>
> >>    requires org.objectweb.asm.commons;
> >>    
> >>                              ^
> >>
> >> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java
> >> :4: error: module not found: javassist>>
> >>    requires javassist;
> >>    
> >>             ^
> >>
> >> Command line was:
> >> /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc
> >> @options @packages @argfile
> >>
> >> Refer to the generated Javadoc files in
> >> '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.>>
> >> at
> >> org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocum
> >> ent(ReportDocumentRenderer.java:239) at
> >> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(De
> >> faultSiteRenderer.java:311) at
> >> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultS
> >> iteRenderer.java:129) at
> >> org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.jav
> >> a:182) at
> >> org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:141
> >> ) ... 22 more
> >>
> >> Caused by: org.apache.maven.reporting.MavenReportException:
> >> Exit code: 1 -
> >> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
> >> a:3: error: module not found: org.objectweb.asm.commons>>
> >>    requires org.objectweb.asm.commons;
> >>    
> >>                              ^
> >>
> >> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java
> >> :4: error: module not found: javassist>>
> >>    requires javassist;
> >>    
> >>             ^
> >>
> >> Command line was:
> >> /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc
> >> @options @packages @argfile
> >>
> >> Refer to the generated Javadoc files in
> >> '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.>>
> >> at
> >> org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeJavadocComm
> >> andLine(AbstractJavadocMojo.java:5075) at
> >> org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport(Abst
> >> ractJavadocMojo.java:2093) at
> >> org.apache.maven.plugins.javadoc.JavadocReport.generate(JavadocReport.j
> >> ava:130) at
> >> org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocum
> >> ent(ReportDocumentRenderer.java:233) ... 26 more
> >>
> >> [ERROR]
> >> [ERROR]
> >> [ERROR] For more information about the errors and possible solutions,
> >> please read the following articles: [ERROR] [Help 1]
> >> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
> > I
> >
> >> On Sep 30, 2017, at 6:29 PM, Hervé BOUTEMY <[hidden email]> wrote:
> >>
> >> I just improved output in MSITE-797 for future maven-site-plugin 3.7 (not
> >> yet released)
> >>
> >> But please upgrade to 3.4 minimum as the error message will give you much
> >> better insight on the cause of the failure: see
> >> https://issues.apache.org/
> >> jira/browse/MSITE-713
> >>
> >> Regards,
> >>
> >> Hervé
> >>
> >> Le samedi 30 septembre 2017, 13:15:36 CEST Hervé BOUTEMY a écrit :
> >>> Hi Russel,
> >>>
> >>> Can you give more stacktrace lines, please, since I suppose it is a
> >>> reporting plugin issue, but I cannot figure out *which* report plugin
> >>>
> >>> (and I'll have to find a way to have more tiny stacktraces when there is
> >>> an
> >>> issue with a report plugin that is launched by maven-site-plugin, since
> >>> everybody points finger at maven-site-plugin instead of the reporting
> >>> plugin that failed... I know that currently, from a user perspective,
> >>> that is the natural perception: I need to find a trick to change this,
> >>> I don't know how yet)
> >>>
> >>> Regards,
> >>>
> >>> Hervé
> >>>
> >>> Le vendredi 29 septembre 2017, 12:25:02 CEST Russell Gold a écrit :
> >>>> I have added a module-info to my project, and now when I run mvn site,
> >>>> it
> >>>> is
> >>>
> >>> failing:
> >>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
> >>>>> execute
> >>>>> goal org.apache.maven.plugins:maven-site-plugin:3.3:site
> >>>>> (default-site)
> >>>>> on project simplestub: Error during page generation>
> >>>>>
> >>>>> at
> >>
> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
> >>
> >>>>> a
> >>>>> va:213) at
> >>
> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
> >>
> >>>>> a
> >>>>> va:154) at
> >>
> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
> >>
> >>>>> a
> >>>>> va:146) at
> >>
> >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> >>
> >>>>> (
> >>>>> LifecycleModuleBuilder.java:117) at
> >>
> >> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
> >>
> >>>>> (
> >>>>> LifecycleModuleBuilder.java:81) at
> >>
> >> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThread
> >>
> >>>>> e
> >>>>> dBuilder.build(SingleThreadedBuilder.java:51) at
> >>
> >> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleS
> >>
> >>>>> t
> >>>>> arter.java:128) at
> >>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
> >>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
> >>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
> >>>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
> >>>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
> >>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
> >>>>> at
> >>>>> java.base/
jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ
> >>>>> e
> >>>>> Method) at
> >>>>> java.base/
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native
> >>>>> Me
> >>>>> t
> >>>>> hodAccessorImpl.java:62) at
> >>>>> java.base/
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De

> >>>>> le
> >>>>> g
> >>>>> atingMethodAccessorImpl.java:43) at
> >>>>> java.base/java.lang.reflect.Method.invoke(Method.java:564)
> >>>>> at
> >>
> >> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch
> >>
> >>>>> e
> >>>>> r.java:289) at
> >>
> >> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
> >>>>> 2
> >>>>> 29) at
> >>
> >> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun
> >>
> >>>>> c
> >>>>> her.java:415) at
> >>
> >>>>>
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:

> >> 35
> >>
> >>>>> 6
> >>>>> )>
> >>>>>
> >>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
> >>>>> during
> >>>>> page generation>
> >>>>>
> >>>>> at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:
143)

> >>>>> at
> >>
> >> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBu
> >>
> >>>>> i
> >>>>> ldPluginManager.java:134) at
> >>
> >> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
> >>
> >>>>> a
> >>>>> va:208) ... 20 more
> >>>>>
> >>>>> Caused by: org.apache.maven.doxia.siterenderer.RendererException:
> >>>>> Error
> >>>>> rendering Maven report: Exit code: 1 -
> >>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.j
> >>>>> av
> >>>>> a
> >>>>>
> >>>>> :3: error: module not found: org.objectweb.asm.commons>
> >>>>> :
> >>>>>   requires org.objectweb.asm.commons;
> >>>>>  
> >>>>>                             ^
> >>>>>
> >>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.j
> >>>>> av
> >>>>> a:
> >>>>> 4: error: module not found: javassist>
> >>>>>
> >>>>>   requires javassist;
> >>>>>  
> >>>>>            ^
> >>>>
> >>>> Note that this code compiles and runs just find with the module-info;
> >>>> it
> >>>> just doesn’t generate a site.
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: [hidden email]
> >>> For additional commands, e-mail: [hidden email]
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [hidden email]
> >> For additional commands, e-mail: [hidden email]



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: unable to generate site with module-info defined

Russell Gold-3
Thanks; I have filed https://issues.apache.org/jira/browse/MJAVADOC-498

> On Oct 1, 2017, at 4:05 AM, Hervé BOUTEMY <[hidden email]> wrote:
>
> ok
>
> with 3.4, you can see "Error generating maven-javadoc-plugin:3.0.0-M1:javadoc"
> you're issue is only indirectly with maven-site-plugin, but more directly with
> maven-javadoc-plugin
>
> reproducing this issue is then best done with "mvn javadoc:javadoc", to
> directly use the offending plugin (instead of trying to aggregate every
> report)
>
>
> then with 3.5.1: if you look at the end of the stacktrace:
>> Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length
> 1
>> at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116)
>> at java.base/java.lang.String.substring(String.java:1885)
>> at
> org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:
> 1133)
> you'll find a typical issue with Java 9 when some lib expects java version to
> be 1.x and finds 9.x in Java 9
> This time, the issue is maven-site-plugin, it was discusse on [hidden email]
> just one week ago, and Robert Scholte is currently releasing the fix in Doxia
> Sitetools 1.7.5
> The issue is tracked with:
> - https://issues.apache.org/jira/browse/MSITE-796 at maven-site-plugin level,
> - and https://issues.apache.org/jira/browse/DOXIASITETOOLS-177 at Doxia
> Sitetools level
>
> And, as any Java 9 compatibility issue, it should be tracked on our Java 9
> Wiki page: https://cwiki.apache.org/confluence/display/MAVEN/Java+9+-+Jigsaw
>
> I see that we forgot to trace MSITE-796: I'll add it soon.
>
>
> Pfeewww, to summarize, you're mixing 2 independant issues:
> - javadoc:javadoc issue, not yet precisely understood, but which is the
> initial issue
> - known site plugin issue with Java 9, fixed in latest snapshots but not yet in
> any release
>
> to continue our investigations, please stay with maven-site-plugin 3.4, and
> run "mvn javadoc:javadoc": perhaps you found a new issue with this plugin
> regarding Java 9 modules
>
> Regards,
>
> Hervé
>
> Le samedi 30 septembre 2017, 21:57:00 CEST Russell Gold a écrit :
>> And here is the stack trace with 3.5.1:
>>> at
>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui
>>> ldPluginManager.java:183) at
>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.ja
>>> va:208) ... 20 more
>>>
>>> Caused by: org.apache.maven.plugin.PluginContainerException: An API
>>> incompatibility was encountered while executing
>>> org.apache.maven.plugins:maven-site-plugin:3.5.1:site:
>>> java.lang.ExceptionInInitializerError: null
>>> -----------------------------------------------------
>>> realm =    plugin>org.apache.maven.plugins:maven-site-plugin:3.5.1
>>> strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
>>> urls[0] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/plugins/maven-site-plug
>>> in/3.5.1/maven-site-plugin-3.5.1.jar urls[1] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/reporting/maven-reporti
>>> ng-exec/1.2/maven-reporting-exec-1.2.jar urls[2] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/reporting/maven-reporti
>>> ng-api/3.0/maven-reporting-api-3.0.jar urls[3] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/shared/maven-shared-uti
>>> ls/0.3/maven-shared-utils-0.3.jar urls[4] =
>>> file:/Users/rgold/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/js
>>> r305-2.0.1.jar urls[5] =
>>> file:/Users/rgold/.m2/repository/org/sonatype/aether/aether-util/1.7/aeth
>>> er-util-1.7.jar urls[6] =
>>> file:/Users/rgold/.m2/repository/org/eclipse/aether/aether-util/0.9.0.M2/
>>> aether-util-0.9.0.M2.jar urls[7] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/maven-aether-provider/3
>>> .0/maven-aether-provider-3.0.jar urls[8] =
>>> file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-interpolation
>>> /1.14/plexus-interpolation-1.14.jar urls[9] =
>>> file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-component-ann
>>> otations/1.5.5/plexus-component-annotations-1.5.5.jar urls[10] =
>>> file:/Users/rgold/.m2/repository/org/sonatype/plexus/plexus-sec-dispatche
>>> r/1.3/plexus-sec-dispatcher-1.3.jar urls[11] =
>>> file:/Users/rgold/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/pl
>>> exus-cipher-1.4.jar urls[12] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/maven-archiver/2.5/mave
>>> n-archiver-2.5.jar urls[13] =
>>> file:/Users/rgold/.m2/repository/org/sonatype/sisu/sisu-inject-bean/1.4.2
>>> /sisu-inject-bean-1.4.2.jar urls[14] =
>>> file:/Users/rgold/.m2/repository/org/sonatype/sisu/sisu-guice/2.1.7/sisu-
>>> guice-2.1.7-noaop.jar urls[15] =
>>> file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-archiver/2.9/
>>> plexus-archiver-2.9.jar urls[16] =
>>> file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-io/2.4/plexus
>>> -io-2.4.jar urls[17] =
>>> file:/Users/rgold/.m2/repository/org/apache/commons/commons-compress/1.9/
>>> commons-compress-1.9.jar urls[18] =
>>> file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta
>>> -7/plexus-i18n-1.0-beta-7.jar urls[19] =
>>> file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-utils/3.0.20/
>>> plexus-utils-3.0.20.jar urls[20] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.
>>> 7/doxia-sink-api-1.7.jar urls[21] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-logging-api
>>> /1.7/doxia-logging-api-1.7.jar urls[22] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-xhtm
>>> l/1.7/doxia-module-xhtml-1.7.jar urls[23] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-core/1.7/do
>>> xia-core-1.7.jar urls[24] =
>>> file:/Users/rgold/.m2/repository/org/apache/httpcomponents/httpclient/4.0
>>> .2/httpclient-4.0.2.jar urls[25] =
>>> file:/Users/rgold/.m2/repository/commons-codec/commons-codec/1.3/commons-
>>> codec-1.3.jar urls[26] =
>>> file:/Users/rgold/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1
>>> /httpcore-4.0.1.jar urls[27] =
>>> file:/Users/rgold/.m2/repository/xmlunit/xmlunit/1.5/xmlunit-1.5.jar
>>> urls[28] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-apt/
>>> 1.7/doxia-module-apt-1.7.jar urls[29] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc
>>> /1.7/doxia-module-xdoc-1.7.jar urls[30] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-fml/
>>> 1.7/doxia-module-fml-1.7.jar urls[31] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-module-mark
>>> down/1.7/doxia-module-markdown-1.7.jar urls[32] =
>>> file:/Users/rgold/.m2/repository/org/pegdown/pegdown/1.2.1/pegdown-1.2.1.
>>> jar urls[33] =
>>> file:/Users/rgold/.m2/repository/org/parboiled/parboiled-java/1.1.4/parbo
>>> iled-java-1.1.4.jar urls[34] =
>>> file:/Users/rgold/.m2/repository/org/parboiled/parboiled-core/1.1.4/parbo
>>> iled-core-1.1.4.jar urls[35] =
>>> file:/Users/rgold/.m2/repository/org/ow2/asm/asm/4.1/asm-4.1.jar urls[36]
>>> =
>>> file:/Users/rgold/.m2/repository/org/ow2/asm/asm-tree/4.1/asm-tree-4.1.ja
>>> r urls[37] =
>>> file:/Users/rgold/.m2/repository/org/ow2/asm/asm-analysis/4.1/asm-analysi
>>> s-4.1.jar urls[38] =
>>> file:/Users/rgold/.m2/repository/org/ow2/asm/asm-util/4.1/asm-util-4.1.ja
>>> r urls[39] =
>>> file:/Users/rgold/.m2/repository/javax/servlet/servlet-api/2.5/servlet-ap
>>> i-2.5.jar urls[40] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-decoration-
>>> model/1.7.1/doxia-decoration-model-1.7.1.jar urls[41] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-site-render
>>> er/1.7.1/doxia-site-renderer-1.7.1.jar urls[42] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-skin-model/
>>> 1.7.1/doxia-skin-model-1.7.1.jar urls[43] =
>>> file:/Users/rgold/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar
>>> urls[44] =
>>> file:/Users/rgold/.m2/repository/org/codehaus/plexus/plexus-velocity/1.2/
>>> plexus-velocity-1.2.jar urls[45] =
>>> file:/Users/rgold/.m2/repository/org/apache/velocity/velocity/1.7/velocit
>>> y-1.7.jar urls[46] =
>>> file:/Users/rgold/.m2/repository/org/apache/velocity/velocity-tools/2.0/v
>>> elocity-tools-2.0.jar urls[47] =
>>> file:/Users/rgold/.m2/repository/commons-beanutils/commons-beanutils/1.7.
>>> 0/commons-beanutils-1.7.0.jar urls[48] =
>>> file:/Users/rgold/.m2/repository/commons-digester/commons-digester/1.8/co
>>> mmons-digester-1.8.jar urls[49] =
>>> file:/Users/rgold/.m2/repository/commons-chain/commons-chain/1.1/commons-
>>> chain-1.1.jar urls[50] =
>>> file:/Users/rgold/.m2/repository/commons-logging/commons-logging/1.1/comm
>>> ons-logging-1.1.jar urls[51] =
>>> file:/Users/rgold/.m2/repository/commons-validator/commons-validator/1.3.
>>> 1/commons-validator-1.3.1.jar urls[52] =
>>> file:/Users/rgold/.m2/repository/dom4j/dom4j/1.1/dom4j-1.1.jar urls[53] =
>>> file:/Users/rgold/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar urls[54] =
>>> file:/Users/rgold/.m2/repository/sslext/sslext/1.2-0/sslext-1.2-0.jar
>>> urls[55] =
>>> file:/Users/rgold/.m2/repository/org/apache/struts/struts-core/1.3.8/stru
>>> ts-core-1.3.8.jar urls[56] =
>>> file:/Users/rgold/.m2/repository/antlr/antlr/2.7.2/antlr-2.7.2.jar
>>> urls[57] =
>>> file:/Users/rgold/.m2/repository/org/apache/struts/struts-taglib/1.3.8/st
>>> ruts-taglib-1.3.8.jar urls[58] =
>>> file:/Users/rgold/.m2/repository/org/apache/struts/struts-tiles/1.3.8/str
>>> uts-tiles-1.3.8.jar urls[59] =
>>> file:/Users/rgold/.m2/repository/commons-collections/commons-collections/
>>> 3.2.1/commons-collections-3.2.1.jar urls[60] =
>>> file:/Users/rgold/.m2/repository/commons-lang/commons-lang/2.4/commons-la
>>> ng-2.4.jar urls[61] =
>>> file:/Users/rgold/.m2/repository/org/apache/maven/doxia/doxia-integration
>>> -tools/1.7.1/doxia-integration-tools-1.7.1.jar urls[62] =
>>> file:/Users/rgold/.m2/repository/org/mortbay/jetty/jetty/6.1.25/jetty-6.1
>>> .25.jar urls[63] =
>>> file:/Users/rgold/.m2/repository/org/mortbay/jetty/servlet-api/2.5-200812
>>> 11/servlet-api-2.5-20081211.jar urls[64] =
>>> file:/Users/rgold/.m2/repository/org/mortbay/jetty/jetty-util/6.1.25/jett
>>> y-util-6.1.25.jar urls[65] =
>>> file:/Users/rgold/.m2/repository/org/apache/commons/commons-lang3/3.4/com
>>> mons-lang3-3.4.jar urls[66] =
>>> file:/Users/rgold/.m2/repository/commons-io/commons-io/1.4/commons-io-1.4
>>> .jar Number of foreign imports: 1
>>> import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
>>>
>>> -----------------------------------------------------
>>>
>>> at
>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui
>>> ldPluginManager.java:181) ... 21 more
>>>
>>> Caused by: java.lang.ExceptionInInitializerError
>>>
>>> at
>>> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.generateDocument
>>> (DefaultSiteRenderer.java:708) at
>>> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderDocument(D
>>> efaultSiteRenderer.java:465) at
>>> org.apache.maven.doxia.siterenderer.DoxiaDocumentRenderer.renderDocument
>>> (DoxiaDocumentRenderer.java:53) at
>>> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSi
>>> teRenderer.java:329) at
>>> org.apache.maven.plugins.site.render.SiteMojo.renderDoxiaDocuments(SiteM
>>> ojo.java:264) at
>>> org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.java
>>> :171) at
>>> org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:135)
>>> at
>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBui
>>> ldPluginManager.java:134) ... 21 more
>>>
>>> Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3,
>>> length 1>
>>> at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3116)
>>> at java.base/java.lang.String.substring(String.java:1885)
>>> at
>>> org.apache.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.ja
>>> va:1133) at
>>> org.apache.commons.lang.SystemUtils.<clinit>(SystemUtils.java:818) ...
>>> 29 more
>>
>> It looks as though DefaultBuildPluginManager doesn’t know about the change
> in java version formats. I am running:
>>> /Users/rgold/projects/meterware/simplestub> mvn -version
>>> Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426;
>>> 2017-04-03T15:39:06-04:00) Maven home: /opt/local/share/java/maven3
>>> Java version: 9, vendor: Oracle Corporation
>>> Java home: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
>>> Default locale: en_US, platform encoding: UTF-8
>>> OS name: "mac os x", version: "10.12.6", arch: "x86_64", family: "mac"
>>
>> - Russ
>>
>>> On Sep 30, 2017, at 9:41 PM, Russell Gold <[hidden email]> wrote:
>>>
>>> I tried 3.5.1 but got “An API incompatibility was encountered,” so here is
> the result from 3.4:
>>>> [ERROR] Failed to execute goal
>>>> org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site) on
>>>> project simplestub: Error generating
>>>> maven-javadoc-plugin:3.0.0-M1:javadoc: [ERROR] Exit code: 1 -
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
>>>> a:3: error: module not found: org.objectweb.asm.commons [ERROR]    
>>>> requires org.objectweb.asm.commons;
>>>> [ERROR]                               ^
>>>> [ERROR]
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
>>>> a:4: error: module not found: javassist [ERROR]     requires javassist;
>>>> [ERROR]              ^
>>>> [ERROR]
>>>> [ERROR] Command line was:
>>>> /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc
>>>> @options @packages @argfile [ERROR]
>>>> [ERROR] Refer to the generated Javadoc files in
>>>> '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.
>>>> [ERROR]
>>>> [ERROR] -> [Help 1]
>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
>>>> goal org.apache.maven.plugins:maven-site-plugin:3.4:site (default-site)
>>>> on project simplestub: Error generating
>>>> maven-javadoc-plugin:3.0.0-M1:javadoc: Exit code: 1 -
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
>>>> a:3: error: module not found: org.objectweb.asm.commons>>
>>>>   requires org.objectweb.asm.commons;
>>>>
>>>>                             ^
>>>>
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java
>>>> :4: error: module not found: javassist>>
>>>>   requires javassist;
>>>>
>>>>            ^
>>>>
>>>> Command line was:
>>>> /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc
>>>> @options @packages @argfile
>>>>
>>>> Refer to the generated Javadoc files in
>>>> '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.>>
>>>> at
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>> ava:213) at
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>> ava:154) at
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>> ava:146) at
>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>>> (LifecycleModuleBuilder.java:117) at
>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>>> (LifecycleModuleBuilder.java:81) at
>>>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThread
>>>> edBuilder.build(SingleThreadedBuilder.java:51) at
>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleS
>>>> tarter.java:128) at
>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>>>> at
>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>> Method) at
>>>> java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMe
>>>> thodAccessorImpl.java:62) at
>>>> java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Dele
>>>> gatingMethodAccessorImpl.java:43) at
>>>> java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>> at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch
>>>> er.java:289) at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
>>>> 229) at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun
>>>> cher.java:415) at
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:35
>>>> 6)>>
>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>>>> generating maven-javadoc-plugin:3.0.0-M1:javadoc: Exit code: 1 -
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
>>>> a:3: error: module not found: org.objectweb.asm.commons>>
>>>>   requires org.objectweb.asm.commons;
>>>>
>>>>                             ^
>>>>
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java
>>>> :4: error: module not found: javassist>>
>>>>   requires javassist;
>>>>
>>>>            ^
>>>>
>>>> Command line was:
>>>> /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc
>>>> @options @packages @argfile
>>>>
>>>> Refer to the generated Javadoc files in
>>>> '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.>>
>>>> at
>>>> org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:146
>>>> )
>>>> at
>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBu
>>>> ildPluginManager.java:134) at
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>> ava:208) ... 20 more
>>>>
>>>> Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error
>>>> generating maven-javadoc-plugin:3.0.0-M1:javadoc: Exit code: 1 -
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
>>>> a:3: error: module not found: org.objectweb.asm.commons>>
>>>>   requires org.objectweb.asm.commons;
>>>>
>>>>                             ^
>>>>
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java
>>>> :4: error: module not found: javassist>>
>>>>   requires javassist;
>>>>
>>>>            ^
>>>>
>>>> Command line was:
>>>> /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc
>>>> @options @packages @argfile
>>>>
>>>> Refer to the generated Javadoc files in
>>>> '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.>>
>>>> at
>>>> org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocum
>>>> ent(ReportDocumentRenderer.java:239) at
>>>> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(De
>>>> faultSiteRenderer.java:311) at
>>>> org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultS
>>>> iteRenderer.java:129) at
>>>> org.apache.maven.plugins.site.render.SiteMojo.renderLocale(SiteMojo.jav
>>>> a:182) at
>>>> org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:141
>>>> ) ... 22 more
>>>>
>>>> Caused by: org.apache.maven.reporting.MavenReportException:
>>>> Exit code: 1 -
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.jav
>>>> a:3: error: module not found: org.objectweb.asm.commons>>
>>>>   requires org.objectweb.asm.commons;
>>>>
>>>>                             ^
>>>>
>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.java
>>>> :4: error: module not found: javassist>>
>>>>   requires javassist;
>>>>
>>>>            ^
>>>>
>>>> Command line was:
>>>> /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home/bin/javadoc
>>>> @options @packages @argfile
>>>>
>>>> Refer to the generated Javadoc files in
>>>> '/Users/rgold/projects/meterware/simplestub/target/site/apidocs' dir.>>
>>>> at
>>>> org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeJavadocComm
>>>> andLine(AbstractJavadocMojo.java:5075) at
>>>> org.apache.maven.plugins.javadoc.AbstractJavadocMojo.executeReport(Abst
>>>> ractJavadocMojo.java:2093) at
>>>> org.apache.maven.plugins.javadoc.JavadocReport.generate(JavadocReport.j
>>>> ava:130) at
>>>> org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocum
>>>> ent(ReportDocumentRenderer.java:233) ... 26 more
>>>>
>>>> [ERROR]
>>>> [ERROR]
>>>> [ERROR] For more information about the errors and possible solutions,
>>>> please read the following articles: [ERROR] [Help 1]
>>>> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException>
>>> I
>>>
>>>> On Sep 30, 2017, at 6:29 PM, Hervé BOUTEMY <[hidden email]> wrote:
>>>>
>>>> I just improved output in MSITE-797 for future maven-site-plugin 3.7 (not
>>>> yet released)
>>>>
>>>> But please upgrade to 3.4 minimum as the error message will give you much
>>>> better insight on the cause of the failure: see
>>>> https://issues.apache.org/
>>>> jira/browse/MSITE-713
>>>>
>>>> Regards,
>>>>
>>>> Hervé
>>>>
>>>> Le samedi 30 septembre 2017, 13:15:36 CEST Hervé BOUTEMY a écrit :
>>>>> Hi Russel,
>>>>>
>>>>> Can you give more stacktrace lines, please, since I suppose it is a
>>>>> reporting plugin issue, but I cannot figure out *which* report plugin
>>>>>
>>>>> (and I'll have to find a way to have more tiny stacktraces when there is
>>>>> an
>>>>> issue with a report plugin that is launched by maven-site-plugin, since
>>>>> everybody points finger at maven-site-plugin instead of the reporting
>>>>> plugin that failed... I know that currently, from a user perspective,
>>>>> that is the natural perception: I need to find a trick to change this,
>>>>> I don't know how yet)
>>>>>
>>>>> Regards,
>>>>>
>>>>> Hervé
>>>>>
>>>>> Le vendredi 29 septembre 2017, 12:25:02 CEST Russell Gold a écrit :
>>>>>> I have added a module-info to my project, and now when I run mvn site,
>>>>>> it
>>>>>> is
>>>>>
>>>>> failing:
>>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to
>>>>>>> execute
>>>>>>> goal org.apache.maven.plugins:maven-site-plugin:3.3:site
>>>>>>> (default-site)
>>>>>>> on project simplestub: Error during page generation>
>>>>>>>
>>>>>>> at
>>>>
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>>
>>>>>>> a
>>>>>>> va:213) at
>>>>
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>>
>>>>>>> a
>>>>>>> va:154) at
>>>>
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>>
>>>>>>> a
>>>>>>> va:146) at
>>>>
>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>>>
>>>>>>> (
>>>>>>> LifecycleModuleBuilder.java:117) at
>>>>
>>>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject
>>>>
>>>>>>> (
>>>>>>> LifecycleModuleBuilder.java:81) at
>>>>
>>>> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThread
>>>>
>>>>>>> e
>>>>>>> dBuilder.build(SingleThreadedBuilder.java:51) at
>>>>
>>>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleS
>>>>
>>>>>>> t
>>>>>>> arter.java:128) at
>>>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
>>>>>>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
>>>>>>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
>>>>>>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
>>>>>>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
>>>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
>>>>>>> at
>>>>>>> java.base/
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ
>>>>>>> e
>>>>>>> Method) at
>>>>>>> java.base/
> jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native
>>>>>>> Me
>>>>>>> t
>>>>>>> hodAccessorImpl.java:62) at
>>>>>>> java.base/
> jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De
>>>>>>> le
>>>>>>> g
>>>>>>> atingMethodAccessorImpl.java:43) at
>>>>>>> java.base/java.lang.reflect.Method.invoke(Method.java:564)
>>>>>>> at
>>>>
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launch
>>>>
>>>>>>> e
>>>>>>> r.java:289) at
>>>>
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:
>>>>>>> 2
>>>>>>> 29) at
>>>>
>>>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Laun
>>>>
>>>>>>> c
>>>>>>> her.java:415) at
>>>>
>>>>>>>
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
>>>> 35
>>>>
>>>>>>> 6
>>>>>>> )>
>>>>>>>
>>>>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Error
>>>>>>> during
>>>>>>> page generation>
>>>>>>>
>>>>>>> at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:
> 143)
>>>>>>> at
>>>>
>>>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBu
>>>>
>>>>>>> i
>>>>>>> ldPluginManager.java:134) at
>>>>
>>>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.j
>>>>
>>>>>>> a
>>>>>>> va:208) ... 20 more
>>>>>>>
>>>>>>> Caused by: org.apache.maven.doxia.siterenderer.RendererException:
>>>>>>> Error
>>>>>>> rendering Maven report: Exit code: 1 -
>>>>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.j
>>>>>>> av
>>>>>>> a
>>>>>>>
>>>>>>> :3: error: module not found: org.objectweb.asm.commons>
>>>>>>> :
>>>>>>>  requires org.objectweb.asm.commons;
>>>>>>>
>>>>>>>                            ^
>>>>>>>
>>>>>>> /Users/rgold/projects/meterware/simplestub/src/main/java/module-info.j
>>>>>>> av
>>>>>>> a:
>>>>>>> 4: error: module not found: javassist>
>>>>>>>
>>>>>>>  requires javassist;
>>>>>>>
>>>>>>>           ^
>>>>>>
>>>>>> Note that this code compiles and runs just find with the module-info;
>>>>>> it
>>>>>> just doesn’t generate a site.
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: [hidden email]
>>>>> For additional commands, e-mail: [hidden email]
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: [hidden email]
>>>> For additional commands, e-mail: [hidden email]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]