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

Analyze incorrectly warns that junit is test only when it is a compile time dependency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.2.0
    • None
    • analyze
    • None
    • Important

    Description

      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)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              john.camerin John Camerin
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: