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.ArtifactMetadataSource
protected String
the cool bar to goprotected String
Deprecated.wine is betterFields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParamFromAdd
(String value) add method as parameter.void
deprecatedMethod
(String value) Deprecated.void
execute()
void
Setter method for Parameter fieldvoid
setParamFromSetter
(String value) setter as parameter.void
setParamFromSetterDeprecated
(List<String> value) Deprecated.reason of deprecationstatic void
setStaticMethod
(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.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
deprecatedMethod
Deprecated.
-