public class Dependencies extends Object
| Constructor and Description | 
|---|
| Dependencies(org.apache.maven.project.MavenProject project,
            DependencyNode dependencyTreeNode,
            JarClassesAnalysis classesAnalyzer)Default constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| List<Artifact> | getAllDependencies() | 
| Map<String,List<Artifact>> | getDependenciesByScope(boolean isTransitively) | 
| File | getFile(Artifact artifact)get the artifact's file, with detection of target/classes directory with already packaged jar available. | 
| JarData | getJarDependencyDetails(Artifact artifact) | 
| org.apache.maven.project.MavenProject | getProject()Getter for the project | 
| List<Artifact> | getProjectDependencies() | 
| List<Artifact> | getTransitiveDependencies() | 
| boolean | hasDependencies() | 
public Dependencies(org.apache.maven.project.MavenProject project,
            DependencyNode dependencyTreeNode,
            JarClassesAnalysis classesAnalyzer)
project - the MavenProject.dependencyTreeNode - the DependencyNode.classesAnalyzer - the JarClassesAnalysis.public org.apache.maven.project.MavenProject getProject()
public boolean hasDependencies()
true if getProjectDependencies() is not empty, false otherwise.public List<Artifact> getProjectDependencies()
Artifact from the project.public List<Artifact> getTransitiveDependencies()
Artifact from the project.public List<Artifact> getAllDependencies()
Artifact returned by the dependency tree.public Map<String,List<Artifact>> getDependenciesByScope(boolean isTransitively)
isTransitively - true to return transitive dependencies, false otherwise.Artifact as values.Artifact.SCOPE_COMPILE, 
Artifact.SCOPE_PROVIDED, 
Artifact.SCOPE_RUNTIME, 
Artifact.SCOPE_SYSTEM, 
Artifact.SCOPE_TESTpublic JarData getJarDependencyDetails(Artifact artifact) throws IOException
artifact - the artifact.IOException - if anyCopyright © 2005–2015 The Apache Software Foundation. All rights reserved.