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

Dependency needed for running tests incorrectly identified as Unused Dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0
    • None
    • analyze
    • None

    Description

      In a project which uses something like mockrunner that requires some other jars to run the tests, those dependencies are listed as "Unused dependencies" even though the scope is set to "test".

      <!-- referenced in test code -->
      <dependency>
        <groupId>com.mockrunner</groupId>
        <artifactId>mockrunner</artifactId>
        <version>0.4</version>
        <scope>test</scope>
      </dependency>
      
      <!-- needed for test execution, but not referenced in code -->
      <dependency>
        <groupId>jboss</groupId>
        <artifactId>jboss-j2ee</artifactId>
        <version>4.0.2</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.mockejb</groupId>
        <artifactId>mockejb</artifactId>
        <version>0.6-beta2</version>
        <scope>test</scope>
      </dependency>
      

      Attachments

        Issue Links

          Activity

            People

              brianf Brian E Fox
              ben.lidgey Ben Lidgey
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: