This project has been created in order speed up the building of the OrientDB database snapshots during the initial Strongbox startup. Before this project was born, it took some time to do all of the database changes from the beginning of time up until the most recent version, so that the OrientDB database structure would be populated properly.
This application consists of the following modules:
strongbox-db-liquibase
which creates ajar
file consiting of the liquibase changesets that construct the Strongbox OrientDB database schemastrongbox-db-import
which creates azip
file with packed built database snapshot built from the liquibase changesets
How is this project used in strongbox ?
strongbox uses this project submodules as required dependencies. During the startup of Strongbox, the application detects if an OrientDB database already exists. If not, then the application uses an extracted empty OrientDB database snapshot from the strongbox-db-import
artifact. If the OrientDB database already exists, then the application applies all missing liquibase changesets from the strongbox-db-liquibase
artifact.
To build the code, simply execute:
mvn clean install
This project produces the following artifacts:
strongbox-db-liquibase-${version}.jar
: Located instrongbox-db-liquibase/target
, which contains current database liquibase changesetsstrongbox-db-import-${version}.zip
: Located instrongbox-db-import/target
, which contains zipped fresh database snapshot built from the above changesets