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 <[email protected]>
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());

Reply via email to