maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hervé Boutemy (JIRA) <j...@apache.org>
Subject [jira] [Created] (MSITE-836) when a report mojo fails with a RuntimeException, let m-site-p plugin tell which report is failing
Date Sun, 31 Mar 2019 06:19:00 GMT
Hervé Boutemy created MSITE-836:
-----------------------------------

             Summary: when a report mojo fails with a RuntimeException, let m-site-p plugin
tell which report is failing
                 Key: MSITE-836
                 URL: https://issues.apache.org/jira/browse/MSITE-836
             Project: Maven Site Plugin
          Issue Type: Improvement
    Affects Versions: 3.7.1
            Reporter: Hervé Boutemy
             Fix For: 3.8


when there is a RuntimeException during a report execution, m-site-p rethrows it as if m-site-p
was faulty instead of encapsulating it to show that it's an exception *thrown by a report
plugin*, like it does when the report plugin fails with a MojoException

this is exactly what I'm getting currently while trying to build animal sniffer 1.17 site
and I have m-plugin-p getting an IllegalArgumentException:
{noformat}[INFO] Generating "Plugin Documentation" report --- maven-plugin-plugin:3.4:report
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] Animal Sniffer 1.17 ................................ SUCCESS [  8.486 s]
[INFO] Java boot classpath detector ....................... SUCCESS [  5.228 s]
[INFO] Animal Sniffer Annotations ......................... SUCCESS [  2.899 s]
[INFO] Animal Sniffer ..................................... SUCCESS [ 10.769 s]
[INFO] Animal Sniffer Maven Plugin ........................ FAILURE [  6.139 s]
[INFO] Animal Sniffer Maven Enforcer Rule ................. SKIPPED
[INFO] Animal Sniffer Ant Tasks 1.17 ...................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.977 s
[INFO] Finished at: 2019-03-31T07:56:30+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site (default-site)
on project animal-sniffer-maven-plugin: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site
failed.: IllegalArgumentException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site
(default-site) on project animal-sniffer-maven-plugin: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.7.1:site
failed.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:213)
[...]
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-site of goal
org.apache.maven.plugins:maven-site-plugin:3.7.1:site failed.
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:148)
[...]
Caused by: java.lang.IllegalArgumentException
    at org.objectweb.asm.ClassReader.<init> (Unknown Source)
    at org.objectweb.asm.ClassReader.<init> (Unknown Source)
    at org.objectweb.asm.ClassReader.<init> (Unknown Source)
    at org.apache.maven.tools.plugin.extractor.annotations.scanner.DefaultMojoAnnotationsScanner.analyzeClassStream
(DefaultMojoAnnotationsScanner.java:201)
    at org.apache.maven.tools.plugin.extractor.annotations.scanner.DefaultMojoAnnotationsScanner.scanArchive
(DefaultMojoAnnotationsScanner.java:139)
    at org.apache.maven.tools.plugin.extractor.annotations.scanner.DefaultMojoAnnotationsScanner.scan
(DefaultMojoAnnotationsScanner.java:108)
    at org.apache.maven.tools.plugin.extractor.annotations.scanner.DefaultMojoAnnotationsScanner.scan
(DefaultMojoAnnotationsScanner.java:75)
    at org.apache.maven.tools.plugin.extractor.annotations.JavaAnnotationsMojoDescriptorExtractor.scanAnnotations
(JavaAnnotationsMojoDescriptorExtractor.java:124)
    at org.apache.maven.tools.plugin.extractor.annotations.JavaAnnotationsMojoDescriptorExtractor.execute
(JavaAnnotationsMojoDescriptorExtractor.java:103)
    at org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor (DefaultMojoScanner.java:96)
    at org.apache.maven.plugin.plugin.PluginReport.extractPluginDescriptor (PluginReport.java:287)
    at org.apache.maven.plugin.plugin.PluginReport.executeReport (PluginReport.java:235)
    at org.apache.maven.reporting.AbstractMavenReport.generate (AbstractMavenReport.java:255)
    at org.apache.maven.plugins.site.render.ReportDocumentRenderer.renderDocument (ReportDocumentRenderer.java:230)
    at org.apache.maven.doxia.siterenderer.DefaultSiteRenderer.render (DefaultSiteRenderer.java:349)
    at org.apache.maven.plugins.site.render.SiteMojo.renderLocale (SiteMojo.java:198)
    at org.apache.maven.plugins.site.render.SiteMojo.execute (SiteMojo.java:147)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
[...]{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message