Linux Archive

Linux Archive (
-   Fedora Development Java (
-   -   Patching Maven pom.xml files (

Mikolaj Izdebski 06-28-2012 11:07 AM

Patching Maven pom.xml files

recently a few new RPM macros that ease patching pom.xml files
were introduced. Instead of creating and maintaining series of
traditional patches you can now call %pom_* macros directly from
the %prep section. These macros are described in
/etc/rpm/macros.fjava, which is installed with
javapackages-tools. There is also some guidance on usage of
these macros included in the draft of Java packaging guidelines,
available at: les

Feel free to use these macros in your packages. For now this
feature is available in Fedora Rawhide only, but there are plans
on backporting it to Fedora 16 and 17. If you find any bugs or
have any suggestions, please report them (here, on IRC or in
Bugzilla -- javapackages-tools component).

Mikolaj Izdebski
java-devel mailing list

Mikolaj Izdebski 06-28-2012 01:18 PM

Patching Maven pom.xml files
Just as an example, have a look at:

That's one of packages converted from traditional patches to the new
%pom_ macros. I think that purity of this solution speaks for itself.

java-devel mailing list

All times are GMT. The time now is 07:09 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.