Created
August 11, 2015 15:46
-
-
Save vinaynair/e67dcfa14c86de627b3f to your computer and use it in GitHub Desktop.
HSQLDB Maven POM helper profiles
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
$> mvn exec:exec -Phsqldb-server to start the server | |
$> mvn exec:exec -Phsqldb-client to start the swing client to this server | |
--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.terracotta.demo</groupId> | |
<artifactId>hsqldb</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<properties> | |
<hsqldb.version>2.3.3</hsqldb.version> | |
</properties> | |
<dependencies> | |
<dependency> | |
<groupId>org.hsqldb</groupId> | |
<artifactId>hsqldb</artifactId> | |
<version>${hsqldb.version}</version> | |
</dependency> | |
</dependencies> | |
<profiles> | |
<profile> | |
<id>hsqldb-server</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.2</version> | |
<configuration> | |
<executable>java</executable> | |
<arguments> | |
<argument>-classpath</argument> | |
<classpath/> | |
<argument>org.hsqldb.Server</argument> | |
<argument>-database.0</argument> | |
<argument>file:mydb</argument> | |
<argument>-dbname.0</argument> | |
<argument>mydb</argument> | |
</arguments> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
<profile> | |
<id>hsqldb-client</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>exec-maven-plugin</artifactId> | |
<version>1.2</version> | |
<configuration> | |
<executable>java</executable> | |
<arguments> | |
<argument>-classpath</argument> | |
<classpath/> | |
<argument>org.hsqldb.util.DatabaseManagerSwing</argument> | |
<argument>--url</argument> | |
<argument>jdbc:hsqldb:hsql://localhost/mydb</argument> | |
</arguments> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
</profile> | |
</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment