public class PluginParameterExpressionEvaluator extends Object implements org.codehaus.plexus.component.configurator.expression.TypeAwareExpressionEvaluator
${
and }
is evaluated.
Recognized values are:
expression | evaluation result | |
---|---|---|
session | the actual MavenSession | |
session.* | (since Maven 3) | |
localRepository | MavenSession.getLocalRepository() | |
reactorProjects | MavenSession.getProjects() | |
repositorySystemSession | (since Maven 3) | MavenSession.getRepositorySession() |
project | MavenSession.getCurrentProject() | |
project.* | ||
pom.* | (since Maven 3) | same as project.* |
executedProject | MavenProject.getExecutionProject() | |
settings | MavenSession.getSettings() | |
settings.* | ||
basedir | MavenSession.getExecutionRootDirectory() or
System.getProperty( "user.dir" ) if null | |
mojoExecution | the actual MojoExecution | |
mojo | (since Maven 3) | same as mojoExecution |
mojo.* | (since Maven 3) | |
plugin | (since Maven 3) | MojoExecution.getMojoDescriptor() .getPluginDescriptor() |
plugin.* | ||
* | system properties | |
* | project properties |
reports
was supported in Maven 2.x but was removed in Maven 3MavenSession
,
MojoExecution
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
File |
alignToBaseDirectory(File file) |
Object |
evaluate(String expr) |
Object |
evaluate(String expr,
Class<?> type) |
@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
in interface 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
in interface org.codehaus.plexus.component.configurator.expression.TypeAwareExpressionEvaluator
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.