org.apache.maven.tools.plugin.annotations
Class FooMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.tools.plugin.annotations.FooMojo
- All Implemented Interfaces:
- org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
@Mojo(name="foo",
defaultPhase=COMPILE,
threadSafe=true)
@Execute(goal="compiler",
lifecycle="my-lifecycle",
phase=PACKAGE)
public class FooMojo
- extends org.apache.maven.plugin.AbstractMojo
- Author:
- Olivier Lamy
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
Methods inherited from class org.apache.maven.plugin.AbstractMojo |
getLog, getPluginContext, setLog, setPluginContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
bar
@Parameter(property="thebar",
required=true,
defaultValue="coolbar")
protected String bar
- the cool bar to go
- Since:
- 1.0
beer
@Parameter(property="thebeer",
defaultValue="coolbeer")
protected String beer
- Deprecated. wine is better
- beer for non french folks
compilerManager
@Component
protected CompilerManager compilerManager
- Plexus compiler manager.
artifactMetadataSource
@Component(role=org.apache.maven.artifact.metadata.ArtifactMetadataSource.class,
hint="maven")
protected org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource
FooMojo
public FooMojo()
execute
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.