forked from getodk/aggregate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
postgresql-pom.xml
94 lines (94 loc) · 3.35 KB
/
postgresql-pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?xml version="1.0"?>
<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>
<parent>
<groupId>org.opendatakit</groupId>
<artifactId>aggregate</artifactId>
<version>1.0.1</version>
<relativePath>pom.xml</relativePath>
</parent>
<artifactId>aggregate-postgresql-specific</artifactId>
<version>1.0.1</version>
<packaging>pom</packaging>
<name>ODK Aggregate PostgreSQL Specific</name>
<modules>
<module>aggregate-postgresql</module>
<module>postgresql-unit-tests</module>
</modules>
<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>${maven.antrun.plugin.version}</version>
<executions>
<execution>
<!-- Makes sure we start with a clean postgres (no pre-existing database that we want to create) -->
<id>postgresql-teardown-clean</id>
<phase>pre-clean</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec executable="${postgres.client.executable}" failonerror="false">
<env key="PGPASSWORD" value="${postgres.root.password}" />
<arg line="-U postgres -a -n -w -f "${scriptSourceDirectory}/postgres_teardown.sql"" />
</exec>
</target>
</configuration>
</execution>
<execution>
<!-- Makes sure we start with a clean postgres (no pre-existing database that we want to create) -->
<id>pre-postgresql-teardown</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec executable="${postgres.client.executable}" failonerror="false">
<env key="PGPASSWORD" value="${postgres.root.password}" />
<arg line="-U postgres -a -n -w -f "${scriptSourceDirectory}/postgres_teardown.sql"" />
</exec>
</target>
</configuration>
</execution>
<execution>
<!-- Sets up the postgres database for use in integration testing -->
<id>postgresql-setup</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec executable="${postgres.client.executable}" failonerror="true">
<env key="PGPASSWORD" value="${postgres.root.password}" />
<arg line="-U postgres -a -n -w -f "${scriptSourceDirectory}/postgres_setup.sql"" />
</exec>
</target>
</configuration>
</execution>
<execution>
<!-- Tears down whatever we set up in the postgres-setup execution -->
<id>postgresql-teardown</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec executable="${postgres.client.executable}" failonerror="true">
<env key="PGPASSWORD" value="${postgres.root.password}" />
<arg line="-U postgres -a -n -w -f "${scriptSourceDirectory}/postgres_teardown.sql"" />
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>