From 80613690e3dccbbf1b543bb2ebbf0a3cbb38152b Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Mon, 24 Feb 2025 19:52:03 +0100 Subject: [PATCH] Avoid using deprecated items --- pom.xml | 11 ++--------- .../cmd-property-substituion/invoker.properties | 2 +- .../ExtendedStringSearchModelInterpolator.java | 4 ++-- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/pom.xml b/pom.xml index 9de12b4d..f7cb798a 100644 --- a/pom.xml +++ b/pom.xml @@ -232,15 +232,8 @@ maven-checkstyle-plugin - org.apache.maven.plugins - maven-compiler-plugin - - - org.eclipse.sisu - org.eclipse.sisu.inject - 0.9.0.M3 - - + org.eclipse.sisu + sisu-maven-plugin diff --git a/src/it/projects/cmd-property-substituion/invoker.properties b/src/it/projects/cmd-property-substituion/invoker.properties index 98eeef73..c92d3a12 100644 --- a/src/it/projects/cmd-property-substituion/invoker.properties +++ b/src/it/projects/cmd-property-substituion/invoker.properties @@ -1,4 +1,4 @@ #does not work for some reason of invoker #invoker.mavenOpts = -Dcmd.test.property=MagicValue42 -invoker.systemPropertiesFile = invoker.properties +invoker.userPropertiesFile = invoker.properties cmd.test.property = MagicValue42 \ No newline at end of file diff --git a/src/main/java/org/codehaus/mojo/flatten/extendedinterpolation/ExtendedStringSearchModelInterpolator.java b/src/main/java/org/codehaus/mojo/flatten/extendedinterpolation/ExtendedStringSearchModelInterpolator.java index f733759a..ba799c6a 100644 --- a/src/main/java/org/codehaus/mojo/flatten/extendedinterpolation/ExtendedStringSearchModelInterpolator.java +++ b/src/main/java/org/codehaus/mojo/flatten/extendedinterpolation/ExtendedStringSearchModelInterpolator.java @@ -11,11 +11,11 @@ import org.apache.maven.model.Model; import org.apache.maven.model.building.ModelBuildingRequest; import org.apache.maven.model.building.ModelProblemCollector; -import org.apache.maven.model.interpolation.StringSearchModelInterpolator; +import org.apache.maven.model.interpolation.StringVisitorModelInterpolator; import org.codehaus.plexus.interpolation.ValueSource; @Named -public class ExtendedStringSearchModelInterpolator extends StringSearchModelInterpolator +public class ExtendedStringSearchModelInterpolator extends StringVisitorModelInterpolator implements ExtendedModelInterpolator { private static final List NOT_INTERPOLATABLES = Stream.of(