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

Non-test scoped and transitive dependencies in compile scope

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Invalid
    • 3.2.0, 3.3.0
    • None
    • analyze
    • None

    Description

      When we use some dependency in test classes which is not used in production code but is required as transitive dependency for other used in production code - such dependency should not be included in Non-test scoped.

      Example:

      • test code use ObjectCodec from jackson-core
      • production code use only ObjectMapper from jackson-databind
      • production code don't use any classes from jackson-core

      jackson-core is needed by jackson-databind and must by in compile scope so should not be reported as Non-test scoped

       

      Attachments

        1. MDEP-791.zip
          3 kB
          Slawomir Jaranowski

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sjaranowski Slawomir Jaranowski
              Votes:
              15 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: