|
|
# Building the application
|
|
# 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](https://maven.apache.org/) environment with at least version 3.3.
|
|
To build the application, you will need a Java Development Kit (JDK) installation at least version 17. Tested is OpenJDK Version 17. You will also need a working [Apache Maven](https://maven.apache.org/) environment with at least version 3.8.
|
|
|
|
|
|
|
|
Verify if your java and maven installation is working:
|
|
Verify if your java and maven installation is working:
|
|
|
|
|
|
|
|
```sh
|
|
```sh
|
|
|
~$ java -version
|
|
~$ java -version
|
|
|
openjdk version "11.0.11" 2021-04-20
|
|
openjdk version "17.0.9" 2023-10-17
|
|
|
OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2)
|
|
OpenJDK Runtime Environment (build 17.0.9+9-Debian-1deb12u1)
|
|
|
OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2, mixed mode, sharing)
|
|
OpenJDK 64-Bit Server VM (build 17.0.9+9-Debian-1deb12u1, mixed mode, sharing)
|
|
|
|
|
|
|
|
~$ mvn --version
|
|
~$ mvn --version
|
|
|
Apache Maven 3.6.3
|
|
Apache Maven 3.8.7
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
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.
|
|
Download a tagged release from the [GIT Repository](https://gitlab.kit.edu/kit/reg-app/regapp/). 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.
|
|
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`.
|
|
With versions prior to 2.5.10 the default profile "prod-wildfly" creates a ear which will run with Wildfly version higher than 25 (jee10). 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. Recent versions can be used without having to change parameters at compile time.
|
|
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).
|
|
|
|
|
|
|
|
Next step: [Prepare/Install database](/installation/Database) |
|
Next step: [Prepare/Install database](/installation/Database) |