wildfly:start
Full name:
org.wildfly.plugins:wildfly-maven-plugin:5.1.5.Final:start
Description:
Starts a standalone instance of WildFly Application Server.
The purpose of this goal is to start a WildFly Application Server for testing during the maven lifecycle.Note that if a WildFly Bootable JAR is packaged, it is ignored by this goal.
Attributes:
- Requires a Maven project to be executed.
- Requires dependency resolution of artifacts in scope:
runtime. - The goal is not marked as thread-safe and thus does not support parallel builds.
Optional Parameters
| Name | Type | Since | Description |
|---|---|---|---|
<addUser> |
AddUser |
- |
The users to add to the server. User Property: wildfly.add-userAlias: add-user |
<authenticationConfig> |
URL |
- |
A URL which points to the authentication configuration (wildfly-config.xml) the client uses to authenticate with the server.User Property: wildfly.authConfigAlias: authentication-config |
<debug> |
boolean |
- |
Starts the server with debugging enabled. Default: falseUser Property: wildfly.debug |
<debugHost> |
String |
- |
Sets the hostname to listen on for debugging. An * means all hosts.Default: *User Property: wildfly.debug.host |
<debugPort> |
int |
- |
Sets the port the debugger should listen on. Default: 8787User Property: wildfly.debug.port |
<debugSuspend> |
boolean |
- |
Indicates whether the server should suspend itself until a debugger is attached. Default: falseUser Property: wildfly.debug.suspend |
<domainConfig> |
String |
- |
The name of the domain configuration to use. This is only used for domain servers. User Property: wildfly.domainConfigAlias: domain-config |
<env> |
Map<String,String> |
- |
Specifies the environment variables to be passed to the process being started.
<env>
<HOME>/home/wildfly/</HOME>
</env>
|
<featurePackLocation> |
String |
- |
The feature pack location. See the documentation for details on how to format a feature pack location. Note that if you define the version in the feature pack location, e.g. User Property: wildfly.feature-pack.locationAlias: feature-pack-location |
<hostConfig> |
String |
- |
The name of the host configuration to use. This is only used for domain servers. User Property: wildfly.hostConfigAlias: host-config |
<hostname> |
String |
- |
Specifies the host name of the server where the deployment plan should be executed. Default: localhostUser 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 |
<javaHome> |
String |
- |
The JAVA_HOME to use for launching the server.User Property: java.homeAlias: java-home |
<javaOpts> |
String[] |
- |
The JVM options to use. User Property: wildfly.javaOptsAlias: java-opts |
<jbossHome> |
String |
- |
The WildFly Application Server's home directory. If not set, a server will be provisioned in the ${project.build.directory}/server.User Property: jboss-as.homeAlias: jboss-home |
<moduleOptions> |
String[] |
- |
Options passed to JBoss Modules. This is useful for things like Java Agents where you need to start the server with an agent. User Property: wildfly.moduleOptionsAlias: module-options |
<modulesPath> |
ModulesPath |
- |
The modules path or paths to use. A single path can be used or multiple paths by enclosing them in a paths element. User Property: wildfly.modulesPathAlias: modules-path |
<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: 9990User Property: wildfly.port |
<propertiesFile> |
String |
- |
The path to the system properties file to load. User Property: wildfly.propertiesFileAlias: properties-file |
<protocol> |
String |
- |
The protocol used to connect to the server for management. User Property: wildfly.protocol |
<provisioningDir> |
String |
3.0 |
Deprecated. use jbossHome setting The directory name inside the buildDir where to provision the default server. By default, the server is provisioned into the 'server' directory. This parameter has been deprecated in favor of using the User Property: wildfly.provisioning.dirAlias: provisioning-dir |
<serverArgs> |
String[] |
- |
The arguments to be passed to the server. User Property: wildfly.serverArgsAlias: server-args |
<serverConfig> |
String |
- |
The path to the server configuration to use. This is only used for standalone servers. User Property: wildfly.serverConfigAlias: server-config |
<serverType> |
ServerType |
- |
The type of server to start.
Default: STANDALONEUser Property: wildfly.server.typeAlias: server-type |
<skip> |
boolean |
- |
Set to true if you want to skip this goal, otherwise false.Default: falseUser Property: wildfly.skip |
<stability> |
String |
5.1.3.Final |
Defines the stability level when starting a server. User Property: wildfly.stability |
<startupTimeout> |
long |
- |
The timeout value to use when starting the server. Default: 60User Property: wildfly.startupTimeoutAlias: startup-timeout |
<stdout> |
String |
- |
Indicates how stdout and stderr should be handled for the spawned server process. Note that stderr will be redirected to stdout if the value is defined unless the value is none.
By default
stdout and stderr are inherited from the current process. You can change the setting to one of the follow:
Note that if this goal is not later followed by a shutdown goal in the same maven process you should use a file to redirect the stdout and stderr to. Both output streams will be redirected to the same file.
User Property: wildfly.stdout |
<timeout> |
int |
- |
The timeout, in seconds, to wait for a management connection. Default: 60User 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 |
<version> |
String |
- |
The version of the WildFly default server to install in case no jboss-home has been set and no server has previously been provisioned. The latest stable version is resolved if left blank. User Property: wildfly.version |
Parameter Details
<addUser>
- Type:
org.wildfly.plugin.server.AddUser - Required:
No - User Property:
wildfly.add-user - Alias:
add-user
<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
<debug>
- Type:
boolean - Required:
No - User Property:
wildfly.debug - Default:
false
<debugHost>
* means all hosts.
- Type:
java.lang.String - Required:
No - User Property:
wildfly.debug.host - Default:
*
<debugPort>
- Type:
int - Required:
No - User Property:
wildfly.debug.port - Default:
8787
<debugSuspend>
- Type:
boolean - Required:
No - User Property:
wildfly.debug.suspend - Default:
false
<domainConfig>
- Type:
java.lang.String - Required:
No - User Property:
wildfly.domainConfig - Alias:
domain-config
<env>
<env>
<HOME>/home/wildfly/</HOME>
</env>
- Type:
java.util.Map<java.lang.String, java.lang.String> - Required:
No
<featurePackLocation>
Note that if you define the version in the feature pack location, e.g. #26.1.1.Final, the version configuration parameter should be left blank.
- Type:
java.lang.String - Required:
No - User Property:
wildfly.feature-pack.location - Alias:
feature-pack-location
<hostConfig>
- Type:
java.lang.String - Required:
No - User Property:
wildfly.hostConfig - Alias:
host-config
<hostname>
- Type:
java.lang.String - Required:
No - User Property:
wildfly.hostname - Default:
localhost
<id>
- Type:
java.lang.String - Required:
No - User Property:
wildfly.id
<javaHome>
JAVA_HOME to use for launching the server.
- Type:
java.lang.String - Required:
No - User Property:
java.home - Alias:
java-home
<javaOpts>
- Type:
java.lang.String[] - Required:
No - User Property:
wildfly.javaOpts - Alias:
java-opts
<jbossHome>
${project.build.directory}/server.
- Type:
java.lang.String - Required:
No - User Property:
jboss-as.home - Alias:
jboss-home
<moduleOptions>
- Type:
java.lang.String[] - Required:
No - User Property:
wildfly.moduleOptions - Alias:
module-options
<modulesPath>
- Type:
org.wildfly.plugin.server.ModulesPath - Required:
No - User Property:
wildfly.modulesPath - Alias:
modules-path
<password>
- Type:
java.lang.String - Required:
No - User Property:
wildfly.password
<port>
- Type:
int - Required:
No - User Property:
wildfly.port - Default:
9990
<propertiesFile>
- Type:
java.lang.String - Required:
No - User Property:
wildfly.propertiesFile - Alias:
properties-file
<protocol>
- Type:
java.lang.String - Required:
No - User Property:
wildfly.protocol
<provisioningDir>
use jbossHome setting
This parameter has been deprecated in favor of using the <jbossHome/> parameter. If both are defined, this parameter will be ignored.
- Type:
java.lang.String - Since:
3.0 - Required:
No - User Property:
wildfly.provisioning.dir - Alias:
provisioning-dir
<serverArgs>
- Type:
java.lang.String[] - Required:
No - User Property:
wildfly.serverArgs - Alias:
server-args
<serverConfig>
- Type:
java.lang.String - Required:
No - User Property:
wildfly.serverConfig - Alias:
server-config
<serverType>
STANDALONE for a standalone server and DOMAIN for a domain server.
- Type:
org.wildfly.plugin.server.ServerType - Required:
No - User Property:
wildfly.server.type - Default:
STANDALONE - Alias:
server-type
<skip>
true if you want to skip this goal, otherwise false.
- Type:
boolean - Required:
No - User Property:
wildfly.skip - Default:
false
<stability>
- Type:
java.lang.String - Since:
5.1.3.Final - Required:
No - User Property:
wildfly.stability
<startupTimeout>
- Type:
long - Required:
No - User Property:
wildfly.startupTimeout - Default:
60 - Alias:
startup-timeout
<stdout>
stdout and stderr should be handled for the spawned server process. Note that stderr will be redirected to stdout if the value is defined unless the value is none.
stdout and stderr are inherited from the current process. You can change the setting to one of the follow:
noneindicates thestdoutandstderrstream should not be consumed. This should generally only be used if theshutdowngoal is used in the same maven process.System.outorSystem.errto redirect to the current processes (use this option if you see odd behavior from maven with the default value)- Any other value is assumed to be the path to a file and the
stdoutandstderrwill be written there
shutdown goal in the same maven process you should use a file to redirect the stdout and stderr to. Both output streams will be redirected to the same file.
- Type:
java.lang.String - Required:
No - User Property:
wildfly.stdout
<timeout>
- Type:
int - Required:
No - User Property:
wildfly.timeout - Default:
60
<username>
- Type:
java.lang.String - Required:
No - User Property:
wildfly.username
<version>
The latest stable version is resolved if left blank.
- Type:
java.lang.String - Required:
No - User Property:
wildfly.version