maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <>
Subject [jira] Updated: (MCHANGES-88) NoSuchMethodError with maven 2.0.8 when generating changes-report
Date Wed, 06 Feb 2008 02:18:28 GMT


Niall Pemberton updated MCHANGES-88:

    Attachment: MCHANGES-88-Fix-NoSuchMethodError.patch

The problem seems to be that the createSink() method was removed from org.apache.maven.doxia.siterenderer.Renderer
in revision 358449:

I checked out the "Project Info" reports to see if they could be run individually as well
- which they can and looking at the maven-project-info-reports-plugin - it has its own execute()
method in AbstractProjectInfoReport which all the reports in that plugin use.

I'm attaching a patch which copies the AbstractProjectInfoReport into the changes plugin,
renames it (to AbstractChangesReport) and modifies the changes and jira reports (confirmed
this has the same issue) to use that abstract implementation. This seems resolves the issue.

Running the JIRA report failed if the target directory didn't exist - so I also added code
to fix that.

In case my patch for the copied/modified AbstractProjectInfoReport  doesn't work properly,
I'm attaching a full copy of it as well (btw I copied the last 2.0.1 release version of AbstractProjectInfoReport)

> NoSuchMethodError with maven 2.0.8 when generating changes-report
> -----------------------------------------------------------------
>                 Key: MCHANGES-88
>                 URL:
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Bug
>          Components: changes-report
>    Affects Versions: 2.0-beta-3
>         Environment: julien@jgr-pc:/opt/nc/workspace/test_maven$ mvn -version
> Maven version: 2.0.8
> Java version: 1.6.0_03
> OS name: "linux" version: "2.6.18-5-686" arch: "i386" Family: "unix"
>            Reporter: Julien Graglia
>         Attachments:, changes.log,, error.log,
MCHANGES-88-Fix-NoSuchMethodError.patch, pom.xml, site.log
> I create a simple maven2 project, but when i call
> mvn -X -e changes:changes-report
> I get an error (full log in attachment)
> java.lang.NoSuchMethodError: org.apache.maven.doxia.siterenderer.Renderer.createSink(Ljava/io/File;Ljava/lang/String;)Lorg/apache/maven/doxia/siterenderer/sink/SiteRendererSink;
>         at org.apache.maven.reporting.AbstractMavenReport.execute(
>         at org.apache.maven.plugin.DefaultPluginManager.executeMojo(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message