forked from getodk/aggregate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mysql-pom.xml
94 lines (94 loc) · 3.13 KB
/
mysql-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-mysql-specific</artifactId>
<version>1.0.1</version>
<packaging>pom</packaging>
<name>ODK Aggregate MySQL Specific</name>
<modules>
<module>aggregate-mysql</module>
<module>mysql-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 mysql (no pre-existing database that we want to create) -->
<id>mysql-teardown-clean</id>
<phase>pre-clean</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec executable="${mysql.client.executable}" failonerror="false">
<arg line="-u root --force -p${mysql.root.password}" />
<redirector input="${scriptSourceDirectory}/mysql_teardown.sql" />
</exec>
</target>
</configuration>
</execution>
<execution>
<!-- Makes sure we start with a clean mysql (no pre-existing database that we want to create) -->
<id>pre-mysql-teardown</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec executable="${mysql.client.executable}" failonerror="false">
<arg line="-u root --force -p${mysql.root.password}" />
<redirector input="${scriptSourceDirectory}/mysql_teardown.sql" />
</exec>
</target>
</configuration>
</execution>
<execution>
<!-- Sets up the mysql database for use in integration testing -->
<id>mysql-setup</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec executable="${mysql.client.executable}" failonerror="true">
<arg line="-u root -p${mysql.root.password}" />
<redirector input="${scriptSourceDirectory}/mysql_setup.sql" />
</exec>
</target>
</configuration>
</execution>
<execution>
<!-- Tears down whatever we set up in the mysql-setup execution -->
<id>mysql-teardown</id>
<phase>verify</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target>
<exec executable="${mysql.client.executable}" failonerror="true">
<arg line="-u root -p${mysql.root.password}" />
<redirector input="${scriptSourceDirectory}/mysql_teardown.sql" />
</exec>
</target>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>