You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by kw...@apache.org on 2022/06/24 07:25:09 UTC

[sling-maven-enforcer-rules] branch master updated: add some debug logging

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

kwin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-maven-enforcer-rules.git


The following commit(s) were added to refs/heads/master by this push:
     new f96daa5  add some debug logging
f96daa5 is described below

commit f96daa5164fefa3860278a6428648549cd3d15f4
Author: Konrad Windszus <kw...@apache.org>
AuthorDate: Fri Jun 24 09:25:03 2022 +0200

    add some debug logging
---
 .../org/apache/sling/maven/enforcer/RequireExplicitDependencyScope.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/main/java/org/apache/sling/maven/enforcer/RequireExplicitDependencyScope.java b/src/main/java/org/apache/sling/maven/enforcer/RequireExplicitDependencyScope.java
index 89e280a..7188924 100644
--- a/src/main/java/org/apache/sling/maven/enforcer/RequireExplicitDependencyScope.java
+++ b/src/main/java/org/apache/sling/maven/enforcer/RequireExplicitDependencyScope.java
@@ -51,6 +51,7 @@ public class RequireExplicitDependencyScope extends AbstractNonCacheableEnforcer
             List<Dependency> dependencies = project.getOriginalModel().getDependencies(); // this is the non-effective model but the original one without inheritance and interpolation resolved
             // check scope without considering inheritance
             for (Dependency dependency : dependencies) {
+                helper.getLog().debug("Found dependency " + dependency);
                 if (dependency.getScope() == null) {
                     MessageBuilder msgBuilder = MessageUtils.buffer();
                     helper.getLog().warn(msgBuilder.a("Dependency ").strong(dependency.getManagementKey()).a(" does not have an explicit scope defined!").toString());