Uploaded image for project: 'Maven Dependency Plugin'
  1. Maven Dependency Plugin
  2. MDEP-773

Getting Warning : Non-test scoped test only dependencies found

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Duplicate
    • 3.2.0
    • None
    • analyze
    • None
    • Windows 10

    Description

      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.

       

      Attachments

        1. demo.zip
          76 kB
          Venkata Ramana Gujja

        Activity

          People

            Unassigned Unassigned
            gvramana0412 Venkata Ramana Gujja
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: