Bug 1121231

Summary: maven-javadoc-plugin: NoSuchMethodError with new maven-doxia 1.6 in Rawhide
Product: [Fedora] Fedora Reporter: Gerard Ryan <fedora>
Component: maven-javadoc-pluginAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: high    
Version: rawhideCC: java-sig-commits, mat.booth, mizdebsk, sochotni
Target Milestone: ---Keywords: EasyFix, Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 2.9.1-10 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-20 08:27:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1120854    
Attachments:
Description Flags
Patch none

Description Gerard Ryan 2014-07-18 17:18:53 UTC
In Rawhide, there appears to be a compatibility issue with the version of maven-javadoc-plugin that we have, and new maven-doxia that was build yesterday:

> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:aggregate (default-cli) on project openshift-java-client: Execution default-cli of goal org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:aggregate failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-javadoc-plugin:2.9.1:aggregate: java.lang.NoSuchMethodError: org.apache.maven.doxia.siterenderer.sink.SiteRendererSink.<init>(Lorg/apache/maven/doxia/sink/render/RenderingContext;)V

For examples, see:
http://koji.fedoraproject.org/koji/taskinfo?taskID=7161430
and
http://koji.fedoraproject.org/koji/taskinfo?taskID=7160197

Thanks,
Gerard.

Comment 1 Roland Grunberg 2014-07-18 18:34:30 UTC
Created attachment 919155 [details]
Patch

The attached patch fixed things for me. The location of RenderingContext has changed from :

org.apache.maven.doxia.sink.render.RenderingContext to org.apache.maven.doxia.siterenderer.RenderingContext.

Comment 2 Gerard Ryan 2014-07-18 21:56:09 UTC
(In reply to Roland Grunberg from comment #1)
> Created attachment 919155 [details]
> Patch
> 
> The attached patch fixed things for me. The location of RenderingContext has
> changed from :
> 
> org.apache.maven.doxia.sink.render.RenderingContext to
> org.apache.maven.doxia.siterenderer.RenderingContext.

Patch works for me, thanks.

Comment 3 Mikolaj Izdebski 2014-07-20 08:16:06 UTC
Fixed in maven-javadoc-plugin-2.9.1-10

Comment 4 Mikolaj Izdebski 2014-07-20 08:27:07 UTC
I believe that this bug is fixed in maven-javadoc-plugin-2.9.1-10,
which is available in Fedora Rawhide, so I am closing this bug now.

The build containing the fix can be found at Koji:
http://koji.fedoraproject.org/koji/buildinfo?buildID=545949