Bug 857856

Summary: jacoco build failing in koji rawhide
Product: [Fedora] Fedora Reporter: Krzysztof Daniel <kdaniel>
Component: maven-plugin-toolsAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: java-sig-commits, jcapik, mbenitez, mizdebsk, tradej, yyang
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-09-17 09:51:00 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:
Attachments:
Description Flags
Patch proposition none

Description Krzysztof Daniel 2012-09-17 09:16:05 UTC
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.8.1:jar (attach-javadocs) on project jacoco-maven-plugin: MavenReportException: Error while creating archive: Unable to resolve artifact:groupId = 'org.apache.maven.plugin-tools'
[ERROR] artifactId = 'maven-plugin-tools-javadoc'
[ERROR] version = '2.8': Missing:
[ERROR] ----------
[ERROR] 1) org.easytesting:fest-assert:jar:1.4
[ERROR] 
[ERROR] Try downloading the file manually from the project website.

Comment 1 Krzysztof Daniel 2012-09-17 09:16:49 UTC
Created attachment 613596 [details]
Patch proposition

Adds missing BR/R.

Comment 2 Mikolaj Izdebski 2012-09-17 09:51:00 UTC
fest-assert is only a test dependency of maven-plugin-tools and as such it's not (and it won't be) included in Requires.

The problem is in the jococo package itself. jococo has a custom configuration for maven-javadoc-plugin and maven-javadoc-plugin is pulling in all test dependencies of all dependant artifacts.

The solution is to modify configuration of maven-javadoc-plugin or remove the plugin invocation entirely. I suggest adding somethink like that to jococo.spec:
  %pom_remove_plugin :maven-javadoc-plugin

Stanislav has another solution. Quoting him:
sochotni: kdaniel: http://maven.apache.org/plugins/maven-javadoc-plugin/examples/aggregate-dependency-sources.html
sochotni: kdaniel: try to exclude fest-assert with dependencySourceExcludes
sochotni: but generally you can probably remove the whole m-javadoc-p invocation, we generate javadocs separately
sochotni: worst case they won't be so nicely integrated
sochotni: but if you want to integrate them...I suggest adding BR for fest-assert (should help)

This is not a bug in maven-plugin-tools, so closing it now.