On Tue, Feb 15, 2022 at 5:53 PM Slawomir Jaranowski <s.jaranow...@gmail.com> wrote:
> Simply the problem is that dependencies present as transitive for any > dependency in compile scope should be not reported as "Non-test scoped". > So we should check if dependency listed as "Non-test scoped" are not > present as transitive dependency for other used in compile scope. > Can you elaborate on that? It seems to me that a normal unflattened pom.xml should not declare transitive dependencies. In fact it's pretty important that it not do so. For instance, if A's src/test depend on Guava but A's src/java does not depend on Guava, then A should only declare a test scope dependency on Guava, even if it also depends on something else at compile time that does depend on Guava. -- Elliotte Rusty Harold elh...@ibiblio.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org For additional commands, e-mail: dev-h...@maven.apache.org