[antlr-maven-plugin] Add dependency exclusion for antlr (#911054)

Stanislav Ochotnicky sochotni at fedoraproject.org
Mon Mar 4 09:13:14 UTC 2013


commit 43abcfb8d181383559b1cf25ce0580e78b2b518e
Author: Stanislav Ochotnicky <sochotnicky at redhat.com>
Date:   Mon Mar 4 10:04:18 2013 +0100

    Add dependency exclusion for antlr (#911054)

 antlr-maven-plugin.spec |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/antlr-maven-plugin.spec b/antlr-maven-plugin.spec
index 4c3d189..539d5ad 100644
--- a/antlr-maven-plugin.spec
+++ b/antlr-maven-plugin.spec
@@ -1,6 +1,6 @@
 Name:			antlr-maven-plugin
 Version:		2.2
-Release:		8%{?dist}
+Release:		9%{?dist}
 Summary:		Maven plugin that generates files based on grammar file(s)
 License:		ASL 2.0
 URL:			http://mojo.codehaus.org/antlr-maven-plugin/
@@ -67,6 +67,13 @@ This package contains the API documentation for %{name}.
 %patch0 -p1 -b .modello
 %patch2 -p1 -b .sink
 
+# reporting eventually pulls in another antlr and we'd break with weird errors
+%pom_xpath_inject "pom:dependency[pom:artifactId[text()='maven-reporting-impl']]/pom:exclusions" "
+        <exclusion>
+            <groupId>antlr</groupId>
+            <artifactId>antlr</artifactId>
+        </exclusion>"
+
 # remove all binary bits
 find -name '*.class' -exec rm -f '{}' \;
 find -name '*.jar' -exec rm -f '{}' \;
@@ -97,6 +104,9 @@ install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
 %{_javadocdir}/%{name}
 
 %changelog
+* Mon Mar 04 2013 Stanislav Ochotnicky <sochotnicky at redhat.com> - 2.2-9
+- Add dependency exclusion for antlr (#911054)
+
 * Wed Feb 13 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2-8
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
 


More information about the scm-commits mailing list