Bug 1235679

Summary: xmvn-builddep: unused artifact with scope provided in output
Product: [Fedora] Fedora Reporter: Michael Simacek <msimacek>
Component: xmvnAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: java-sig-commits, mat.booth, mizdebsk, msimacek, msrb
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-13 10:48:26 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:

Description Michael Simacek 2015-06-25 13:41:01 UTC
Description of problem:
There's an artifact in the output that shouldn't be there (it was removed, but is still required with scope provided).

Version-Release number of selected component (if applicable):
xmvn-2.5.0-0.57.gitecfe4f5.noarch (from jenkins repo)

How reproducible:
always

Steps to Reproduce:
1. rebuild https://msimacek.fedorapeople.org/maven-surefire-2.18.1-1.fc21.src.rpm
2. run xmvn-builddep on the result

Actual results:
There is this artifact in the output:
BuildRequires:  mvn(org.apache.maven.plugins:maven-surefire-plugin:zip:site-source:)
It was originally part of the reactor, but I removed the plugin which created it. There's still a module that has requires on it with scope provided, but it built so the artifact isn't actually used.

Expected results:
The artifact shouldn't be there.

Comment 1 Mikolaj Izdebski 2015-07-13 06:43:29 UTC
Michael, can you provide test case for this?

Comment 2 Michael Simacek 2015-07-13 10:48:26 UTC
My bad, the artifact was actually available due to circular dependency. xmvn-builddep was right, it was resolved during the build