I am working on a project for school and need to replace hsqldb with postgresql in a maven project.
Currently we start the hsql Server by running
mvn exec:java -P hsqldb
To my knowlege this looks up the hsqldb profile in the pom.xml
<profile>
<id>hsqldb</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>org.hsqldb.server.Server</mainClass>
<arguments>
<argument>-database.0</argument>
<argument>db/name</argument>
<argument>-dbname.0</argument>
<argument>name</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
So I need to relace this part with a postgres setup, I already added postgres as a dependency.
<mainClass>ServerClass</mainClass>
is my biggest problem since I cant find the main server class in the postgresql jar