Skip to content

Instantly share code, notes, and snippets.

@hasalex
Last active December 18, 2015 21:59
Show Gist options
  • Save hasalex/5851579 to your computer and use it in GitHub Desktop.
Save hasalex/5851579 to your computer and use it in GitHub Desktop.
Bash script for building WildFly AS 8.0.0 Alpha2 : bash <(curl -s https://raw.github.com/gist/5851579)
# Building WildFly AS 8.0.0.Alpha2
wget https://github.com/wildfly/wildfly/archive/8.0.0.Alpha2.tar.gz
tar -xf 8.0.0.Alpha2.tar.gz
cd wildfly-8.0.0.Alpha2
./build.sh -DskipTests -T1C -Drelease=true # -Drelease=true creates the distribution archives
# -DskipTests can be omitted but build would be much longer
# -T1C launches one build thread per processor ; it should be used only when -DskipTests is on
# Copy the binaries
cp -R build/target/wildfly-8.0.0.Alpha2 /opt/java/
# Copy the archive
cp dist/target/wildfly-8.0.0.Alpha2.zip ~/archives/
@ehsavoie
Copy link

ehsavoie commented Jul 2, 2013

If you want to use Apache Maven 3.1-alpha1 (living on the edge) you might add -Dversion.enforcer.plugin=1.3

@hasalex
Copy link
Author

hasalex commented Aug 13, 2013

The script is working for Alpha3 and Alpha4 too. Just change all the "Alpha2" text portions to "Alpha4".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment