org.fusesource.mvnplugins.fab
Class FabMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.fusesource.mvnplugins.fab.FabMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

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

Generates a fabric module descriptor and attaches it to the project so that it gets deployed to a maven repo.

Author:
Hiram Chirino

Field Summary
protected  java.lang.String classifier
          The classifier to use.
protected  java.util.Map<java.lang.String,java.lang.String> descriptor
          Descriptor settings.
protected  boolean enabled
          If set to false, then it disables the plugin.
static java.lang.String FAB_MODULE_DESCRIPTION
           
static java.lang.String FAB_MODULE_ID
           
static java.lang.String FAB_MODULE_NAME
           
static java.lang.String FAB_MODULE_SHA1
           
protected  org.apache.maven.project.MavenProject project
           
protected  java.io.File target
          The file name of the .
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
FabMojo()
           
 
Method Summary
protected  java.lang.String checksum(java.lang.String algorithm, java.io.File file)
           
 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

FAB_MODULE_ID

public static final java.lang.String FAB_MODULE_ID
See Also:
Constant Field Values

FAB_MODULE_NAME

public static final java.lang.String FAB_MODULE_NAME
See Also:
Constant Field Values

FAB_MODULE_DESCRIPTION

public static final java.lang.String FAB_MODULE_DESCRIPTION
See Also:
Constant Field Values

FAB_MODULE_SHA1

public static final java.lang.String FAB_MODULE_SHA1
See Also:
Constant Field Values

project

protected org.apache.maven.project.MavenProject project
Since:
1.0

target

protected java.io.File target
The file name of the .


classifier

protected java.lang.String classifier
The classifier to use.


enabled

protected boolean enabled
If set to false, then it disables the plugin.


descriptor

protected java.util.Map<java.lang.String,java.lang.String> descriptor
Descriptor settings.

Constructor Detail

FabMojo

public FabMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

checksum

protected java.lang.String checksum(java.lang.String algorithm,
                                    java.io.File file)
                             throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException


Copyright © 2009-2011 FuseSource. All Rights Reserved.