Red Hat Bugzilla – Bug 998322
javapackages-tools: add_pom_dep_mgmt injects incorrect xml
Last modified: 2013-10-10 10:52:02 EDT
Created attachment 787875 [details]
Patch against upstream repository to fix add_pom_dep_mgmt macro
Description of problem:
The add_pom_dep_mgmt macro does not inject the correct xml into the pom file, since it does not include "dependencies" in the xpath when doing the injection.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Use the add_pom_dep_mgmt macro in an RPM spec file.
RPM build will fail since the pom file is incorrect. The "dependency" node is injected right after the "dependencyManagement" node in the pom file.
The dependency gets injected inside the "dependencies" node which is under the "dependencyManagement" node.
Thanks for the patch, this was indeed a bug. Commited upstream. It might take a while before new realease, but you can workaround this bug by using "pom_xpath_inject" if really needed.
(un?)fortunately add_pom_dep_mgmnt is needed very rarely so it wasn't very well tested.
This bug appears to have been reported against 'rawhide' during the Fedora 20 development cycle.
Changing version to '20'.
More information and reason for this action is here:
Fixed in javapackages-tools-3.3.1-1
I believe that this bug is fixed in javapackages-tools-3.3.1-1,
which is available in Fedora 20, so I am closing this bug now.
The build containing the fix can be found at Koji: