Class FooMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.tools.plugin.extractor.annotations.AbstractFooMojo
org.apache.maven.tools.plugin.extractor.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 AbstractFooMojo
- Author:
- Olivier Lamy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.apache.maven.artifact.metadata.ArtifactMetadataSourceprotected Stringthe cool bar to goprotected StringDeprecated.wine is betterFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParamFromAdd(String value) add method as parameter.voiddeprecatedMethod(String value) Deprecated.voidexecute()voidSetter method for Parameter fieldvoidsetParamFromSetter(String value) setter as parameter.voidsetParamFromSetterDeprecated(List<String> value) Deprecated.reason of deprecationstatic voidsetStaticMethod(String value) Static methods should be excluded.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
bar
the cool bar to go- Since:
- 1.0
-
beer
Deprecated.wine is betterbeer for non french folks -
artifactMetadataSource
@Component(role=org.apache.maven.artifact.metadata.ArtifactMetadataSource.class, hint="maven") protected org.apache.maven.artifact.metadata.ArtifactMetadataSource artifactMetadataSource
-
-
Constructor Details
-
FooMojo
public FooMojo()
-
-
Method Details
-
setBar
Setter method for Parameter field -
setParamFromSetter
setter as parameter. -
addParamFromAdd
add method as parameter. -
setParamFromSetterDeprecated
@Deprecated @Parameter(property="props.paramFromSetterDeprecated") public void setParamFromSetterDeprecated(List<String> value) Deprecated.reason of deprecationdeprecated setter as parameter. -
setStaticMethod
Static methods should be excluded. -
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
deprecatedMethod
Deprecated.
-