Package org.apache.maven.plugin
Class PluginParameterExpressionEvaluator
java.lang.Object
org.apache.maven.plugin.PluginParameterExpressionEvaluator
- All Implemented Interfaces:
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator
,org.codehaus.plexus.component.configurator.expression.TypeAwareExpressionEvaluator
public class PluginParameterExpressionEvaluator
extends Object
implements org.codehaus.plexus.component.configurator.expression.TypeAwareExpressionEvaluator
Evaluator for plugin parameters expressions. Content surrounded by
Notice:
${
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.* | ||
* | user properties | |
* | project properties | |
* | system properties |
reports
was supported in Maven 2.x but was removed in Maven 3- Author:
- Jason van Zyl
- See Also:
-
Constructor Summary
ConstructorDescriptionPluginParameterExpressionEvaluator
(MavenSession session, MojoExecution mojoExecution) PluginParameterExpressionEvaluator
(MavenSession session, MojoExecution mojoExecution, PathTranslator pathTranslator, org.codehaus.plexus.logging.Logger logger, MavenProject project, Properties properties) Deprecated. -
Method Summary
-
Constructor Details
-
PluginParameterExpressionEvaluator
@Deprecated public PluginParameterExpressionEvaluator(MavenSession session, MojoExecution mojoExecution, PathTranslator pathTranslator, org.codehaus.plexus.logging.Logger logger, MavenProject project, Properties properties) Deprecated. -
PluginParameterExpressionEvaluator
-
PluginParameterExpressionEvaluator
-
-
Method Details
-
evaluate
public Object evaluate(String expr) throws org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException - Specified by:
evaluate
in interfaceorg.codehaus.plexus.component.configurator.expression.ExpressionEvaluator
- Throws:
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException
-
evaluate
public Object evaluate(String expr, Class<?> type) throws org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException - Specified by:
evaluate
in interfaceorg.codehaus.plexus.component.configurator.expression.TypeAwareExpressionEvaluator
- Throws:
org.codehaus.plexus.component.configurator.expression.ExpressionEvaluationException
-
alignToBaseDirectory
- Specified by:
alignToBaseDirectory
in interfaceorg.codehaus.plexus.component.configurator.expression.ExpressionEvaluator
-