michael-o commented on code in PR #1502:
URL: https://github.com/apache/maven/pull/1502#discussion_r1593508817


##########
maven-core/src/main/java/org/apache/maven/plugin/version/internal/DefaultPluginVersionResolver.java:
##########
@@ -261,8 +291,12 @@ private boolean isCompatible(PluginVersionRequest request, 
String version) {
 
         try {
             pluginManager.checkPrerequisites(pluginDescriptor);
-        } catch (Exception e) {
-            logger.warn("Ignoring incompatible plugin version {}", version, e);
+        } catch (PluginIncompatibleException e) {
+            if (logger.isDebugEnabled()) {
+                logger.warn("Ignoring incompatible plugin version {}: {}", 
version, e.getMessage(), e);

Review Comment:
   This looks duplicate when you pass `e` already.



-- 
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-unsubscr...@maven.apache.org

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

Reply via email to