Bug 987084

Summary: jacoco: Depmap file is installed in wrong subpackage
Product: [Fedora] Fedora Reporter: Mikolaj Izdebski <mizdebsk>
Component: jacocoAssignee: Krzysztof Daniel <kdaniel>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: akurtako, kdaniel, mbenitez
Target Milestone: ---Keywords: Patch
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-22 20:06:21 UTC Type: ---
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: 985674, 985682    
Attachments:
Description Flags
Proposed patch
none
Proposed patch none

Description Mikolaj Izdebski 2013-07-22 16:40:27 UTC
Description of problem:
Depmap file for maven-plugin is installed in the main package.  Because of that the main package provides mvn(org.jacoco:jacoco-maven-plugin) virtual package, but the actual plugin is not installed there.  This breaks auto-requires.

Reproducer:
repoquery -f 'mvn(org.jacoco:jacoco-maven-plugin)'

Expected result:
jacoco-maven-plugin-0:0.6.3-2.fc20.noarch

Actual result:
jacoco-0:0.6.3-2.fc20.noarch

Version-Release number of selected component (if applicable):
0.6.3-2

Additional info:
[1] http://fedoraproject.org/wiki/Packaging:Java
[2] http://fedoraproject.org/wiki/Packaging:Guidelines

Comment 1 Krzysztof Daniel 2013-07-22 18:26:40 UTC
Frankly speaking, I have no idea how to fix this.
jacoco-maven-plugin lists two files
%{_javadir}/jacoco-maven-plugin.jar
%{_mavenpomdir}/JPP-jacoco-maven-plugin.pom

main package has
%{_mavendepmapfragdir}/%{name}
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavenpomdir}/JPP.%{name}-org.jacoco.agent.rt.pom
%{_mavenpomdir}/JPP.%{name}-org.jacoco.ant.pom
%{_mavenpomdir}/JPP.%{name}-org.jacoco.agent.pom
%{_mavenpomdir}/JPP.%{name}-org.jacoco.core.pom
%{_mavenpomdir}/JPP.%{name}-org.jacoco.report.pom

I really have no clue why jacoco-maven-plugin is listed as a part of the main package.

Comment 2 Mikolaj Izdebski 2013-07-22 18:31:04 UTC
Because Maven fragment file is installed as part of the main package.
You need to use separeate fragment file for plugin artifact.

Comment 3 Mikolaj Izdebski 2013-07-22 18:31:19 UTC
Created attachment 777006 [details]
Proposed patch

Comment 4 Mikolaj Izdebski 2013-07-22 18:32:41 UTC
Created attachment 777007 [details]
Proposed patch