Compile Code
Requirements
- Make sure you are familiar with the basics.
- Make sure you have the proper version of Java installed.
- Make sure you have the proper version of Maven installed.
- Make sure you have the proper version of MySQL installed.
See details here.
Compile the source code
- Download or clone the source code repositories of the choosen Core/Support systems and the common library from GitHUB.
- Execute
mvn clean install -DskipTestsin the root folder of the common library first, and then in the root folder of each repository. - After the build is complete, the executable
jarfile with the appropriateapplication.properitesandlog4j2.xmlconfiguration files will be available in<system-folder>/targetdirectory.- By default the test certificates will be built into the executable jar files. If you want your own certificates being built-in, then place them into the
<system-folder>/src/main/resources/certificatefolder before executing the above mentioned maven command.
- By default the test certificates will be built into the executable jar files. If you want your own certificates being built-in, then place them into the
- Execute
mysql -u <username> -p < create_empty_db.sqlcommand in the<system-folder>/src/main/resources/databasefolder for each system in order to create the database (if needed).
Start the Core/Support systems
-
Make sure you have the proper values in the configuration file before starting the required core systems.
The system configuration properties can be found in the
application.propertiesfile which is located next to the executable.jarfile of the system. Look for the configuration possibilities in the system descriptions (example). -
Execute
java -jar arrowhead-{core-system}-{version}.jarfrom the same folder. - Note that always the ServiceRegistry Core System has to be started first. The other ones should be started only when ServiceRegistry is up and running.