Sometimes it's useful to modify pom.xml files by replacing parts of it, for example like this: # Replace plexus-maven-plugin with plexus-component-metadata find -name 'pom.xml' -exec sed \ -i 's/<artifactId>plexus-maven-plugin<\/artifactId>/<artifactId>plexus-component-metadata<\/artifactId>/' '{}' ';' Should be possible with something like: %pom_xpath_replace pom:artifactId plexus-component-metadata Currently this is partially possible with pom_xpath_remove & pom_xpath_inject duo but a dedicated replacement macro would be able to simplify certain operations
Implemented in upstream.
I believe that this bug is fixed in javapackages-tools-0.12.0-1, which is available in Fedora Rawhide. I am closing the bug now, thank you for reporting it. A summary of changes is included below. * Fri Feb 15 2013 Mikolaj Izdebski <mizdebsk> - 0.12.0-1 - Update to upstream version 0.12.0 - Implement new pom macros: xpath_replace and xpath_set - Remove Support-local-depmaps.patch (accepted upstream)