org.apache.maven.tools.plugin.annotations
Class FooMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by 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

Field Summary
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.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
FooMojo()
           
 
Method Summary
 void execute()
           
 
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
 

Field Detail

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
Constructor Detail

FooMojo

public FooMojo()
Method Detail

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.