From ecd4aaccd162e6fe4438ba9a1f116cef2a33c562 Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Mon, 22 Jul 2019 13:59:02 +0200 Subject: [PATCH] Port to modello 1.11 --- 0005-Port-to-modello-version-1.11.patch | 50 +++++++++++++++++++++++++ maven.spec | 8 +++- 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 0005-Port-to-modello-version-1.11.patch diff --git a/0005-Port-to-modello-version-1.11.patch b/0005-Port-to-modello-version-1.11.patch new file mode 100644 index 0000000..b39a11e --- /dev/null +++ b/0005-Port-to-modello-version-1.11.patch @@ -0,0 +1,50 @@ +From 092d1d07a61517ed9c460874934c9e0f3e9aef9b Mon Sep 17 00:00:00 2001 +From: Marian Koncek +Date: Wed, 3 Jul 2019 09:54:14 +0200 +Subject: [PATCH] Port to modello version 1.11 + +--- + .../model/interpolation/StringSearchModelInterpolator.java | 6 ++++++ + pom.xml | 2 +- + 2 files changed, 7 insertions(+), 1 deletion(-) + +diff --git a/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringSearchModelInterpolator.java b/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringSearchModelInterpolator.java +index 25982cd..e0a575f 100644 +--- a/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringSearchModelInterpolator.java ++++ b/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/StringSearchModelInterpolator.java +@@ -19,6 +19,7 @@ package org.apache.maven.model.interpolation; + * under the License. + */ + ++import org.apache.maven.model.InputLocation; + import org.apache.maven.model.Model; + import org.apache.maven.model.building.ModelBuildingRequest; + import org.apache.maven.model.building.ModelProblem.Severity; +@@ -220,6 +221,11 @@ public class StringSearchModelInterpolator + return false; + } + ++ if ( InputLocation.class.equals( fieldType ) ) ++ { ++ return false; ++ } ++ + //noinspection SimplifiableIfStatement + if ( fieldType.isPrimitive() ) + { +diff --git a/pom.xml b/pom.xml +index 90c236d..49f3e76 100644 +--- a/pom.xml ++++ b/pom.xml +@@ -59,7 +59,7 @@ under the License. + 3.3.2 + 1.4 + 1.7 +- 1.10.0 ++ 1.11 + 1.3 + 1.3.3 + 1.7.25 +-- +2.20.1 + diff --git a/maven.spec b/maven.spec index 2598853..4da1729 100644 --- a/maven.spec +++ b/maven.spec @@ -5,7 +5,7 @@ Name: maven Epoch: 1 Version: 3.6.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Java project management and project comprehension tool # maven itself is ASL 2.0 # bundled slf4j is MIT @@ -23,6 +23,8 @@ Patch1: 0001-Adapt-mvn-script.patch Patch2: 0002-Invoke-logback-via-reflection.patch Patch3: 0003-MNG-6642-Revert-MNG-5995-Remove-dependency-to-maven-.patch Patch4: 0004-Use-non-shaded-HTTP-wagon.patch +# TODO Should not be needed after 3.6.1 +Patch5: 0005-Port-to-modello-version-1.11.patch BuildRequires: maven-local BuildRequires: %{?module_prefix}mvn(com.google.inject:guice::no_aop:) @@ -119,6 +121,7 @@ Core part of Apache Maven that can be used as a library. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 # not really used during build, but a precaution find -name '*.jar' -not -path '*/test/*' -delete @@ -232,6 +235,9 @@ update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alt %changelog +* Wed Jul 03 2019 Marian Koncek - 1:3.6.1-5 +- Port to modello version 1.11 + * Thu May 30 2019 Mikolaj Izdebski - 1:3.6.1-4 - Backport upstream fix for Tycho P2 integarion