Peter Hull created MPIR-471:
-------------------------------

             Summary: NoSuchMethodError when running from mvn site
                 Key: MPIR-471
                 URL: https://issues.apache.org/jira/browse/MPIR-471
             Project: Maven Project Info Reports Plugin
          Issue Type: Bug
          Components: plugins
    Affects Versions: 3.8.0, 3.7.0
         Environment: Windows 11 professional, JDK21, Apache Maven 3.9.9
            Reporter: Peter Hull
         Attachments: modified-pom.xml, original-pom.xml

If I run {{mvn site }}I get an error which looks like it comes from this plugin.
{noformat}
[INFO] Generating "Maven Coordinates" report --- 
maven-project-info-reports-plugin:3.8.0:dependency-info
[WARNING] An issue has occurred with 
maven-project-info-reports-plugin:3.8.0:dependency-info report, skipping 
LinkageError 'void org.apache.maven.doxia.sink.Sink.verbatim()', please report 
an issue to Maven dev team.
java.lang.NoSuchMethodError: 'void org.apache.maven.doxia.sink.Sink.verbatim()'
    at org.apache.maven.reporting.AbstractMavenReportRenderer.verbatimText 
(AbstractMavenReportRenderer.java:346)
    at 
org.apache.maven.report.projectinfo.DependencyInformationReport$DependencyInformationRenderer.renderDependencyInfo
 (DependencyInformationReport.java:217)
 {noformat}
I've got a minimal pom.xml which will do this (attached)

I can prevent the error by adding to that POM:
{noformat}
<reporting>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-project-info-reports-plugin</artifactId>
            <version>3.6.2</version>
        </plugin>
    </plugins>
</reporting>
{noformat}
I'm not a maven expert but happy to provide more info as required.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to