public class MojoDescriptor extends org.codehaus.plexus.component.repository.ComponentDescriptor<Mojo> implements Cloneable
修饰符和类型 | 字段和说明 |
---|---|
static String |
MAVEN_PLUGIN
Plexus 组件类型
|
static String |
MULTI_PASS_EXEC_STRATEGY
“总是”执行策略
|
static String |
SINGLE_PASS_EXEC_STRATEGY
“每会话一次”执行策略
|
构造函数和描述 |
---|
MojoDescriptor()
默认构造函数。
|
addRequirement, getAlias, getComponentComposer, getComponentConfigurator, getComponentFactory, getComponentProfile, getConfiguration, getDescription, getHumanReadableKey, getImplementation, getImplementationClass, getInstantiationStrategy, getLifecycleHandler, getRealm, getRequirements, getRoleClass, getVersion, hasConfiguration, isIsolatedRealm, setAlias, setComponentComposer, setComponentConfigurator, setComponentFactory, setComponentProfile, setComponentType, setConfiguration, setDescription, setImplementation, setImplementationClass, setInstantiationStrategy, setIsolatedRealm, setLifecycleHandler, setRealm, setRole, setRoleClass, setRoleHint, setVersion, toString
public static final String SINGLE_PASS_EXEC_STRATEGY
public String getLanguage()
java
public void setLanguage(String language)
language
- 新语言public String getDeprecated()
true
如果 Mojo 已被弃用,false
否则。public void setDeprecated(String deprecated)
deprecated
-true
弃用 Mojo,false
否则。public void setParameters(List<Parameter> parameters) throws DuplicateParameterException
parameters
- 新的参数列表DuplicateParameterException
- 如果有的话public void addParameter(Parameter parameter) throws DuplicateParameterException
parameter
- 添加一个新参数DuplicateParameterException
- 如果有的话public void setDependencyResolutionRequired(String requiresDependencyResolution)
requiresDependencyResolution
- 指定范围内的新必需依赖项public String getDependencyResolutionRequired()
@Deprecated public String isDependencyResolutionRequired()
public void setDependencyCollectionRequired(String requiresDependencyCollection)
public String getDependencyCollectionRequired()
null
如果没有。public void setProjectRequired(boolean requiresProject)
requiresProject
-true
如果 Mojo 需要执行 Maven 项目,false
否则。public boolean isProjectRequired()
true
如果 Mojo 需要执行 Maven 项目,false
否则。public void setOnlineRequired(boolean requiresOnline)
requiresOnline
-true
如果 Mojo 在线,false
否则。public boolean isOnlineRequired()
true
如果 Mojo 在线,false
否则。public boolean requiresOnline()
true
如果 Mojo 在线,false
否则。public String getPhase()
public void setPhase(String phase)
phase
- Mojo的新绑定阶段名称public String getSince()
public void setSince(String since)
since
- 将 Mojo 添加到 API 时的新版本public String getGoal()
public void setGoal(String goal)
goal
- Mojo 的新目标名称public String getExecutePhase()
public void setExecutePhase(String executePhase)
executePhase
- Mojo 的新调用阶段public boolean alwaysExecute()
true
如果 Mojoalways
用于executionStrategy
public String getExecutionStrategy()
public void setExecutionStrategy(String executionStrategy)
executionStrategy
- 新的执行策略public org.codehaus.plexus.configuration.PlexusConfiguration getMojoConfiguration()
public void setMojoConfiguration(org.codehaus.plexus.configuration.PlexusConfiguration mojoConfiguration)
mojoConfiguration
- 新的 mojo 配置public String getRole()
getRole
在班上 org.codehaus.plexus.component.repository.ComponentDescriptor<Mojo>
public String getRoleHint()
getRoleHint
在班上 org.codehaus.plexus.component.repository.ComponentDescriptor<Mojo>
public String getId()
public String getFullGoalName()
PluginDescriptor.getGoalPrefix()
,
getGoal()
public String getComponentType()
getComponentType
在班上 org.codehaus.plexus.component.repository.ComponentDescriptor<Mojo>
public PluginDescriptor getPluginDescriptor()
public void setPluginDescriptor(PluginDescriptor pluginDescriptor)
pluginDescriptor
- 新的插件描述符public boolean isInheritedByDefault()
true
如果 Mojo 是继承的,false
否则。public void setInheritedByDefault(boolean inheritedByDefault)
inheritedByDefault
-true
如果 Mojo 是继承的,false
否则。public boolean equals(Object object)
equals
在班上 org.codehaus.plexus.component.repository.ComponentDescriptor<Mojo>
public int hashCode()
hashCode
在班上 org.codehaus.plexus.component.repository.ComponentDescriptor<Mojo>
public String getExecuteLifecycle()
public void setExecuteLifecycle(String executeLifecycle)
executeLifecycle
- Mojo 的新调用生命周期public void setAggregator(boolean aggregator)
aggregator
-true
如果 Mojo 使用 Maven 项目及其子模块,
false
否则。public boolean isAggregator()
true
如果 Mojo 使用 Maven 项目及其子模块,
false
否则。public boolean isDirectInvocationOnly()
true
如果不能直接调用 Mojo,false
否则。public void setDirectInvocationOnly(boolean directInvocationOnly)
directInvocationOnly
-true
如果不能直接调用 Mojo,
false
否则。public boolean isRequiresReports()
true
如果 Mojo 需要运行报告,false
否则。public void setRequiresReports(boolean requiresReports)
requiresReports
-true
如果 Mojo 需要运行报告,false
否则。public void setExecuteGoal(String executeGoal)
executeGoal
- Mojo的新调用目标public String getExecuteGoal()
public boolean isThreadSafe()
Mojo
是线程安全的并且可以安全地并行运行,则为真public void setThreadSafe(boolean threadSafe)
threadSafe
- 表示 mojo 是线程安全的,可以安全地并行运行public boolean isForking()
true
如果这个 mojo 分叉了一个目标或生命周期,false
否则。public MojoDescriptor clone()
版权所有 © 2001–2022 Apache 软件基金会。版权所有。