Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
### dev-watch
#### wildfly-jar:dev-watch
*Full name:*
org.wildfly.plugins:wildfly-jar-maven-plugin:11.0.0.Beta1:dev-watch
#### Description
Build and start a bootable JAR for dev-watch mode. This goal
monitors the changes in the project and recompile/re-deploy. Type
Ctrl-C to kill the running server.
#### Attributes
* Requires a Maven project to be executed.
* Requires dependency resolution of artifacts in scope: `compile+runtime`.
* Binds by default to the http://maven.apache.org/ref/current/maven-core/lifecycles.html[lifecycle phase]: `compile`.
.Optional Parameters
[%autowidth.stretch]
|====
|Name|Type|Since|Description
|`<>`|`List`|`-`|Bootable JAR server arguments. +
*User property is*: `wildfly.bootable.arguments`. +
|`<>`|`File`|`-`|Overrides the default `logging.properties` the container
uses when booting. +
In most cases this should not be required. The use-case is when the
generated `logging.properties` causes boot errors or you
do not use the logging subsystem and would like to use a custom
logging configuration. +
An example of a boot error would be using a json formatted file as
a `custom-handler`. If the file is not absolute, it has
to be relative to the project base directory. +
*User property is*: `wildfly.bootable.logging.config`. +
*Alias is*: `boot-logging-config`.
|`<>`|`String`|`-`|By default, when building a bootable JAR, the plugin extracts build
artifacts in the directory 'bootable-jar-build-artifacts'. You can
use this property to change this directory name. In most cases this
should not be required. The use-case is when building multiple
bootable JARs in the same project on Windows Platform. In this
case, each execution should have its own directory, the plugin
being unable to delete the directory due to some references to
JBoss module files. +
*Default value is*: `bootable-jar-build-artifacts`. +
*User property is*: `wildfly.bootable.jar.build.artifacts`. +
*Alias is*: `bootable-jar-build-artifacts`.
|`<>`|`List`|`-`|List of channel URL and/or Maven coordinates (version being
optional). +
*Alias is*: `channels`.
|`<>`|`List`|`-`|List of CLI execution sessions. An embedded server is started for
each CLI session. If a script file is not absolute, it has to be
relative to the project base directory. CLI session are configured
in the following way: +
<cli-sessions> +
<cli-session> +
<script-files> +
<script>../scripts/script1.cli</script> +
</script-files> +
<!-- Expressions resolved during server execution --> +
<resolve-expressions>false</resolve-expressions> +
</cli-session> +
<cli-session> +
<script-files> +
<script>../scripts/script2.cli</script> +
</script-files> +
<properties-file>../scripts/cli.properties</properties-file> +
</cli-session> +
</cli-sessions> +
*Alias is*: `cli-sessions`.
|`<>`|`CloudConfig`|`-`|To enable cloud support. When cloud support is enabled, the created
bootable JAR will operate properly in context such as openshift.
+
In order to enable authenticated cluster jgroups protocol, set
<enable-jgroups-password>true</enable-jgroups-password>.
The environment variable JGROUPS_CLUSTER_PASSWORD must then be set
to the password value. +
*Alias is*: `cloud`.
|`<>`|`boolean`|`-`|To make the WAR deployment registered under root resource path
('/'). +
*Default value is*: `true`. +
*User property is*: `wildfly.bootable.context.root`. +
*Alias is*: `context-root`.
|`<>`|`boolean`|`-`|Enable/Disable debug. If debugger is explicitly enabled in JVM
arguments, this option has no effect, +
*Default value is*: `false`. +
*User property is*: `wildfly.bootable.debug`. +
|`<>`|`int`|`-`|Debug port. +
*Default value is*: `8787`. +
*User property is*: `wildfly.bootable.debug.port`. +
*Alias is*: `debug-port`.
|`<>`|`boolean`|`-`|Debug suspend. +
*Default value is*: `false`. +
*User property is*: `wildfly.bootable.debug.suspend`. +
*Alias is*: `debug-suspend`.
|`<>`|`boolean`|`-`|Deprecated. The plugin prints a warning when an overridden artifact
is downgraded (updated to an older version). The version comparison
is done based on Maven versioning. This warning can be disabled by
setting this parameter to true. +
*Default value is*: `false`. +
*User property is*: `bootable.jar.disable.warn.for.artifact.downgrade`. +
*Alias is*: `disable-warn-for-artifact-downgrade`.
|`<>`|`boolean`|`-`|By default executed CLI scripts output is not shown if execution is
successful. In order to display the CLI output, set this option to
true. +
*Alias is*: `display-cli-scripts-output`.
|`<>`|`boolean`|`-`|Deprecated. Set this parameter to true in order to retrieve the set
of artifacts that can be upgraded. The file
`target/bootable-jar-build-artifacts/bootable-jar-server-original-artifacts.xml`
is generated. It contains XML elements for the Galleon
feature-packs dependencies, JBoss Modules runtime and artifacts.
JBoss Modules modules artifacts are grouped by JBoss Modules name.
The generated file contains only the artifacts that are provisioned
by Galleon. Each artifact version is the one that would get
installed when building the Bootable JAR without upgrade. +
*Default value is*: `false`. +
*User property is*: `bootable.jar.dump.original.artifacts`. +
*Alias is*: `dump-original-artifacts`.
|`<>`|`List`|`-`|A list of Galleon layers to exclude. Can be used when
feature-pack-location or feature-packs are set. +
*Alias is*: `excluded-layers`.
|`<>`|`List`|`-`|A list of directories to copy content to the provisioned server. If
a directory is not absolute, it has to be relative to the project
base directory. +
*User property is*: `wildfly.bootable.package.extra.server.content.dirs`. +
*Alias is*: `extra-server-content-dirs`.
|`<>`|`String`|`-`|The WildFly Galleon feature-pack location to use if no
provisioning.xml file found. Can't be used in conjunction with
feature-packs. +
*User property is*: `wildfly.bootable.fpl`. +
*Alias is*: `feature-pack-location`.
|`<>`|`List`|`-`|A list of feature-pack configurations to install, can be combined
with layers. Overrides galleon/provisioning.xml file. Can't be used
in conjunction with feature-pack-location. +
*Alias is*: `feature-packs`.
|`<>`|`boolean`|`-`|Hollow JAR. Create a bootable JAR that doesn't contain application. +
*User property is*: `wildfly.bootable.hollow`. +
*Alias is*: `hollow-jar`.
|`<>`|`String`|`-`|Specifies the host name of the server where the deployment plan
should be executed. +
*Default value is*: `localhost`. +
*User property is*: `wildfly.hostname`. +
|`<>`|`List`|`-`|File patterns that we should ignore during watch. Hidden files and
files ending with '~' are ignored. You can set the system property
`wildfly.bootable.ignore.patterns` to a white space
separated list of file patterns. +
*User property is*: `wildfly.bootable.ignore.patterns`. +
*Alias is*: `ignore-patterns`.
|`<>`|`String`|`-`|When calling mvn 'install', the bootable JAR artifact is attached
to the project with the classifier 'bootable'. Use this parameter
to configure the classifier. +
*Default value is*: `bootable`. +
*User property is*: `bootable.jar.install.artifact.classifier`. +
*Alias is*: `install-artifact-classifier`.
|`<>`|`List`|`-`|Additional JVM options. +
*User property is*: `wildfly.bootable.jvmArguments`. +
|`<>`|`List`|`-`|A list of Galleon layers to provision. Can be used when
feature-pack-location or feature-packs are set. +
*Alias is*: `layers`.
|`<>`|`boolean`|`-`|Whether to log provisioning time at the end +
*Default value is*: `false`. +
*Alias is*: `log-time`.
|`<>`|`boolean`|`-`|Whether to use offline mode when the plugin resolves an artifact.
In offline mode the plugin will only use the local Maven repository
for an artifact resolution. +
*Default value is*: `false`. +
*Alias is*: `offline`.
|`<>`|`String`|`-`|By default the generated JAR is
${project.build.finalName}-bootable.jar +
*User property is*: `wildfly.bootable.package.output.file.name`. +
*Alias is*: `output-file-name`.
|`<>`|`List`|`-`|Deprecated. A list of artifacts that override the one referenced in
the WildFly Galleon feature-pack used to build the Bootable JAR.
The artifacts present in this list must exist in the project
dependencies (with a `provided` scope). GroupId and
ArtifactId are mandatory. Classifier is required if non null.
Version and Type are optional and are retrieved from the project
dependencies. Dependencies on Galleon feature-pack can also be
referenced from this list. `zip` type must be used for
Galleon feature-packs. NB: This configuration item can't be used
when Channels are in use. +
Example of an override of the
`io.undertow:undertow-core` artifact: +
<overridden-server-artifacts> +
<artifact> +
<groupId>io.undertow</groupId> +
<artifactId>undertow-core</artifactId> +
</artifact> +
</overridden-server-artifacts> + +
*Alias is*: `overridden-server-artifacts`.
|`<>`|`String`|`-`|Remote connection password. +
*User property is*: `wildfly.bootable.remote.password`. +
|`<>`|`Map`|`-`|Arbitrary Galleon options used when provisioning the server. In
case you are building a large amount of bootable JAR in the same
maven session, it is strongly advised to set 'jboss-fork-embedded'
option to 'true' in order to fork Galleon provisioning and CLI
scripts execution in dedicated processes. For example: +
<plugin-options> +
<jboss-fork-embedded>true</jboss-fork-embedded> +
</plugin-options> +
*Alias is*: `plugin-options`.
|`<>`|`int`|`-`|Specifies the port number the server is listening on. +
*Default value is*: `9990`. +
*User property is*: `wildfly.port`. +
|`<>`|`String`|`-`|Project build dir. +
*Default value is*: `${project.build.directory}`. +
|`<>`|`String`|`-`|Remote connection protocol. +
*Default value is*: `remote+http`. +
*User property is*: `wildfly.bootable.remote.protocol`. +
|`<>`|`File`|`-`|The path to the `provisioning.xml` file to use. Note
that this cannot be used with the `feature-packs` or
`layers` configuration parameters. If the provisioning
file is not absolute, it has to be relative to the project base
directory. +
*Default value is*: `${project.basedir}/galleon/provisioning.xml`. +
*User property is*: `wildfly.bootable.provisioning.file`. +
*Alias is*: `provisioning-file`.
|`<>`|`boolean`|`-`|Whether to record provisioned state in .galleon directory. +
*Default value is*: `false`. +
*Alias is*: `record-state`.
|`<>`|`boolean`|`-`|Enable/Disable remote connection. +
*Default value is*: `false`. +
*User property is*: `wildfly.bootable.remote`. +
|`<>`|`boolean`|`-`|Set to `true` if you want the deployment to be skipped,
otherwise `false`. +
*Default value is*: `false`. +
*User property is*: `wildfly.bootable.package.skip`. +
|`<>`|`File`|`-`|(no description) +
*Default value is*: `${project.build.sourceDirectory}`. +
|`<>`|`int`|`-`|The timeout, in seconds, to wait for a management connection. +
*Default value is*: `60`. +
*User property is*: `wildfly.timeout`. +
|`<>`|`String`|`-`|Remote connection username. +
*User property is*: `wildfly.bootable.remote.username`. +
|`<>`|`List`|`-`|Additional extensions of files located in `src/webapp`
directory and its sub-directories that don't require a redeployment
on update. The builtin list is `html, xhtml, jsp, css`.
You can set the system property
`wildfly.bootable.web.extensions` to a white space
separated list of file extensions. +
*User property is*: `wildfly.bootable.web.extensions`. +
*Alias is*: `web-extensions`.
|====
#### Parameter Details
[[arguments]] *arguments* +
Bootable JAR server arguments.
* *Type*: `java.util.List`
* *Required*: `No`
* *User Property*: `wildfly.bootable.arguments`
[[bootLoggingConfig]] *bootLoggingConfig* +
Overrides the default `logging.properties` the container
uses when booting. +
In most cases this should not be required. The use-case is when the
generated `logging.properties` causes boot errors or you
do not use the logging subsystem and would like to use a custom
logging configuration. +
An example of a boot error would be using a json formatted file as
a `custom-handler`. If the file is not absolute, it has
to be relative to the project base directory.
* *Type*: `java.io.File`
* *Required*: `No`
* *User Property*: `wildfly.bootable.logging.config`
* *Alias*: `boot-logging-config`
[[bootableJarBuildArtifacts]] *bootableJarBuildArtifacts* +
By default, when building a bootable JAR, the plugin extracts build
artifacts in the directory 'bootable-jar-build-artifacts'. You can
use this property to change this directory name. In most cases this
should not be required. The use-case is when building multiple
bootable JARs in the same project on Windows Platform. In this
case, each execution should have its own directory, the plugin
being unable to delete the directory due to some references to
JBoss module files.
* *Type*: `java.lang.String`
* *Required*: `No`
* *User Property*: `wildfly.bootable.jar.build.artifacts`
* *Default*: `bootable-jar-build-artifacts`
* *Alias*: `bootable-jar-build-artifacts`
[[channels]] *channels* +
List of channel URL and/or Maven coordinates (version being
optional).
* *Type*: `java.util.List`
* *Required*: `No`
* *Alias*: `channels`
[[cliSessions]] *cliSessions* +
List of CLI execution sessions. An embedded server is started for
each CLI session. If a script file is not absolute, it has to be
relative to the project base directory. CLI session are configured
in the following way: +
<cli-sessions> +
<cli-session> +
<script-files> +
<script>../scripts/script1.cli</script> +
</script-files> +
<!-- Expressions resolved during server execution --> +
<resolve-expressions>false</resolve-expressions> +
</cli-session> +
<cli-session> +
<script-files> +
<script>../scripts/script2.cli</script> +
</script-files> +
<properties-file>../scripts/cli.properties</properties-file> +
</cli-session> +
</cli-sessions>
* *Type*: `java.util.List`
* *Required*: `No`
* *Alias*: `cli-sessions`
[[cloud]] *cloud* +
To enable cloud support. When cloud support is enabled, the created
bootable JAR will operate properly in context such as openshift.
+
In order to enable authenticated cluster jgroups protocol, set
<enable-jgroups-password>true</enable-jgroups-password>.
The environment variable JGROUPS_CLUSTER_PASSWORD must then be set
to the password value.
* *Type*: `org.wildfly.plugins.bootablejar.maven.cloud.CloudConfig`
* *Required*: `No`
* *Alias*: `cloud`
[[contextRoot]] *contextRoot* +
To make the WAR deployment registered under root resource path
('/').
* *Type*: `boolean`
* *Required*: `No`
* *User Property*: `wildfly.bootable.context.root`
* *Default*: `true`
* *Alias*: `context-root`
[[debug]] *debug* +
Enable/Disable debug. If debugger is explicitly enabled in JVM
arguments, this option has no effect,
* *Type*: `boolean`
* *Required*: `No`
* *User Property*: `wildfly.bootable.debug`
* *Default*: `false`
[[debugPort]] *debugPort* +
Debug port.
* *Type*: `int`
* *Required*: `No`
* *User Property*: `wildfly.bootable.debug.port`
* *Default*: `8787`
* *Alias*: `debug-port`
[[debugSuspend]] *debugSuspend* +
Debug suspend.
* *Type*: `boolean`
* *Required*: `No`
* *User Property*: `wildfly.bootable.debug.suspend`
* *Default*: `false`
* *Alias*: `debug-suspend`
[[disableWarnForArtifactDowngrade]] *disableWarnForArtifactDowngrade* +
Deprecated. The plugin prints a warning when an overridden artifact
is downgraded (updated to an older version). The version comparison
is done based on Maven versioning. This warning can be disabled by
setting this parameter to true.
* *Type*: `boolean`
* *Required*: `No`
* *User Property*: `bootable.jar.disable.warn.for.artifact.downgrade`
* *Default*: `false`
* *Alias*: `disable-warn-for-artifact-downgrade`
[[displayCliScriptsOutput]] *displayCliScriptsOutput* +
By default executed CLI scripts output is not shown if execution is
successful. In order to display the CLI output, set this option to
true.
* *Type*: `boolean`
* *Required*: `No`
* *Alias*: `display-cli-scripts-output`
[[dumpOriginalArtifacts]] *dumpOriginalArtifacts* +
Deprecated. Set this parameter to true in order to retrieve the set
of artifacts that can be upgraded. The file
`target/bootable-jar-build-artifacts/bootable-jar-server-original-artifacts.xml`
is generated. It contains XML elements for the Galleon
feature-packs dependencies, JBoss Modules runtime and artifacts.
JBoss Modules modules artifacts are grouped by JBoss Modules name.
The generated file contains only the artifacts that are provisioned
by Galleon. Each artifact version is the one that would get
installed when building the Bootable JAR without upgrade.
* *Type*: `boolean`
* *Required*: `No`
* *User Property*: `bootable.jar.dump.original.artifacts`
* *Default*: `false`
* *Alias*: `dump-original-artifacts`
[[excludedLayers]] *excludedLayers* +
A list of Galleon layers to exclude. Can be used when
feature-pack-location or feature-packs are set.
* *Type*: `java.util.List`
* *Required*: `No`
* *Alias*: `excluded-layers`
[[extraServerContentDirs]] *extraServerContentDirs* +
A list of directories to copy content to the provisioned server. If
a directory is not absolute, it has to be relative to the project
base directory.
* *Type*: `java.util.List`
* *Required*: `No`
* *User Property*: `wildfly.bootable.package.extra.server.content.dirs`
* *Alias*: `extra-server-content-dirs`
[[featurePackLocation]] *featurePackLocation* +
The WildFly Galleon feature-pack location to use if no
provisioning.xml file found. Can't be used in conjunction with
feature-packs.
* *Type*: `java.lang.String`
* *Required*: `No`
* *User Property*: `wildfly.bootable.fpl`
* *Alias*: `feature-pack-location`
[[featurePacks]] *featurePacks* +
A list of feature-pack configurations to install, can be combined
with layers. Overrides galleon/provisioning.xml file. Can't be used
in conjunction with feature-pack-location.
* *Type*: `java.util.List`
* *Required*: `No`
* *Alias*: `feature-packs`
[[hollowJar]] *hollowJar* +
Hollow JAR. Create a bootable JAR that doesn't contain application.
* *Type*: `boolean`
* *Required*: `No`
* *User Property*: `wildfly.bootable.hollow`
* *Alias*: `hollow-jar`
[[hostname]] *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`
[[ignorePatterns]] *ignorePatterns* +
File patterns that we should ignore during watch. Hidden files and
files ending with '~' are ignored. You can set the system property
`wildfly.bootable.ignore.patterns` to a white space
separated list of file patterns.
* *Type*: `java.util.List`
* *Required*: `No`
* *User Property*: `wildfly.bootable.ignore.patterns`
* *Alias*: `ignore-patterns`
[[installArtifactClassifier]] *installArtifactClassifier* +
When calling mvn 'install', the bootable JAR artifact is attached
to the project with the classifier 'bootable'. Use this parameter
to configure the classifier.
* *Type*: `java.lang.String`
* *Required*: `No`
* *User Property*: `bootable.jar.install.artifact.classifier`
* *Default*: `bootable`
* *Alias*: `install-artifact-classifier`
[[jvmArguments]] *jvmArguments* +
Additional JVM options.
* *Type*: `java.util.List`
* *Required*: `No`
* *User Property*: `wildfly.bootable.jvmArguments`
[[layers]] *layers* +
A list of Galleon layers to provision. Can be used when
feature-pack-location or feature-packs are set.
* *Type*: `java.util.List`
* *Required*: `No`
* *Alias*: `layers`
[[logTime]] *logTime* +
Whether to log provisioning time at the end
* *Type*: `boolean`
* *Required*: `No`
* *Default*: `false`
* *Alias*: `log-time`
[[offline]] *offline* +
Whether to use offline mode when the plugin resolves an artifact.
In offline mode the plugin will only use the local Maven repository
for an artifact resolution.
* *Type*: `boolean`
* *Required*: `No`
* *Default*: `false`
* *Alias*: `offline`
[[outputFileName]] *outputFileName* +
By default the generated JAR is
${project.build.finalName}-bootable.jar
* *Type*: `java.lang.String`
* *Required*: `No`
* *User Property*: `wildfly.bootable.package.output.file.name`
* *Alias*: `output-file-name`
[[overriddenServerArtifacts]] *overriddenServerArtifacts* +
Deprecated. A list of artifacts that override the one referenced in
the WildFly Galleon feature-pack used to build the Bootable JAR.
The artifacts present in this list must exist in the project
dependencies (with a `provided` scope). GroupId and
ArtifactId are mandatory. Classifier is required if non null.
Version and Type are optional and are retrieved from the project
dependencies. Dependencies on Galleon feature-pack can also be
referenced from this list. `zip` type must be used for
Galleon feature-packs. NB: This configuration item can't be used
when Channels are in use. +
Example of an override of the
`io.undertow:undertow-core` artifact: +
<overridden-server-artifacts> +
<artifact> +
<groupId>io.undertow</groupId> +
<artifactId>undertow-core</artifactId> +
</artifact> +
</overridden-server-artifacts> +
* *Type*: `java.util.List`
* *Required*: `No`
* *Alias*: `overridden-server-artifacts`
[[password]] *password* +
Remote connection password.
* *Type*: `java.lang.String`
* *Required*: `No`
* *User Property*: `wildfly.bootable.remote.password`
[[pluginOptions]] *pluginOptions* +
Arbitrary Galleon options used when provisioning the server. In
case you are building a large amount of bootable JAR in the same
maven session, it is strongly advised to set 'jboss-fork-embedded'
option to 'true' in order to fork Galleon provisioning and CLI
scripts execution in dedicated processes. For example: +
<plugin-options> +
<jboss-fork-embedded>true</jboss-fork-embedded> +
</plugin-options>
* *Type*: `java.util.Map`
* *Required*: `No`
* *Alias*: `plugin-options`
[[port]] *port* +
Specifies the port number the server is listening on.
* *Type*: `int`
* *Required*: `No`
* *User Property*: `wildfly.port`
* *Default*: `9990`
[[projectBuildDir]] *projectBuildDir* +
Project build dir.
* *Type*: `java.lang.String`
* *Required*: `No`
* *Default*: `${project.build.directory}`
[[protocol]] *protocol* +
Remote connection protocol.
* *Type*: `java.lang.String`
* *Required*: `No`
* *User Property*: `wildfly.bootable.remote.protocol`
* *Default*: `remote+http`
[[provisioningFile]] *provisioningFile* +
The path to the `provisioning.xml` file to use. Note
that this cannot be used with the `feature-packs` or
`layers` configuration parameters. If the provisioning
file is not absolute, it has to be relative to the project base
directory.
* *Type*: `java.io.File`
* *Required*: `No`
* *User Property*: `wildfly.bootable.provisioning.file`
* *Default*: `${project.basedir}/galleon/provisioning.xml`
* *Alias*: `provisioning-file`
[[recordState]] *recordState* +
Whether to record provisioned state in .galleon directory.
* *Type*: `boolean`
* *Required*: `No`
* *Default*: `false`
* *Alias*: `record-state`
[[remote]] *remote* +
Enable/Disable remote connection.
* *Type*: `boolean`
* *Required*: `No`
* *User Property*: `wildfly.bootable.remote`
* *Default*: `false`
[[skip]] *skip* +
Set to `true` if you want the deployment to be skipped,
otherwise `false`.
* *Type*: `boolean`
* *Required*: `No`
* *User Property*: `wildfly.bootable.package.skip`
* *Default*: `false`
[[sourceDir]] *sourceDir* +
(no description)
* *Type*: `java.io.File`
* *Required*: `No`
* *Default*: `${project.build.sourceDirectory}`
[[timeout]] *timeout* +
The timeout, in seconds, to wait for a management connection.
* *Type*: `int`
* *Required*: `No`
* *User Property*: `wildfly.timeout`
* *Default*: `60`
[[username]] *username* +
Remote connection username.
* *Type*: `java.lang.String`
* *Required*: `No`
* *User Property*: `wildfly.bootable.remote.username`
[[webExtensions]] *webExtensions* +
Additional extensions of files located in `src/webapp`
directory and its sub-directories that don't require a redeployment
on update. The builtin list is `html, xhtml, jsp, css`.
You can set the system property
`wildfly.bootable.web.extensions` to a white space
separated list of file extensions.
* *Type*: `java.util.List`
* *Required*: `No`
* *User Property*: `wildfly.bootable.web.extensions`
* *Alias*: `web-extensions`