@Mojo(name="bsh-property", defaultPhase=VALIDATE, threadSafe=true) public class BeanshellPropertyMojo extends AbstractDefinePropertyMojo
project
: the actual Maven project,session
: the executing MavenSession
,settings
: the executing Settings
.Modifier and Type | Field and Description |
---|---|
private org.apache.maven.execution.MavenSession |
mavenSession
The Maven Session.
|
private java.lang.String[] |
properties
List of property names to get from script context after execution.
|
private org.apache.maven.settings.Settings |
settings
The Maven Settings.
|
private java.lang.String |
source |
Constructor and Description |
---|
BeanshellPropertyMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute()
Main plugin execution
|
private void |
set(bsh.Interpreter interpreter,
java.lang.String name,
java.lang.Object value) |
defineProperty, getProject
@Parameter(required=true) private java.lang.String source
@Parameter private java.lang.String[] properties
@Component private org.apache.maven.execution.MavenSession mavenSession
@Component private org.apache.maven.settings.Settings settings
public void execute() throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException
private void set(bsh.Interpreter interpreter, java.lang.String name, java.lang.Object value) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureException