Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: pom.xml
- ===================================================================
- --- pom.xml (revision 164)
- +++ pom.xml (working copy)
- @@ -62,5 +62,123 @@
- <version>1.7.0</version>
- </dependency>
- +
- </dependencies>
- + <build>
- + <plugins>
- + <plugin>
- + <groupId>org.codehaus.mojo</groupId>
- + <artifactId>sql-maven-plugin</artifactId>
- + <version>1.4</version>
- + <dependencies>
- + <dependency>
- + <groupId>postgresql</groupId>
- + <artifactId>postgresql</artifactId>
- + <version>9.0-801.jdbc4</version>
- + </dependency>
- + </dependencies>
- +
- + <configuration>
- + <driver>org.postgresql.Driver</driver>
- + <url>jdbc:postgresql://localhost:5432:arcops</url>
- + <username>postgres</username>
- + <password>novell</password>
- + <!-- You can comment out username/password configurations and
- + have maven to look them up in your settings.xml using ${settingsKey}
- + -->
- + <settingsKey>sensibleKey</settingsKey>
- + <!--all executions are ignored if -Dmaven.test.skip=true-->
- + <skip>${maven.test.skip}</skip>
- + </configuration>
- + <executions>
- + <execution>
- + <id>drop-db-before-test-if-any</id>
- + <phase>process-test-resources</phase>
- + <goals>
- + <goal>execute</goal>
- + </goals>
- + <configuration>
- + <!-- need another database to drop the targeted one -->
- + <url>jdbc:postgresql://localhost:5432:bootstrapdb</url>
- + <autocommit>true</autocommit>
- + <sqlCommand>drop database arcops</sqlCommand>
- + <!-- ignore error when database is not avaiable -->
- + <onError>continue</onError>
- + </configuration>
- + </execution>
- + <execution>
- + <id>create-db</id>
- + <phase>process-test-resources</phase>
- + <goals>
- + <goal>execute</goal>
- + </goals>
- + <configuration>
- + <url>jdbc:postgresql://localhost:5432:arcops</url>
- + <!-- no transaction -->
- + <autocommit>true</autocommit>
- + <sqlCommand>create database arcops</sqlCommand>
- + </configuration>
- + </execution>
- + <execution></execution>
- + </executions>
- + </plugin>
- + <plugin>
- + <groupId>org.codehaus.mojo</groupId>
- + <artifactId>hibernate3-maven-plugin</artifactId>
- + <version>2.2</version>
- + <dependencies>
- + <dependency>
- + <groupId>org.hibernate</groupId>
- + <artifactId>hibernate-entitymanager</artifactId>
- + <version>3.6.5.Final</version>
- + <exclusions>
- + <exclusion>
- + <groupId>cglib</groupId>
- + <artifactId>cglib</artifactId>
- + </exclusion>
- + <exclusion>
- + <groupId>commons-logging</groupId>
- + <artifactId>commons-logging</artifactId>
- + </exclusion>
- + </exclusions>
- + </dependency>
- + <dependency>
- + <groupId>org.hibernate</groupId>
- + <artifactId>hibernate-core</artifactId>
- + <version>3.6.5.Final</version>
- + <exclusions>
- + <exclusion>
- + <groupId>cglib</groupId>
- + <artifactId>cglib</artifactId>
- + </exclusion>
- + <exclusion>
- + <groupId>commons-logging</groupId>
- + <artifactId>commons-logging</artifactId>
- + </exclusion>
- + </exclusions>
- + </dependency>
- + </dependencies>
- + <executions>
- + <execution>
- + <phase>install</phase>
- + <goals>
- + <goal>hbm2ddl</goal>
- + </goals>
- + </execution>
- + </executions>
- + <configuration>
- + <hibernate>
- + <configurationFile>src/main/resources/ops.postgres.cfg.xml</configurationFile>
- + </hibernate>
- + <outputDirectory>
- + <hbm2dll>src/main/resources</hbm2dll>
- + </outputDirectory>
- + <outputFile>dbcreate.sql</outputFile>
- + <update>true</update>
- + <drop>true</drop>
- + <format>true</format>
- + </configuration>
- + </plugin>
- + </plugins>
- + </build>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement