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


##########
maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java:
##########
@@ -160,7 +160,9 @@ public DependencyResolutionResult 
resolve(DependencyResolutionRequest request)
             result.setCollectionErrors(e.getResult().getExceptions());
 
             throw new DependencyResolutionException(
-                    result, "Could not resolve dependencies for project " + 
project.getId() + ": " + e.getMessage(), e);
+                    result,
+                    "Could not collect dependencies for project " + 
project.getId(),
+                    logger.isDebugEnabled() ? e : null);

Review Comment:
   This is one of the reasons led me to DOXIASITETOOLS-303....



##########
maven-core/src/main/java/org/apache/maven/project/DefaultProjectDependenciesResolver.java:
##########
@@ -160,7 +160,9 @@ public DependencyResolutionResult 
resolve(DependencyResolutionRequest request)
             result.setCollectionErrors(e.getResult().getExceptions());
 
             throw new DependencyResolutionException(
-                    result, "Could not resolve dependencies for project " + 
project.getId() + ": " + e.getMessage(), e);
+                    result,
+                    "Could not collect dependencies for project " + 
project.getId(),
+                    logger.isDebugEnabled() ? e : null);

Review Comment:
   This is one of the reasons led me to 
[DOXIASITETOOLS-303](https://issues.apache.org/jira/browse/DOXIASITETOOLS-303)....



-- 
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