Watch and Deploy - deploying ThinWARs without IDE plugins
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src pom.xml changes are also considered Jan 14, 2019
.gitignore nbactions.xml excluded Dec 23, 2018
LICENSE Initial commit Dec 9, 2018
README.md recursion replaced with iteration Jan 2, 2019
pom.xml pom.xml changes are also considered Jan 14, 2019

README.md

Watch and Deploy (WAD)

WAD watches changes in src\main\java folder, builds the project using the pom.xml and deploys the ThinWAR into the configured folder.

usage

Launch WAD from within your ThinWAR-project created with javaee8-essentials-archetype.

[THIN_WAR]/java -jar wad.jar [DEPLOYMENT_DIR]

e.g.

[THIN_WAR]/java -jar wad.jar /openliberty/wlp/usr/servers/defaultServer/dropins/

or multiple servers:

[THIN_WAR]/java -jar wad.jar /openliberty/wlp/usr/servers/defaultServer/dropins/ wildfly/standalone/deployments payara/glassfish/domains/domain1/autodeploy tomee/webapps

On each source change WAD will:

  1. Use the current directory as the service name
  2. Build the project using the pom.xml found in the directory
  3. Copy the ./target/[name].war into the path used as parameter

You only have to write code and save it frequently like this:

 WAD

Common deployment directories

WildFly wildfly-[VERSION].Final/standalone/deployments

OpenLiberty openliberty-[VERSION]/usr/servers/defaultServer/dropins

Payara payara/glassfish/domains/domain1/autodeploy

TomEE tomee-[version]/webapps