[ 
https://issues.apache.org/jira/browse/MPIR-471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17899731#comment-17899731
 ] 

Peter Hull commented on MPIR-471:
---------------------------------

Thanks for the swift resolution. To help anyone else, this needs to be done in 
the <build> section and not (as I originally tried) in the <reporting> section.

This worked for me
{noformat}
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-site-plugin</artifactId>
                <version>3.21.0</version>
            </plugin>
....
        </plugins>
    </build>{noformat}

> 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.7.0, 3.8.0
>         Environment: Windows 11 professional, JDK21, Apache Maven 3.9.9
>            Reporter: Peter Hull
>            Priority: Major
>         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