public class PluginParameterExpressionEvaluator extends Object implements org.codehaus.plexus.component.configurator.expression.TypeAwareExpressionEvaluator
${
被和包围的内容}
被评估。公认的价值观是:
表达 | 评价结果 | |
---|---|---|
session | 实际上MavenSession | |
session.* | (从 Maven 3 开始) | |
localRepository | MavenSession.getLocalRepository() | |
reactorProjects | MavenSession.getProjects() | |
repositorySystemSession | (从 Maven 3 开始) | MavenSession.getRepositorySession() |
project | MavenSession.getCurrentProject() | |
project.* | ||
pom.* | (从 Maven 3 开始) | 与...一样project.* |
executedProject | MavenProject.getExecutionProject() | |
settings | MavenSession.getSettings() | |
settings.* | ||
basedir | MavenSession.getExecutionRootDirectory() 或者
System.getProperty( "user.dir" ) 如果为空 | |
mojoExecution | 实际上MojoExecution | |
mojo | (从 Maven 3 开始) | 与...一样mojoExecution |
mojo.* | (从 Maven 3 开始) | |
plugin | (从 Maven 3 开始) | MojoExecution.getMojoDescriptor() .getPluginDescriptor() |
plugin.* | ||
* | 系统属性 | |
* | 项目属性 |
reports
在 Maven 2.x 中受支持,但在 Maven 3 中被删除MavenSession
,
MojoExecution
构造函数和描述 |
---|
PluginParameterExpressionEvaluator(MavenSession session) |
PluginParameterExpressionEvaluator(MavenSession session,
MojoExecution mojoExecution) |
PluginParameterExpressionEvaluator(MavenSession session,
MojoExecution mojoExecution,
PathTranslator pathTranslator,
org.codehaus.plexus.logging.Logger logger,
MavenProject project,
Properties properties)
已弃用。
|
@Deprecated public PluginParameterExpressionEvaluator(MavenSession session, MojoExecution mojoExecution, PathTranslator pathTranslator, org.codehaus.plexus.logging.Logger logger, MavenProject project, Properties properties)
public PluginParameterExpressionEvaluator(MavenSession session)
public PluginParameterExpressionEvaluator(MavenSession session, MojoExecution mojoExecution)
public Object evaluate(String expr) throws org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException
evaluate
在界面中 org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException
public Object evaluate(String expr, Class<?> type) throws org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException
evaluate
在界面中 org.codehaus.plexus.component.configurator.expression.TypeAwareExpressionEvaluator
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException
版权所有 © 2001–2022 Apache 软件基金会。版权所有。