[ 
http://jira.codehaus.org/browse/MCHANGES-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_122702
 ] 

Niall Pemberton commented on MCHANGES-88:
-----------------------------------------

Even when you get a compatible verson of maven-reporting-impl released it is 
still going to throw an exception though - just it will be a 
MojoExecutionException saying "Reporting mojo's can only be called from 
ReportDocumentRender" rather than a NoSuchMethodError.

http://svn.apache.org/repos/asf/maven/shared/trunk/maven-reporting-impl/src/main/java/org/apache/maven/reporting/AbstractMavenReport.java

If thats considered correct maven practice and what this plugin will do once 
you get a maven-reporting-impl release then you may as well just implement an 
execute method that throws that exception now.

But if however  the report should work standalone though, then copying MPIR is 
the solution.



> NoSuchMethodError with maven 2.0.8 when generating changes-report
> -----------------------------------------------------------------
>
>                 Key: MCHANGES-88
>                 URL: http://jira.codehaus.org/browse/MCHANGES-88
>             Project: Maven 2.x Changes Plugin
>          Issue Type: Bug
>          Components: changes-report
>    Affects Versions: 2.0-beta-3
>         Environment: [EMAIL PROTECTED]:/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: AbstractChangesReport.java, changes.log, changes.zip, 
> 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(AbstractMavenReport.java:63)
>         at 
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
>         at 
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to