public interface ProjectBuildingRequest
修饰符和类型 | 接口和说明 |
---|---|
static class |
ProjectBuildingRequest.RepositoryMerging
合并远程存储库的可能合并模式。
|
ProjectBuildingRequest setLocalRepository(ArtifactRepository localRepository)
ArtifactRepository getLocalRepository()
ProjectBuildingRequest setRemoteRepositories(List<ArtifactRepository> remoteRepositories)
List<ArtifactRepository> getRemoteRepositories()
ProjectBuildingRequest setPluginArtifactRepositories(List<ArtifactRepository> pluginArtifactRepositories)
List<ArtifactRepository> getPluginArtifactRepositories()
ProjectBuildingRequest setSystemProperties(Properties systemProperties)
System.getProperties()
和环境变量中收集的。systemProperties
- 系统属性,可能是null
.null
。Properties getSystemProperties()
System.getProperties()
和环境变量中收集的。null
。ProjectBuildingRequest setUserProperties(Properties userProperties)
-Dkey=value
命令行上的参数。userProperties
- 用户属性,可能是null
.null
。Properties getUserProperties()
-Dkey=value
命令行上的参数。null
。void setProject(MavenProject mavenProject)
MavenProject getProject()
ProjectBuildingRequest setProcessPlugins(boolean processPlugins)
boolean isProcessPlugins()
ProjectBuildingRequest setResolveDependencies(boolean resolveDependencies)
boolean isResolveDependencies()
ProjectBuildingRequest setValidationLevel(int validationLevel)
validationLevel
- 对已处理模型执行的验证级别,例如
ModelBuildingRequest.VALIDATION_LEVEL_STRICT
。null
。int getValidationLevel()
void addProfile(Profile profile)
Profile
来自外部源的。这可能来自自定义配置,如 MavenCLI settings.xml 文件,或来自 IDE 集成中的自定义对话框,如 M2Eclipse。profile
-Date getBuildStartTime()
null
未知。void setBuildStartTime(Date buildStartTime)
buildStartTime
- 构建的开始时间,可能是null
.org.eclipse.aether.RepositorySystemSession getRepositorySession()
ProjectBuildingRequest setRepositorySession(org.eclipse.aether.RepositorySystemSession repositorySession)
ProjectBuildingRequest setRepositoryMerging(ProjectBuildingRequest.RepositoryMerging mode)
mode
- 存储库合并模式,不得为null
.null
。setRemoteRepositories(List)
ProjectBuildingRequest.RepositoryMerging getRepositoryMerging()
null
。@Deprecated boolean isResolveVersionRanges()
@Deprecated ProjectBuildingRequest setResolveVersionRanges(boolean value)
版权所有 © 2001–2022 Apache 软件基金会。版权所有。