-
Type: Improvement
-
Status: Resolved
-
Priority: Detail
-
Resolution: Fixed
-
Affects Version/s: 7.3
-
Fix Version/s: 7.4
-
Component/s: Infrastructure
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
- depends on
-
NXP-17269 Configure dependency:analyze-report to ignore some mandatory dependencies
- Resolved