@Mojo(name="foo", defaultPhase=COMPILE, threadSafe=true) @Execute(goal="compiler", lifecycle="my-lifecycle", phase=PACKAGE) public class FooMojo extends org.apache.maven.plugin.AbstractMojo
Modifier and Type | Field and Description |
---|---|
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource |
artifactMetadataSource |
protected String |
bar
the cool bar to go
|
protected String |
beer
Deprecated.
wine is better
|
protected CompilerManager |
compilerManager
Plexus compiler manager.
|
Constructor and Description |
---|
FooMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
@Parameter(property="thebar", required=true, defaultValue="coolbar") protected String bar
@Parameter(property="thebeer", defaultValue="coolbeer") protected String beer
@Component protected CompilerManager compilerManager
@Component(role=org.apache.maven.artifact.metadata.ArtifactMetadataSource.class, hint="maven") protected org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource
public FooMojo()
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2004–2015 The Apache Software Foundation. All rights reserved.