AppServer Setup
To setup the application server, follow the following steps:
Encrypt master and server password
As described here, encrypt the master and server password to allow access to the ungana-models from Jfog Artifactory.
Create and encrypt master password with
mvn --encrypt-master-passwordStore the generated encypted master password in
${user.home}/.m2/settings-security.xmlin this formatsettings-security.xml<settingsSecurity><master>{ENCRYPTED_MASTER_PASSWORD}</master></settingsSecurity>N.B : If the .m2 folder does not exist, create it in the root directory then perform step 2
Create and encypt sever password with
mvn --encrypt-passwordStore the generated encypted server password in
${user.home}/.m2/settings.xmlin this formatsettings.xml<settings><servers><server><id>central</id><username>SERVER_USERNAME</username><password>{ENCRPTED_SERVER_PASSWORD}</password></server><server><id>snapshots</id>
Install mvn dependencies and package
In the AppServer directory, run the following command:
mvn clean package
Create the configurations YAML file (application-local.yaml) using the following format:
ADMAI/AppServer/src/main/resources/application-local.yamlspring:datasource:jdbc-url: ${POSTGRES_URL}username: ${POSTGRES_USERNAME}password: ${POSTGRES_PASS}driver-class-name: org.postgresql.Driverplatform: postgreshikari:connection-test-query: SELECT 1
Edit the credentials
NOTE The application-local.yaml file is the configuration file used to setup the server and add a database.
Setup pgAdmin
Using the credentials in the application-local.yaml file add a server and create a database
Run the Application Server
Run the TaskClerkMainApplication.java file