Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-863

NoSuchMethodError: 'Xpp3Dom.getInputLocation()' when running reports with Maven versions < 3.6.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.9.0
    • 3.9.1
    • Maven 3
    • None

    Description

      https://lists.apache.org/thread.html/rbba90de4703f8109b543500a5ee9e5b17b6a1258d95c6b5815b9257a%40%3Cdev.maven.apache.org%3E

      mojo-parent (issue-105)$ mvn site site:stage
      ..
      [INFO]
      [INFO] --- maven-site-plugin:3.9.0:site (default-site) @ mojo-parent ---
      [INFO] configuring report plugin org.apache.maven.plugins:maven-plugin-plugin:3.6.0
      [INFO] preparing maven-plugin-plugin:report report requires 'process-classes' forked phase execution
      [INFO]
      [INFO] >>> maven-plugin-plugin:3.6.0:report > process-classes @mojo-parent >>>
      [INFO]
      [INFO] --- maven-enforcer-plugin:1.4:enforce (mojo-enforcer-rules) @mojo-parent ---
      [INFO]
      [INFO] <<< maven-plugin-plugin:3.6.0:report < process-classes @mojo-parent <<<
      [INFO] 'process-classes' forked phase execution for maven-plugin-plugin:report report preparation done
      [INFO] 1 report detected for maven-plugin-plugin:3.6.0: report
      [INFO] configuring report plugin org.apache.maven.plugins:maven-changes-plugin:2.11
      [INFO] 1 report configured for maven-changes-plugin:2.11: github-report
      [INFO] configuring report plugin org.apache.maven.plugins:maven-checkstyle-plugin:2.16
      [INFO] 1 report configured for maven-checkstyle-plugin:2.16: checkstyle
      [INFO] configuring report plugin org.apache.maven.plugins:maven-javadoc-plugin:3.2.0
      [INFO]
      ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO]
      ------------------------------------------------------------------------
      [INFO] Total time: 2.144 s
      [INFO] Finished at: 2020-05-24T11:50:11+02:00
      [INFO] Final Memory: 30M/128M
      [INFO]
      ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.9.0:site (default-site) on project mojo-parent: Execution default-site of goal org.apache.maven.plugins:maven-site-plugin:3.9.0:site failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-site-plugin:3.9.0:site:java.lang.NoSuchMethodError: 'java.lang.Object org.codehaus.plexus.util.xml.Xpp3Dom.getInputLocation()'
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>org.apache.maven.plugins:maven-site-plugin:3.9.0
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] =
      file:/Users/khmarbaise/.m2/repository/org/apache/maven/plugins/maven-site-plugin/3.9.0/maven-site-plugin-3.9.0.jar
      ...
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:181)
      	... 21 more
      Caused by: java.lang.NoSuchMethodError: 'java.lang.Object org.codehaus.plexus.util.xml.Xpp3Dom.getInputLocation()'
      	at org.codehaus.plexus.util.xml.Xpp3DomUtils.mergeIntoXpp3Dom(Xpp3DomUtils.java:138)
      	at org.codehaus.plexus.util.xml.Xpp3DomUtils.mergeIntoXpp3Dom(Xpp3DomUtils.java:191)
      	at org.codehaus.plexus.util.xml.Xpp3DomUtils.mergeXpp3Dom(Xpp3DomUtils.java:234)
      	at org.apache.maven.reporting.exec.DefaultMavenReportExecutor.mergeConfiguration(DefaultMavenReportExecutor.java:493)
      	at org.apache.maven.reporting.exec.DefaultMavenReportExecutor.prepareReportExecution(DefaultMavenReportExecutor.java:317)
      	at org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildReportPlugin(DefaultMavenReportExecutor.java:187)
      	at org.apache.maven.reporting.exec.DefaultMavenReportExecutor.buildMavenReports(DefaultMavenReportExecutor.java:152)
      	at org.apache.maven.plugins.site.render.AbstractSiteRenderingMojo.getReports(AbstractSiteRenderingMojo.java:253)
      	at org.apache.maven.plugins.site.render.SiteMojo.execute(SiteMojo.java:119)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      	... 21 more
      

      This can be reproduced with 3.0.5 up to 3.6.0.

      Versions 3.6.1, 3.6.2 and 3.6.3 are working fine.

      This means using maven-site-plugin 3.9.0 only working with Maven 3.6.1+
      ...in contradiction to the site[1] which says it is requirement 3.0..

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              hboutemy Herve Boutemy
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: