@Component(role=MavenReportExecutor.class) public class DefaultMavenReportExecutor extends Object implements MavenReportExecutor
该组件MavenReportExecution
将从MavenReportExecutorRequest
. 如果 a
MavenReport
需要分叉一个生命周期,则在此处执行此分叉。它将要求核心获取一些信息以便正确设置MavenReport
。
注意如果报告插件中没有定义版本,将使用
resolvePluginVersion(...)
方法搜索版本:
PluginVersionResolver
获得后备版本(显示警告,因为它不推荐使用)。
完成以下步骤:
PluginDescriptor
(MavenPluginManager
通过
MavenPluginManagerHelper.getPluginDescriptor(...)
以防止核心 API 更改)ClassLoader
,将站点插件类加载器作为报表执行的父级。IMPORTS
. 相应的工件被排除在工件分辨率之外doxia-site-renderer
:doxia-sink-api
和maven-reporting-api
。MavenPluginManager
(通过
MavenPluginManagerHelper.setupPluginRealm(...)
防止核心 API 更改)完成工作MavenPluginManager.getConfiguredMojo(...)
LifecycleExecutor.calculateForkedExecutions(...)
是否需要任何分叉执行:如果是,请在此处执行分叉执行修饰符和类型 | 字段和说明 |
---|---|
protected org.apache.maven.lifecycle.LifecycleExecutor |
lifecycleExecutor |
protected org.apache.maven.plugin.MavenPluginManager |
mavenPluginManager |
protected MavenPluginManagerHelper |
mavenPluginManagerHelper |
protected org.apache.maven.plugin.version.PluginVersionResolver |
pluginVersionResolver |
构造函数和描述 |
---|
DefaultMavenReportExecutor() |
修饰符和类型 | 方法及说明 |
---|---|
List<MavenReportExecution> |
buildMavenReports(MavenReportExecutorRequest mavenReportExecutorRequest)
MavenReport 如有必要,构建s,以及相关的分叉执行。 |
protected List<MavenReportExecution> |
buildReportPlugin(MavenReportExecutorRequest mavenReportExecutorRequest,
org.apache.maven.reporting.exec.ReportPlugin reportPlugin) |
protected String |
resolvePluginVersion(org.apache.maven.reporting.exec.ReportPlugin reportPlugin,
MavenReportExecutorRequest mavenReportExecutorRequest)
解决报告插件版本。
|
@Requirement protected org.apache.maven.plugin.MavenPluginManager mavenPluginManager
@Requirement protected MavenPluginManagerHelper mavenPluginManagerHelper
@Requirement protected org.apache.maven.lifecycle.LifecycleExecutor lifecycleExecutor
@Requirement protected org.apache.maven.plugin.version.PluginVersionResolver pluginVersionResolver
public List<MavenReportExecution> buildMavenReports(MavenReportExecutorRequest mavenReportExecutorRequest) throws org.apache.maven.plugin.MojoExecutionException
MavenReportExecutor
MavenReport
如有必要,构建s,以及相关的分叉执行。buildMavenReports
在界面中 MavenReportExecutor
mavenReportExecutorRequest
- 请求org.apache.maven.plugin.MojoExecutionException
- 关于报告执行问题protected List<MavenReportExecution> buildReportPlugin(MavenReportExecutorRequest mavenReportExecutorRequest, org.apache.maven.reporting.exec.ReportPlugin reportPlugin) throws Exception
Exception
protected String resolvePluginVersion(org.apache.maven.reporting.exec.ReportPlugin reportPlugin, MavenReportExecutorRequest mavenReportExecutorRequest) throws org.apache.maven.plugin.version.PluginVersionResolutionException
null
如果找到非值,则
在每个步骤之后停止查找插件版本的步骤:PluginVersionResolver
获得后备版本并显示警告,因为它不推荐使用。reportPlugin
- 解决版本的报告插件mavenReportExecutorRequest
- 当前报表执行上下文org.apache.maven.plugin.version.PluginVersionResolutionException
- 关于插件版本解析问题版权所有 © 2002–2022 Apache 软件基金会。版权所有。