Interface ProjectDependencyAnalyzer
- All Known Implementing Classes:
DefaultProjectDependencyAnalyzer
public interface ProjectDependencyAnalyzer
Analyze a project's declared dependencies and effective classes used to find which artifacts are:
- used and declared,
- used but not declared,
- not used but declared.
- used but declared in too broad a scope
- Author:
- Mark Hobson
-
Method Summary
Modifier and TypeMethodDescriptiondefault ProjectDependencyAnalysis
analyze
(org.apache.maven.project.MavenProject project) analyze.analyze
(org.apache.maven.project.MavenProject project, Collection<String> excludedClasses) analyze.
-
Method Details
-
analyze
default ProjectDependencyAnalysis analyze(org.apache.maven.project.MavenProject project) throws ProjectDependencyAnalyzerException analyze.
- Parameters:
project
- aMavenProject
object- Returns:
- a
ProjectDependencyAnalysis
object - Throws:
ProjectDependencyAnalyzerException
- if any
-
analyze
ProjectDependencyAnalysis analyze(org.apache.maven.project.MavenProject project, Collection<String> excludedClasses) throws ProjectDependencyAnalyzerException analyze.
- Parameters:
project
- aMavenProject
objectexcludedClasses
- collection of regular expression of classes name to exclude- Returns:
- a
ProjectDependencyAnalysis
object - Throws:
ProjectDependencyAnalyzerException
- if any
-