To start HSQLDB with maven you have to add HSQLDB dependancy to your pom.xml file.
<dependency> <groupId>org.hsqldb</groupId> <artifactId>hsqldb</artifactId> <version>2.0.0</version> <scope>runtime</scope> </dependency>
After this go to command line and start this command:
mvn exec:java -Dexec.mainClass=org.hsqldb.Server -D"exec.args=-database.0 file:target/data/caveat-emptor"
- exec:java will start JVM
- -D is telling that given parameter is directly send to JVM (it is not for MVN)
- exec.mainClass will start main method from class org.hsqldb.Server
- exec.args will send given arguments to main method of Server class