JBoss AS7 Deployment Plugin 7.7.Final

org.jboss.as.plugin.deployment.resource
Class AddResource

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.jboss.as.plugin.common.AbstractServerMojo
          extended by org.jboss.as.plugin.deployment.resource.AddResource
All Implemented Interfaces:
Closeable, org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo, ConnectionInfo

@Mojo(name="add-resource",
      threadSafe=true)
public class AddResource
extends AbstractServerMojo

Adds a resource

If force is set to false and the resource has already been deployed to the server, an error will occur and the operation will fail.

Note: this currently only works with adding resources to subsystems when your server is running in domain mode.

Author:
Stuart Douglas, James R. Perkins

Field Summary
static String GOAL
           
 
Fields inherited from class org.jboss.as.plugin.common.AbstractServerMojo
DEBUG_MESSAGE_NO_CREDS, DEBUG_MESSAGE_NO_ID, DEBUG_MESSAGE_NO_SERVER_SECTION, DEBUG_MESSAGE_NO_SETTINGS_FILE, DEBUG_MESSAGE_POM_HAS_CREDS, DEBUG_MESSAGE_SETTINGS_HAS_CREDS, DEBUG_MESSAGE_SETTINGS_HAS_ID
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AddResource()
           
 
Method Summary
 void execute()
           
 String goal()
          The goal of the deployment.
 
Methods inherited from class org.jboss.as.plugin.common.AbstractServerMojo
close, getCallbackHandler, getClient, getHostAddress, getPort, hostname, isDomainServer, isSkip
 
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

GOAL

public static final String GOAL
See Also:
Constant Field Values
Constructor Detail

AddResource

public AddResource()
Method Detail

goal

public String goal()
Description copied from class: AbstractServerMojo
The goal of the deployment.

Specified by:
goal in class AbstractServerMojo
Returns:
the goal of the deployment.

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

JBoss AS7 Deployment Plugin 7.7.Final

Copyright © 2015 JBoss by Red Hat. All Rights Reserved.