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
DependencyManagementderived 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 Dependencyfind(String artifactId)Finds the managed dependency with the givenartifactId.List<Dependency>getDependencies()Returns the managed dependencies.StringgetSpringBootVersion()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:DependencyManagementReturns the managed dependencies.- Specified by:
getDependenciesin interfaceDependencyManagement- Returns:
- the managed dependencies
getSpringBootVersion
public String getSpringBootVersion()
Description copied from interface:DependencyManagementReturns the managed version of Spring Boot. May benull.- Specified by:
getSpringBootVersionin interfaceDependencyManagement- Returns:
- the Spring Boot version, or
null
find
public Dependency find(String artifactId)
Description copied from interface:DependencyManagementFinds the managed dependency with the givenartifactId.- Specified by:
findin interfaceDependencyManagement- Parameters:
artifactId- The artifact ID of the dependency to find- Returns:
- the dependency, or
null