Building the application
To build the application, you will need a Java Development Kit (JDK) installation at least version 11. Tested is OpenJDK Version 11. You will also need a working Apache Maven environment with at least version 3.3.
Verify if your java and maven installation is working:
~$ java -version openjdk version "11.0.11" 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2, mixed mode, sharing) ~$ mvn --version Apache Maven 3.6.3
Download a tagged release from the GIT Repository. Unzip the download into a directory. You can also clone the GIT Repo and checkout the tagged release, or build the actual branch.
Change into the source directory and call
mvn clean package. This will trigger the build with standard values from the profile "prod" in the parent pom.xml. You can find the built ear file in the bwreg-ear/target directory. Please keep in mind, that maven will need an internet connection in order to download the necessary libraries.
With versions prior to 2.5.10 the default profile "prod" creates a ear which will run with JBoss 6.x. With version 2.5.10 the default profile is "prod-wildfly". You can change the profile which is used for build with the -P parameter, e.g.
mvn -Pprod-wildfly clean package.
Please consider using a seperate build profile for your environment. You can specify this profile in your maven settings.xml. For version prior to 2.5.10 you have to take this step, if you want to deploy the application on wildfly. Recent versions can be used without having to change parameters at compile time.
Next step: Prepare/Install database