jira-importer commented on issue #517:
URL: 
https://github.com/apache/maven-javadoc-plugin/issues/517#issuecomment-2957332883

   **[Samuel 
Langlois](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=langlois)**
 commented
   
   More info on this subject...
   
   Actually, I'm not sure this issue belongs to the javadoc plugin.
   I added a \<excludePackageNames> in the maven-javadoc-plugin configuration 
to exclude the code containing the assert() method,
   and I am now able to run "mvn javadoc:javadoc" without error.
   
   However, "mvn site:site" still fails with the following trace:
   
   [INFO] 
------------------------------------------------------------------------
   [ERROR] BUILD ERROR
   [INFO] 
------------------------------------------------------------------------
   [INFO] Error during page generation
   
   Embedded error: Error rendering Maven report: Exit code: 1 - 
/nfs/bizrules/jrules/users/langlois/mavenpoc/engine/engine/jrules-engine-context/src/main/java/ilog/rules/engine/IlrContext.java:1199:
 as of release 1.4, assert is a keyword, and may not be used as an identifier
   public synchronized void assert(Object object) {
   ^
   
   [INFO] 
------------------------------------------------------------------------
   [DEBUG] Trace
   org.apache.maven.lifecycle.LifecycleExecutionException: Error during page 
generation
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:327)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:120)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:263)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:324)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
   Caused by: org.apache.maven.plugin.MojoExecutionException: Error during page 
generation
   at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:97)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:417)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534)
   ... 16 more
   Caused by: org.apache.maven.doxia.siterenderer.RendererException: Error 
rendering Maven report: Exit code: 1 - 
/nfs/bizrules/jrules/users/langlois/mavenpoc/engine/engine/jrules-engine-context/src/main/java/ilog/rules/engine/IlrContext.java:1199:
 as of release 1.4, assert is a keyword, and may not be used as an identifier
   public synchronized void assert(Object object) {
   ^
   
       at 
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:71)
       at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.renderModule(DefaultSiteRenderer.java:239)
       at 
org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render(DefaultSiteRenderer.java:115)
       at org.apache.maven.plugins.site.SiteMojo.renderLocale(SiteMojo.java:124)
       at org.apache.maven.plugins.site.SiteMojo.execute(SiteMojo.java:92)
       ... 18 more
   
   Caused by: org.apache.maven.reporting.MavenReportException: Exit code: 1 - 
/nfs/bizrules/jrules/users/langlois/mavenpoc/engine/engine/jrules-engine-context/src/main/java/ilog/rules/engine/IlrContext.java:1199:
 as of release 1.4, assert is a keyword, and may not be used as an identifier
   public synchronized void assert(Object object) {
   ^
   
       at 
org.apache.maven.plugin.javadoc.AbstractJavadocMojo.executeReport(AbstractJavadocMojo.java:845)
       at 
org.apache.maven.plugin.javadoc.JavadocReport.generate(JavadocReport.java:104)
       at 
org.apache.maven.plugins.site.ReportDocumentRenderer.renderDocument(ReportDocumentRenderer.java:67)
       ... 22 more
   
   Is there any way out?
   (We unfortunately cannot remove this stupid assert() method for 
compatibility reasons.)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to