org.apache.camel.maven.packaging
Class PackageMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.apache.camel.maven.packaging.PackageMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

public class PackageMojo
extends org.apache.maven.plugin.AbstractMojo

Analyses the Camel plugins in a project and generates extra descriptor information for easier auto-discovery in Camel.


Field Summary
protected  File outDir
          The output directory of classes
protected  org.apache.maven.project.MavenProject project
          The maven project.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
PackageMojo()
           
 
Method Summary
 void execute()
          Execute goal.
 
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

project

protected org.apache.maven.project.MavenProject project
The maven project.


outDir

protected File outDir
The output directory of classes

Constructor Detail

PackageMojo

public PackageMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Execute goal.

Throws:
org.apache.maven.plugin.MojoExecutionException - execution of the main class or one of the threads it generated failed.
org.apache.maven.plugin.MojoFailureException - something bad happened...


Apache CAMEL