Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?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>com.eeu46f</groupId>
- <artifactId>utopiaDatabase</artifactId>
- <version>1.0-SNAPSHOT</version>
- <packaging>jar</packaging>
- <profiles>
- <profile>
- <id>hsql</id>
- <dependencies>
- <dependency>
- <groupId>org.hsqldb</groupId>
- <artifactId>hsqldb</artifactId>
- <version>2.3.2</version>
- <classifier>jdk6debug</classifier>
- </dependency>
- </dependencies>
- <properties>
- <jdbc.url>jdbc:hsqldb:mem:testDB</jdbc.url>
- <jdbc.username>SA</jdbc.username>
- <jdbc.password></jdbc.password>
- <jdbc.driver>org.hsqldb.jdbc.JDBCDriver</jdbc.driver>
- </properties>
- </profile>
- <profile>
- <id>mysql</id>
- <dependencies>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.6</version>
- <scope>runtime</scope>
- </dependency>
- </dependencies>
- <properties>
- <jdbc.url>jdbc:mysql://mysql.cs.bangor.ac.uk:3306/eeu46f</jdbc.url>
- <jdbc.username>eeu46f</jdbc.username>
- <jdbc.password>eeu46f</jdbc.password>
- <jdbc.driver>com.mysql.jdbc.Driver</jdbc.driver>
- </properties>
- </profile>
- </profiles>
- <dependencies>
- <dependency>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>sql-maven-plugin</artifactId>
- <version>1.5</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.6</version>
- </dependency>
- </dependencies>
- <properties>
- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
- <maven.compiler.source>1.7</maven.compiler.source>
- <maven.compiler.target>1.7</maven.compiler.target>
- </properties>
- <build>
- <resources>
- <resource>
- <directory>src/main/resources</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>sql-maven-plugin</artifactId>
- <version>1.5</version>
- <dependencies>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>5.1.6</version>
- </dependency>
- </dependencies>
- <configuration>
- <driver>${jdbc.driver}</driver>
- <url>${jdbc.url}</url>
- <username>${jdbc.username}</username>
- <password>${jdbc.password}</password>
- </configuration>
- <executions>
- <execution>
- <phase>generate-test-resources</phase>
- <goals>
- <goal>execute</goal>
- </goals>
- <configuration>
- <srcFiles>
- <srcFile>src/test/resources/1-destroy.sql</srcFile>
- <srcFile>src/test/resources/2-create.sql</srcFile>
- <srcFile>src/test/resources/3-insert.sql</srcFile>
- </srcFiles>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- <name>utopiaDatabase</name>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement