You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "gnodet (via GitHub)" <gi...@apache.org> on 2023/04/05 11:41:54 UTC

[GitHub] [maven] gnodet commented on a diff in pull request #1079: [MNG-7754] Improvement and extension of plugin validation

gnodet commented on code in PR #1079:
URL: https://github.com/apache/maven/pull/1079#discussion_r1158396413


##########
maven-core/src/main/java/org/apache/maven/plugin/internal/DefaultPluginValidationManager.java:
##########
@@ -70,8 +72,12 @@ private ValidationLevel validationLevel(RepositorySystemSession session) {
         try {
             return ValidationLevel.valueOf(level.toUpperCase(Locale.ENGLISH));
         } catch (IllegalArgumentException e) {
-            throw new IllegalArgumentException(
-                    "Invalid value specified for property " + MAVEN_PLUGIN_VALIDATION_KEY + ": '" + level + "'", e);
+            logger.warn(
+                    "Invalid value specified for property '{}': '{}'. Supported values are (case insensitive): {}",

Review Comment:
   You meant _before_ the column ?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org