Bug 1383583

Summary: XMvn fails to convert pom.xml with parent to ivy.xml
Product: Red Hat Software Collections Reporter: Mikolaj Izdebski <mizdebsk>
Component: xmvnAssignee: Mikolaj Izdebski <mizdebsk>
Status: CLOSED ERRATA QA Contact: Jan Kepler <jkejda>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rh-maven33CC: jkejda, msimacek, trepik
Target Milestone: alphaKeywords: Patch
Target Release: 2.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rh-maven33-xmvn-2.1.1-1.20.el7 rh-maven33-xmvn-2.1.1-1.20.el6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-26 10:16:08 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:
Attachments:
Description Flags
Proposed patch
none
Reproducer none

Description Mikolaj Izdebski 2016-10-11 07:02:23 UTC
XMvn in rh-maven33 is affected by a bug that breaks conversion of Maven pom.xml to ivy.xml.  The bug makes it almost impossible to build Ivy projects with rh-maven33 XMvn.

The bug was introduced introduced in XMvn 2.1.1 and fixed in XMvn 2.3.0.

https://github.com/fedora-java/xmvn/commit/794f69a86efbaec6eff718376d853e8788046f07
https://github.com/fedora-java/xmvn/commit/7a356cb46f8bd2c26576f6484ce0142764c7c0ea

Comment 2 Mikolaj Izdebski 2016-10-11 07:59:43 UTC
Created attachment 1209034 [details]
Proposed patch

Comment 5 Mikolaj Izdebski 2017-02-17 14:24:13 UTC
Created attachment 1252452 [details]
Reproducer

Before running tests the following packages must be installed:
rh-maven33-ivy-local rh-java-common-easymock3

Steps to reproduce:
tar xf reproducer-rhbz1383583.tar.gz
cd ./reproducer-rhbz1383583/
./run-reproducer

Expected result:
output contains "OK (1 test)"
output contains "|      default     |   1   |   1   |   0   |   0   ||   1   |   1   |"
output does NOT contain "java.io.IOException: Impossible to load parent for"
output does NOT contain "FAILURES!!!"
exit code == 0

Comment 8 errata-xmlrpc 2017-04-26 10:16:08 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1154