wildfly:start-jar

Full name:

org.wildfly.plugins:wildfly-maven-plugin:5.1.1.Final:start-jar

Description:

Starts a WildFly Application Server packaged as Bootable JAR.

The purpose of this goal is to start a WildFly Application Server packaged as a Bootable JAR for testing during the maven lifecycle.

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.
  • Since version: 5.0.

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
<bootableJarName> String - When bootable-jar is set to true, use this parameter to name the generated jar file.

Note that since 5.1 the default name changed from server-bootable.jar to ${project.artifactId-bootable.jar}.


Default: ${project.artifactId}-bootable.jar
User Property: wildfly.bootable.jar.name
Alias: bootable-jar-name
<debug> boolean - Starts the server with debugging enabled.
Default: false
User 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: 8787
User Property: wildfly.debug.port
<debugSuspend> boolean - Indicates whether the server should suspend itself until a debugger is attached.
Default: false
User Property: wildfly.debug.suspend
<env> Map<String,String> - Specifies the environment variables to be passed to the process being started.
<env>
    <HOME>/home/wildfly/</HOME>
</env>
<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
<javaHome> String - The JAVA_HOME to use for launching the server.
User Property: java.home
Alias: java-home
<javaOpts> String[] - The JVM options to use.
User Property: wildfly.javaOpts
Alias: java-opts
<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
<propertiesFile> String - The path to the system properties file to load.
User Property: wildfly.propertiesFile
Alias: properties-file
<protocol> String - The protocol used to connect to the server for management.
User Property: wildfly.protocol
<serverArgs> String[] - The arguments to be passed to the server.
User Property: wildfly.serverArgs
Alias: server-args
<skip> boolean - Set to true if you want to skip this goal, otherwise false.
Default: false
User Property: wildfly.skip
<startupTimeout> long - The timeout value to use when starting the server.
Default: 60
User Property: wildfly.startupTimeout
Alias: 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:
  • none indicates the stdout and stderr stream should not be consumed. This should generally only be used if the shutdown goal is used in the same maven process.
  • System.out or System.err to 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 stdout and stderr will be written there
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: 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>

A URL which points to the authentication configuration (wildfly-config.xml) the client uses to authenticate with the server.
  • Type: java.net.URL
  • Required: No
  • User Property: wildfly.authConfig
  • Alias: authentication-config

<bootableJarName>

When bootable-jar is set to true, use this parameter to name the generated jar file.

Note that since 5.1 the default name changed from server-bootable.jar to ${project.artifactId-bootable.jar}.

  • Type: java.lang.String
  • Required: No
  • User Property: wildfly.bootable.jar.name
  • Default: ${project.artifactId}-bootable.jar
  • Alias: bootable-jar-name

<debug>

Starts the server with debugging enabled.
  • Type: boolean
  • Required: No
  • User Property: wildfly.debug
  • Default: false

<debugHost>

Sets the hostname to listen on for debugging. An * means all hosts.
  • Type: java.lang.String
  • Required: No
  • User Property: wildfly.debug.host
  • Default: *

<debugPort>

Sets the port the debugger should listen on.
  • Type: int
  • Required: No
  • User Property: wildfly.debug.port
  • Default: 8787

<debugSuspend>

Indicates whether the server should suspend itself until a debugger is attached.
  • Type: boolean
  • Required: No
  • User Property: wildfly.debug.suspend
  • Default: false

<env>

Specifies the environment variables to be passed to the process being started.
<env>
    <HOME>/home/wildfly/</HOME>
</env>
  • Type: java.util.Map<java.lang.String, java.lang.String>
  • Required: No

<hostname>

Specifies the host name of the server where the deployment plan should be executed.
  • Type: java.lang.String
  • Required: No
  • User Property: wildfly.hostname
  • Default: localhost

<id>

Specifies the id of the server if the username and password is to be retrieved from the settings.xml file
  • Type: java.lang.String
  • Required: No
  • User Property: wildfly.id

<javaHome>

The JAVA_HOME to use for launching the server.
  • Type: java.lang.String
  • Required: No
  • User Property: java.home
  • Alias: java-home

<javaOpts>

The JVM options to use.
  • Type: java.lang.String[]
  • Required: No
  • User Property: wildfly.javaOpts
  • Alias: java-opts

<password>

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,
  • Type: java.lang.String
  • Required: No
  • User Property: wildfly.password

<port>

Specifies the port number the server is listening on.
  • Type: int
  • Required: No
  • User Property: wildfly.port
  • Default: 9990

<propertiesFile>

The path to the system properties file to load.
  • Type: java.lang.String
  • Required: No
  • User Property: wildfly.propertiesFile
  • Alias: properties-file

<protocol>

The protocol used to connect to the server for management.
  • Type: java.lang.String
  • Required: No
  • User Property: wildfly.protocol

<serverArgs>

The arguments to be passed to the server.
  • Type: java.lang.String[]
  • Required: No
  • User Property: wildfly.serverArgs
  • Alias: server-args

<skip>

Set to true if you want to skip this goal, otherwise false.
  • Type: boolean
  • Required: No
  • User Property: wildfly.skip
  • Default: false

<startupTimeout>

The timeout value to use when starting the server.
  • Type: long
  • Required: No
  • User Property: wildfly.startupTimeout
  • Default: 60
  • Alias: startup-timeout

<stdout>

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:
  • none indicates the stdout and stderr stream should not be consumed. This should generally only be used if the shutdown goal is used in the same maven process.
  • System.out or System.err to 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 stdout and stderr will be written there
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.
  • Type: java.lang.String
  • Required: No
  • User Property: wildfly.stdout

<timeout>

The timeout, in seconds, to wait for a management connection.
  • Type: int
  • Required: No
  • User Property: wildfly.timeout
  • Default: 60

<username>

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,
  • Type: java.lang.String
  • Required: No
  • User Property: wildfly.username