BuildPortabilityEnvironment Building the Software Using Maven 2 PortabilityThis database is written in Java and therefore works on many platforms. It can also be compiled to a native executable using GCJ. EnvironmentTo build the database executables, the following software stack was used. In most cases, newer version or compatible software works too.
Building the SoftwareOn the command line, go to the directory src and execute the following command: ant -projecthelpYou will get a list of targets. If you want to build the jar files, execute: ant jarTo create a jar file with the JDBC API and the classes required to connect to a server only, use the target jarClient: ant jarClientThe other targets may be used as well. Using Maven 2Using a Central RepositoryYou can include the database in your Maven 2 project as a dependency. Example: <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>1.0.58</version> </dependency> Using Snapshot VersionTo build a 'snapshot' H2 .jar file and upload it the to the local Maven 2 repository, execute the following command: ant mavenInstallLocalAfterwards, you can include the database in your Maven 2 project as a dependency: <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>1.0-SNAPSHOT</version> </dependency> |