You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Elliotte Rusty Harold (Jira)" <ji...@apache.org> on 2021/06/18 18:57:00 UTC

[jira] [Resolved] (MDEP-754) Analyze incorrectly warns that junit is test only when it is a compile time dependency

     [ https://issues.apache.org/jira/browse/MDEP-754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Elliotte Rusty Harold resolved MDEP-754.
----------------------------------------
    Resolution: Duplicate

dupe of MDEP-753 

> Analyze incorrectly warns that junit is test only when it is a compile time dependency
> --------------------------------------------------------------------------------------
>
>                 Key: MDEP-754
>                 URL: https://issues.apache.org/jira/browse/MDEP-754
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: analyze
>    Affects Versions: 3.2.0
>         Environment: Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T14:33:14-04:00)
> Maven home: /usr/local/Cellar/maven/3.5.4/libexec
> Java version: 1.8.0_144, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"
>            Reporter: John Camerin
>            Priority: Major
>
> A java module with some test utilities which decorate junit and therefore has a compile time dependency on junit.  Using dependency plugin 3.2.0 and running dependency:analyze results in a warning 
> [*WARNING*] Non-test scoped test only dependencies found:
> [*WARNING*]    junit:junit:jar:4.13.2:compile
> When I change the scope to test, compile fails (confirming it is a compile dependency). 
> Previously using 3.1.2 of the dependency plugin works correctly (does not warn)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)