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