类 MavenModelDependencyManagement
- java.lang.Object
- org.springframework.boot.cli.compiler.dependencies.MavenModelDependencyManagement
- 所有已实现的接口:
DependencyManagement
public class MavenModelDependencyManagement extends Object implements DependencyManagement
DependencyManagement
derived from a MavenModel
.- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 MavenModelDependencyManagement(org.apache.maven.model.Model model)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
构造器详细资料
MavenModelDependencyManagement
public MavenModelDependencyManagement(org.apache.maven.model.Model model)
方法详细资料
getDependencies
public List<Dependency> getDependencies()
从接口复制的说明:DependencyManagement
Returns the managed dependencies.- 指定者:
getDependencies
在接口中DependencyManagement
- 返回:
- the managed dependencies
getSpringBootVersion
public String getSpringBootVersion()
从接口复制的说明:DependencyManagement
Returns the managed version of Spring Boot. May benull
.- 指定者:
getSpringBootVersion
在接口中DependencyManagement
- 返回:
- the Spring Boot version, or
null
find
public Dependency find(String artifactId)
从接口复制的说明:DependencyManagement
Finds the managed dependency with the givenartifactId
.- 指定者:
find
在接口中DependencyManagement
- 参数:
artifactId
- the artifact ID of the dependency to find- 返回:
- the dependency, or
null