Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Fedora Development Java (http://www.linux-archive.org/fedora-development-java/)
-   -   Patching Maven pom.xml files (http://www.linux-archive.org/fedora-development-java/678071-patching-maven-pom-xml-files.html)

Mikolaj Izdebski 06-28-2012 11:07 AM

Patching Maven pom.xml files
 
Hello,

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:
https://fedoraproject.org/wiki/User:Akurtakov/JavaPackagingDraftUpdate#Patching_Maven_pom.xml_fi 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
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel

Mikolaj Izdebski 06-28-2012 01:18 PM

Patching Maven pom.xml files
 
Just as an example, have a look at:
http://pastebin.com/tXY6b6B1

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

MikoĊ‚aj
--
java-devel mailing list
java-devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/java-devel


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.