|
|
# Building the application
|
|
|
|
|
|
To build the application, you will need a [Java Development Kit (JDK)](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) installation at least version 7. Also tested is OpenJDK Version 7 and 8. You will also need a working [Apache Maven](https://maven.apache.org/) environment with at least version 3.1.
|
|
|
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](https://maven.apache.org/) environment with at least version 3.3.
|
|
|
|
|
|
Verify if your java and maven installation is working:
|
|
|
|
|
|
```sh
|
|
|
~$ java -version
|
|
|
java version "1.7.0_85"
|
|
|
OpenJDK Runtime Environment (IcedTea 2.6.1) (7u85-2.6.1-6+deb8u1)
|
|
|
OpenJDK 64-Bit Server VM (build 24.85-b03, mixed mode)
|
|
|
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.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-13T21:10:27+01:00)
|
|
|
Apache Maven 3.6.3
|
|
|
```
|
|
|
|
|
|
Download a tagged release from the [GIT Repository](https://git.scc.kit.edu/simon/reg-app). Unzip the download into a directory. You can also clone the GIT Repo and checkout the tagged release, or build the actual branch.
|
|
|
Download a tagged release from the [GIT Repository](https://git.scc.kit.edu/reg-app/reg-app). 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](https://maven.apache.org/settings.html). For version prior to 2.5.10 you have to take this step, if you want to deploy the application on wildfly. |
|
|
Please consider using a seperate build profile for your environment. You can specify this profile in your [maven settings.xml](https://maven.apache.org/settings.html). 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. |