Skip to content

Instantly share code, notes, and snippets.

@hasalex
Last active November 27, 2015 10:47
Show Gist options
  • Save hasalex/fefef0ba31d946571069 to your computer and use it in GitHub Desktop.
Save hasalex/fefef0ba31d946571069 to your computer and use it in GitHub Desktop.
# Building WildFly AS 9
version=9.0.2.Final
# Download and prepare the source code
wget https://github.com/wildfly/wildfly/tarball/$version
tar -xvf $version
cd wildfly-*
# Build it !
./build.sh -DskipTests -Dskip-enforce -T1C
# -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-$version /opt/java/
# Copy the archive
cp build/target/wildfly-$version.zip ~/archives/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment