[ 
https://issues.apache.org/jira/browse/MDEP-773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17429159#comment-17429159
 ] 

Pierre Viret commented on MDEP-773:
-----------------------------------

We have the same problem while trying to upgrade to java 17. Unfortunately it 
is not even possible to workaround this by disabling this check for some 
dependencies: 
[<ignoredDependencies>|http://maven.apache.org/plugins/maven-dependency-plugin/analyze-only-mojo.html#ignoredDependencies]
 and other similar config properties do not help in this case. The only think  
we can do is set the "failOnWarning" property to false for the projects which 
hit this bug.

> Getting Warning : Non-test scoped test only dependencies found
> --------------------------------------------------------------
>
>                 Key: MDEP-773
>                 URL: https://issues.apache.org/jira/browse/MDEP-773
>             Project: Maven Dependency Plugin
>          Issue Type: Bug
>          Components: analyze
>    Affects Versions: 3.2.0
>         Environment: Windows 10
>            Reporter: Venkata Ramana Gujja
>            Priority: Critical
>         Attachments: demo.zip
>
>
> I am getting below warning even after I have declared the dependency in 
> pom.xml. I am  executing the command mvn dependency:analyze. I am using 
> @Autowired Java class from spring beans in a JUnit test.
> [WARNING] Non-test scoped test only dependencies found:
> [WARNING] org.springframework:spring-beans:jar:5.3.10:compile
>  
> I have declared below dependency in pom.xml
> <dependency>
> <groupId>org.springframework</groupId>
> <artifactId>spring-beans</artifactId>
> <version>5.3.10</version>
> </dependency>
>  
> I have attached demo maven project.
>  



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

Reply via email to