This is an automated email from the ASF dual-hosted git repository. cstamas pushed a commit to branch maven-3.9.x in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/maven-3.9.x by this push: new 66266e5315 [MNG-8140] Always tell why model was discarded as "invalid" (#1555) 66266e5315 is described below commit 66266e53156fded27f25d1de8532087cdb6dad13 Author: Tamas Cservenak <ta...@cservenak.net> AuthorDate: Thu Jun 6 21:07:44 2024 +0200 [MNG-8140] Always tell why model was discarded as "invalid" (#1555) The info is there, but we redirect user to rinse-repeat in debug mode, that that creates a TON of output. All is there, just tell why. --- https://issues.apache.org/jira/browse/MNG-8140 --- .../apache/maven/internal/aether/LoggingRepositoryListener.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java b/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java index 8f3e5e08fd..9a19bbddd2 100644 --- a/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java +++ b/maven-core/src/main/java/org/apache/maven/internal/aether/LoggingRepositoryListener.java @@ -96,12 +96,7 @@ class LoggingRepositoryListener extends AbstractRepositoryListener { buffer.append("The POM for "); buffer.append(event.getArtifact()); buffer.append(" is invalid, transitive dependencies (if any) will not be available"); - - if (logger.isDebugEnabled()) { - logger.warn(buffer + ": " + event.getException().getMessage()); - } else { - logger.warn(buffer + ", enable debug logging for more details"); - } + logger.warn(buffer + ": " + event.getException().getMessage()); } @Override