Documentation Index
Fetch the complete documentation index at: https://docs.activeviam.com/llms.txt
Use this file to discover all available pages before exploring further.
Building the Project
Maven Repositories
- From the ActiveViam share page, download the maven repository for the version of the Solution is based on (will be specified in the release notes of the Solution you are deploying). The zip file containing the maven repository will be called maven-repository-<version number>.zip.
- On the Solution Release Notes page, follow the directions to the Distribution Files section and download the maven repository for the Solution (contains all dependencies required to build the Solution that aren’t included in the download). A zip file containing the maven repository will be called frtb-<version number>-maven-repository.zip. Add these repositories to your existing maven repository.
Source
Download and unzip the source zip from the Artifactory page.Build
- To compile the source code using Maven, you must set your
MAVEN_OPTSenvironment variable, to pass Java options, like so:MAVEN_OPTS="-Xss8m".
-
Once you have added all the maven repositories and extracted the
source code, run
mvn installon the parent pom file to build the entire project. This will build the executable JAR files for (frtb-stater/target/frtb-starter-exec.jar). - When the build is complete, you must deploy it. See Deployment.
- Build the standalone UI application using npm or yarn.
- Deploy the UI application.
Configuration
See Project configuration.Deployment
From FRTB 2.1.0 onwards, the frtb-starter is a Spring Boot application that builds to an executable JAR. To deploy the executable JAR files, simply use the following commands:-
Use the argument
server.port. For example: - Externalize the properties files (see Externalizing Properties Files )
-
Build the standalone application:
- Use maven to build the project. You can use the
command
mvn clean installon the parent pom - This will build all the necessary modules including the Javascript UI
- Use maven to build the project. You can use the
command
-
Place the deployment in the webapps folder of your Tomcat
- Find where the webapps folder is for your Tomcat
- Create a folder called frtb-activeui in the Tomcat webapps folder
- Copy the contents from the build folder into your new folder webapps/frtb-activeui/
- Start the Tomcat server. You can now access the UI on the address http://<your hostname>:<port>/frtb-activeui/.
Externalizing Properties Files
In the default implementation, all the necessary properties are within the project. A number of properties files have been externalized and can be overridden with an external file using JVM variables. You may wish to use this functionality if you are running the project in different environments. Below is a list of the files together with their respective variable names: There are three options to override default properties:-
OPTION 1: Command line arguments, e.g.
--csv-source.dataset=/path/to/folder.
Note:
Here we use “--” when providing the option after calling the jar.
If the option was called first, then “-D” is used. -
OPTION 2: Create a properties file (e.g.
application.properties)and add your property overrides. Then pass it to the main using the command line argument--spring.config.additional-location=/<path> application.properties - OPTION 3: Change the path to the default properties file using the appropriate variable specified below: | File | Variable Name | | --- | --- | | application.properties | app.env.properties.file.path | | hibernate.properties | hibernate.env.properties.file.path |
classpath:<filename>;file:/home/etc/<filename>; - Unix Environmentfile:///C:/Users/john/config/<filename>; - Windows environment