From decc43e8fa4fd0f0503d0bf6e93aa89077964b900ce88b7ca50fd5964240a40e Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 10 Mar 2022 20:14:28 +0000 Subject: [PATCH 1/2] OBS-URL: https://build.opensuse.org/package/show/Java:packages/antlr-maven-plugin?expand=0&rev=4 --- antlr-maven-plugin.spec | 6 ++++-- new-reporting-api.patch | 15 +++++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 new-reporting-api.patch diff --git a/antlr-maven-plugin.spec b/antlr-maven-plugin.spec index 09dea59..412e3cf 100644 --- a/antlr-maven-plugin.spec +++ b/antlr-maven-plugin.spec @@ -1,7 +1,7 @@ # # spec file for package antlr-maven-plugin # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -30,8 +30,10 @@ Patch0: maven-antlr-plugin-2.2-modello-issue.patch Patch2: maven-antlr-plugin-2.1-sinkfix.patch # Fix grammar processing bug (bz 1020312) Patch3: 0001-MANTLR-34-Fix-NPE-when-building-Jenkins.patch +Patch4: new-reporting-api.patch BuildRequires: fdupes BuildRequires: maven-local +BuildRequires: unzip BuildRequires: mvn(org.apache.commons:commons-exec) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven.reporting:maven-reporting-impl) @@ -42,7 +44,6 @@ BuildRequires: mvn(org.codehaus.modello:modello-maven-plugin) BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:) BuildRequires: mvn(org.codehaus.plexus:plexus-i18n) BuildRequires: mvn(org.codehaus.plexus:plexus-utils) -BuildRequires: unzip BuildArch: noarch %description @@ -63,6 +64,7 @@ This package contains the API documentation for %{name}. %patch0 -p1 -b .modello %patch2 -b .sink %patch3 -p1 -b .fixnpe +%patch4 -p1 # 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" " diff --git a/new-reporting-api.patch b/new-reporting-api.patch new file mode 100644 index 0000000..e541889 --- /dev/null +++ b/new-reporting-api.patch @@ -0,0 +1,15 @@ +--- antlr-maven-plugin-2.2/src/main/java/org/codehaus/mojo/antlr/AntlrHtmlReport.java 2010-11-16 16:59:34.000000000 +0100 ++++ antlr-maven-plugin-2.2/src/main/java/org/codehaus/mojo/antlr/AntlrHtmlReport.java 2022-03-10 21:12:43.366027036 +0100 +@@ -128,6 +128,12 @@ + arguments.add( "-html" ); + } + ++ public void generate( ++ final org.apache.maven.doxia.sink.Sink sink, ++ final Locale locale) throws MavenReportException { ++ generate( (Sink) sink, locale); ++ } ++ + /** + * @see org.apache.maven.reporting.MavenReport#generate(org.codehaus.doxia.sink.Sink, java.util.Locale) + */ From 6329ae5b7603c2d34bf38cdf340b1483c5dedf961992369e52094fb5a05be98a Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 11 Mar 2022 07:10:55 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/Java:packages/antlr-maven-plugin?expand=0&rev=5 --- antlr-maven-plugin.changes | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/antlr-maven-plugin.changes b/antlr-maven-plugin.changes index f98f548..ad21e4f 100644 --- a/antlr-maven-plugin.changes +++ b/antlr-maven-plugin.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Fri Mar 11 07:10:16 UTC 2022 - Fridrich Strba + +- Added patch: + * new-reporting-api.patch + + fix building with the new maven-reporting-api + ------------------------------------------------------------------- Fri Apr 5 14:50:16 UTC 2019 - Fridrich Strba