Class MavenModelDependencyManagement
- java.lang.Object
- org.springframework.boot.cli.compiler.dependencies.MavenModelDependencyManagement
- All Implemented Interfaces:
DependencyManagement
- Direct Known Subclasses:
SpringBootDependenciesDependencyManagement
public class MavenModelDependencyManagement extends Object implements DependencyManagement
DependencyManagement
derived from a MavenModel
.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description MavenModelDependencyManagement(org.apache.maven.model.Model model)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Dependency
find(String artifactId)
Finds the managed dependency with the givenartifactId
.List<Dependency>
getDependencies()
Returns the managed dependencies.String
getSpringBootVersion()
Returns the managed version of Spring Boot.
Constructor Detail
MavenModelDependencyManagement
public MavenModelDependencyManagement(org.apache.maven.model.Model model)
Method Detail
getDependencies
public List<Dependency> getDependencies()
Description copied from interface:DependencyManagement
Returns the managed dependencies.- Specified by:
getDependencies
in interfaceDependencyManagement
- Returns:
- the managed dependencies
getSpringBootVersion
public String getSpringBootVersion()
Description copied from interface:DependencyManagement
Returns the managed version of Spring Boot. May benull
.- Specified by:
getSpringBootVersion
in interfaceDependencyManagement
- Returns:
- the Spring Boot version, or
null
find
public Dependency find(String artifactId)
Description copied from interface:DependencyManagement
Finds the managed dependency with the givenartifactId
.- Specified by:
find
in interfaceDependencyManagement
- Parameters:
artifactId
- The artifact ID of the dependency to find- Returns:
- the dependency, or
null