You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kw...@apache.org on 2023/04/11 20:39:35 UTC

[maven] 01/01: Improve error message for deprecated core expressions

This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch improve-deprecated-core-expression-message
in repository https://gitbox.apache.org/repos/asf/maven.git

commit 483d84a39a4648652bcef643a8af46eddd88d919
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Tue Apr 11 22:39:24 2023 +0200

    Improve error message for deprecated core expressions
---
 .../maven/plugin/internal/DeprecatedCoreExpressionValidator.java      | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/maven-core/src/main/java/org/apache/maven/plugin/internal/DeprecatedCoreExpressionValidator.java b/maven-core/src/main/java/org/apache/maven/plugin/internal/DeprecatedCoreExpressionValidator.java
index 0eea6f92a..dbd05929f 100644
--- a/maven-core/src/main/java/org/apache/maven/plugin/internal/DeprecatedCoreExpressionValidator.java
+++ b/maven-core/src/main/java/org/apache/maven/plugin/internal/DeprecatedCoreExpressionValidator.java
@@ -40,7 +40,7 @@ class DeprecatedCoreExpressionValidator extends AbstractMavenPluginParametersVal
     private static final HashMap<String, String> DEPRECATED_CORE_PARAMETERS;
 
     private static final String ARTIFACT_REPOSITORY_REASON =
-            "Avoid use of ArtifactRepository type. If you need access to local repository, switch to '${repositorySystemSession}' expression and get LRM from it instead.";
+            "Avoid use of ArtifactRepository type. If you need access to local repository, switch to expression '${repositorySystemSession}' and get LRM from it instead.";
 
     static {
         HashMap<String, String> deprecatedCoreParameters = new HashMap<>();
@@ -51,7 +51,7 @@ class DeprecatedCoreExpressionValidator extends AbstractMavenPluginParametersVal
 
     @Override
     protected String getParameterLogReason(Parameter parameter) {
-        return "is deprecated core expression; " + DEPRECATED_CORE_PARAMETERS.get(parameter.getDefaultValue());
+        return "is leveraging a deprecated core expression: " + DEPRECATED_CORE_PARAMETERS.get(parameter.getDefaultValue());
     }
 
     @Override