Skip to content

[MDEP-773] Getting Warning : Non-test scoped test only dependencies found #1280

Description

@jira-importer

Venkata Ramana Gujja opened MDEP-773 and commented

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.

 


Affects: 3.2.0

Attachments:

2 votes, 5 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:criticalCrashes, loss of data, severe memory leak

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions