Class ProjectDependencyAnalysis
java.lang.Object
org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalysis
Project dependencies analysis result.
- Version:
- $Id$
- Author:
- Mark Hobson
-
Constructor Summary
ConstructorsConstructorDescriptionProjectDependencyAnalysis
(Set<org.apache.maven.artifact.Artifact> usedDeclaredArtifacts, Set<org.apache.maven.artifact.Artifact> usedUndeclaredArtifacts, Set<org.apache.maven.artifact.Artifact> unusedDeclaredArtifacts) -
Method Summary
Modifier and TypeMethodDescriptionboolean
forceDeclaredDependenciesUsage
(String[] forceUsedDependencies) Force use status of some declared dependencies, to manually fix consequences of bytecode-level analysis which happens to not detect some effective use (constants, annotation with source-retention, javadoc).Set<org.apache.maven.artifact.Artifact>
Unused but declared artifacts.Set<org.apache.maven.artifact.Artifact>
Used and declared artifacts.Set<org.apache.maven.artifact.Artifact>
Used but not declared artifacts.int
hashCode()
Filter not-compile scoped artifacts from unused declared.toString()
-
Constructor Details
-
ProjectDependencyAnalysis
public ProjectDependencyAnalysis() -
ProjectDependencyAnalysis
-
-
Method Details
-
getUsedDeclaredArtifacts
Used and declared artifacts.- Returns:
Artifact
-
getUsedUndeclaredArtifacts
Used but not declared artifacts.- Returns:
Artifact
-
getUnusedDeclaredArtifacts
Unused but declared artifacts.- Returns:
Artifact
-
ignoreNonCompile
Filter not-compile scoped artifacts from unused declared.- Returns:
- updated project dependency analysis
- Since:
- 1.3
-
forceDeclaredDependenciesUsage
public ProjectDependencyAnalysis forceDeclaredDependenciesUsage(String[] forceUsedDependencies) throws ProjectDependencyAnalyzerException Force use status of some declared dependencies, to manually fix consequences of bytecode-level analysis which happens to not detect some effective use (constants, annotation with source-retention, javadoc).- Parameters:
forceUsedDependencies
- dependencies to move from "unused-declared" to "used-declared", withgroupId:artifactId
format- Returns:
- updated project dependency analysis
- Throws:
ProjectDependencyAnalyzerException
- if dependencies forced were either not declared or already detected as used- Since:
- 1.3
-
hashCode
public int hashCode() -
equals
-
toString
-