org.jboss.maven.plugins.deploy
Class JBossDeployMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
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 org.apache.maven.project.MavenProject |
project
The Maven Project Object |
protected java.util.Properties |
projectProperties
Maven project properties. |
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
project
protected org.apache.maven.project.MavenProject project
- The Maven Project Object
projectProperties
protected java.util.Properties projectProperties
- Maven project properties.
JBossDeployMojo
public JBossDeployMojo()
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 modifiedvar
- The name of the variable to be evaluated.value
- The replacement string.
Copyright © 2007-2009 JBoss Inc.. All Rights Reserved.