Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17716

Configure maven-dependency-plugin to use ignoredUnusedDeclaredDependencies parameter

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Detail
    • Resolution: Fixed
    • Affects Version/s: 7.3
    • Fix Version/s: 7.4
    • Component/s: Infrastructure

      Description

      Since maven-dependency-plugin 2.10, the new parameter ignoredUnusedDeclaredDependencies allows to "list the dependencies that will be ignored if they are declared but unused".
      The current parameter usedDependencies ("Force dependencies as used, to override incomplete result caused by bytecode-level analysis") will raise an issue in some cases:

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-dependency-plugin:2.8:analyze (default-cli) on project nuxeo-template-rendering-samples: Cannot analyze dependencies: Trying to force use of dependencies which are declared but already detected as used: [junit:junit] -> [Help 1]

      Upgrade to maven-dependency-plugin:2.10, replace usedDependencies with ignoredUnusedDeclaredDependencies and check it fixes the issue in nuxeo-template-rendering-samples

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: