wildfly:redeploy
Full name:
org.wildfly.plugins:wildfly-maven-plugin:5.0.1.Final:redeploy
Description:
Redeploys the application to the WildFly Application Server.
Attributes:
- Requires a Maven project to be executed.
- Requires dependency resolution of artifacts in scope:
runtime
. - The goal is thread-safe and supports parallel builds.
- Invokes the execution of the following lifecycle phase prior to executing itself:
package
.
Optional Parameters
Name | Type | Since | Description |
---|---|---|---|
<authenticationConfig> |
URL |
- |
A URL which points to the authentication configuration (wildfly-config.xml ) the client uses to authenticate with the server.User Property: wildfly.authConfig Alias: authentication-config |
<checkPackaging> |
boolean |
- |
By default certain package types are ignored when processing, e.g. maven-project and pom . Set this value to false if this check should be bypassed.Default: true User Property: wildfly.checkPackaging Alias: check-packaging |
<filename> |
String |
- |
The file name of the application to be deployed. The User Property: wildfly.deployment.filename |
<hostname> |
String |
- |
Specifies the host name of the server where the deployment plan should be executed. Default: localhost User Property: wildfly.hostname |
<id> |
String |
- |
Specifies the id of the server if the username and password is to be retrieved from the settings.xml file User Property: wildfly.id |
<name> |
String |
- |
Specifies the name used for the deployment. User Property: wildfly.deployment.name |
<password> |
String |
- |
Specifies the password to use if prompted to authenticate by the server. If no password is specified and the server requests authentication the user will be prompted to supply the password, User Property: wildfly.password |
<port> |
int |
- |
Specifies the port number the server is listening on. Default: 9990 User Property: wildfly.port |
<protocol> |
String |
- |
The protocol used to connect to the server for management. User Property: wildfly.protocol |
<runtimeName> |
String |
- |
The runtime name for the deployment. In some cases users may wish to have two deployments with the same User Property: wildfly.deployment.runtime.name Alias: runtime-name |
<serverGroups> |
List<String> |
- |
The server groups the content should be deployed to. User Property: wildfly.serverGroups Alias: server-groups |
<skip> |
boolean |
- |
Set to true if you want the deployment to be skipped, otherwise false .Default: false User Property: wildfly.skip |
<targetDir> |
File |
- |
The target directory the application to be deployed is located. Default: ${project.build.directory}/ User Property: wildfly.deployment.targetDir |
<timeout> |
int |
- |
The timeout, in seconds, to wait for a management connection. Default: 60 User Property: wildfly.timeout |
<username> |
String |
- |
Specifies the username to use if prompted to authenticate by the server. If no username is specified and the server requests authentication the user will be prompted to supply the username, User Property: wildfly.username |
Parameter Details
<authenticationConfig>
wildfly-config.xml
) the client uses to authenticate with the server.
- Type:
java.net.URL
- Required:
No
- User Property:
wildfly.authConfig
- Alias:
authentication-config
<checkPackaging>
maven-project
and pom
. Set this value to false
if this check should be bypassed.
- Type:
boolean
- Required:
No
- User Property:
wildfly.checkPackaging
- Default:
true
- Alias:
check-packaging
<filename>
The filename
property does have a default of ${project.build.finalName}.${project.packaging}
. The default value is not injected as it normally would be due to packaging types like ejb
that result in a file with a .jar
extension rather than an .ejb
extension.
- Type:
java.lang.String
- Required:
No
- User Property:
wildfly.deployment.filename
<hostname>
- Type:
java.lang.String
- Required:
No
- User Property:
wildfly.hostname
- Default:
localhost
<id>
- Type:
java.lang.String
- Required:
No
- User Property:
wildfly.id
<name>
- Type:
java.lang.String
- Required:
No
- User Property:
wildfly.deployment.name
<password>
- Type:
java.lang.String
- Required:
No
- User Property:
wildfly.password
<port>
- Type:
int
- Required:
No
- User Property:
wildfly.port
- Default:
9990
<protocol>
- Type:
java.lang.String
- Required:
No
- User Property:
wildfly.protocol
<runtimeName>
In some cases users may wish to have two deployments with the same runtime-name
(e.g. two versions of example.war
) both available in the management configuration, in which case the deployments would need to have distinct name
values but would have the same runtime-name
.
- Type:
java.lang.String
- Required:
No
- User Property:
wildfly.deployment.runtime.name
- Alias:
runtime-name
<serverGroups>
- Type:
java.util.List<java.lang.String>
- Required:
No
- User Property:
wildfly.serverGroups
- Alias:
server-groups
<skip>
true
if you want the deployment to be skipped, otherwise false
.
- Type:
boolean
- Required:
No
- User Property:
wildfly.skip
- Default:
false
<targetDir>
- Type:
java.io.File
- Required:
No
- User Property:
wildfly.deployment.targetDir
- Default:
${project.build.directory}/
<timeout>
- Type:
int
- Required:
No
- User Property:
wildfly.timeout
- Default:
60
<username>
- Type:
java.lang.String
- Required:
No
- User Property:
wildfly.username