Protocol Deviation Digital Healthcare Product
  • INTRODUCTION
    • Purpose
    • Scope
    • Deployment
  • USER GUIDE
    • User Login
    • User Roles and Permissions
      • Administration
        • User Management
        • Team Management
        • Study Management
        • Audit Trail
    • Data Files
      • Data File Requirements
      • Spreadsheets
        • Using the Spreadsheet for AI Categorisation
        • Using the Spreadsheet for Manual Categorisation
    • Data Upload
      • Audit Trail
      • Data Trail
      • Data Categorisation
    • Data Visualisation
      • Team Visualisations
      • Study Visualisations
    • Maintenance and Support
      • Troubleshooting for users
      • Support contact information
  • TECHNICAL DOCUMENTATION
    • Web App
      • Design
        • Database
        • Backend
        • Frontend
      • Installation
    • AI Classifier
      • User documentation
      • Administrator documentation
      • Code documentation
    • Developer Guide
      • Requirements
      • Installation
      • Builds
      • Database
Powered by GitBook
On this page
  1. TECHNICAL DOCUMENTATION
  2. Developer Guide

Builds

This document describes the maven build configurations.

Profiles

When building QA, there are different profiles you can use to enable different authentication methods and change the underlying database management system.

Profile
Description

Sqlite

Uses sqlite database

Postgres

Uses postgres database

Entra

Enables Entra authentication

Specifying profiles

To run QA with a profile, use the following

mvn spring-boot:run -Dspring.profiles.active=postgres

To run with multiple profiles, use

mvn spring-boot:run -Dspring.profiles.active=postgres,Entra

It is also possible to specify the profiles within the application.properties file in src/main/resources. You will need to add:

mvn spring-boot:run -Dspring.profiles.active=postgres,Entra

Troubleshooting

You may find that specifying the profiles as an environment variables throws an error on Windows. Some common fixes are:

  • Surrounding the variable in speech marks. See below:

    • mvn spring-boot:run -"Dspring.profiles.active=postgres,Entra"
  • Use -P instead

    • mvn spring-boot:run -Psqlite

PreviousInstallationNextDatabase

Last updated 2 months ago