org.jboss.maven.plugins.deploy
Class JBossDeployMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jboss.maven.plugins.deploy.JBossDeployMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

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

Maven plugin for deploying to jboss repository. By default it will bind to the deploy phase.


Field Summary
protected  java.util.List pluginComponents
          The Maven Plugin Object
protected  org.apache.maven.project.MavenProject project
          The Maven Project Object
protected  org.apache.maven.project.MavenProjectHelper projectHelper
          The Maven Project Helper Object
protected  java.util.Properties projectProperties
          Maven project properties.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
JBossDeployMojo()
           
 
Method Summary
 void evaluateVariable(java.lang.StringBuffer buffer, java.lang.String var, java.lang.String value)
          Replace all instances of var with value in the given buffer.
 void execute()
          Main execution path of the plugin.
 
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 Object


projectHelper

protected org.apache.maven.project.MavenProjectHelper projectHelper
The Maven Project Helper Object


pluginComponents

protected java.util.List pluginComponents
The Maven Plugin Object


projectProperties

protected java.util.Properties projectProperties
Maven project properties.

Constructor Detail

JBossDeployMojo

public JBossDeployMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException
Main execution path of the plugin. Generates component-info.xml, and copies jar files to repository location.

Throws:
org.apache.maven.plugin.MojoExecutionException

evaluateVariable

public void evaluateVariable(java.lang.StringBuffer buffer,
                             java.lang.String var,
                             java.lang.String value)
Replace all instances of var with value in the given buffer. For example if var is "project.name", this method will search the buffer for "${project.name}" and replace it with the value provided.

Parameters:
buffer - The buffer to be modified
var - The name of the variable to be evaluated.
value - The replacement string.


Copyright © 2010 JBoss Inc.. All Rights Reserved.