org.jboss.as.plugin.deployment.resource
Class AddResource
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.jboss.as.plugin.common.AbstractServerMojo
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
Fields inherited from interface org.apache.maven.plugin.Mojo |
ROLE |
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 |
GOAL
public static final String GOAL
- See Also:
- Constant Field Values
AddResource
public AddResource()
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
Copyright © 2016 JBoss by Red Hat. All Rights Reserved.