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

Add analyze parameter "ignoreUnusedRuntime"

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.0
    • analyze
    • None

    Description

      Typical output when analyzing the maven-archetype-plugin:

      [WARNING] Unused declared dependencies found:
      [WARNING] org.apache.ivy:ivy:jar:2.5.0:runtime

      However since this is needed at runtime, possibly via reflection, it seems likely that it is used but the dependency analyzer can't figure this out.

      Confirm and consider whether the plugin should simply never report runtime dependencies as unused.

      This is tricky because it's certainly possible that a runtime dependency is unused, but in practice it seems more likely than not to be a false positive.

      Attachments

        Activity

          People

            michael-o Michael Osipov
            elharo Elliotte Rusty Harold
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: