-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
98 lines (93 loc) · 3.91 KB
/
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
95
96
97
98
<?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>io.github.maven.it</groupId>
<artifactId>simple-it</artifactId>
<version>1.0-SNAPSHOT</version>
<description>A simple IT verifying the basic use case.</description>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<!-- database config (local) -->
<jdbc.driver>org.hsqldb.jdbc.JDBCDriver</jdbc.driver>
<jdbc.url>jdbc:hsqldb:file:${basedir}/target/data/sampledb;shutdown=true</jdbc.url>
<jdbc.user>SA</jdbc.user>
<jdbc.password>a</jdbc.password>
</properties>
<build>
<plugins>
<!-- create test database -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sql-maven-plugin</artifactId>
<version>1.5</version>
<dependencies>
<!-- specify the dependent JDBC driver here -->
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.7.1</version>
</dependency>
</dependencies>
<configuration>
<driver>${jdbc.driver}</driver>
<url>${jdbc.url}</url>
<username>${jdbc.user}</username>
<password>${jdbc.password}</password>
</configuration>
<executions>
<execution>
<phase>pre-site</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<srcFiles>
<srcFile>${basedir}/src/main/resources/createdb.sql</srcFile>
</srcFiles>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>io.github.jdlopez</groupId>
<artifactId>dbdoc-maven-plugin</artifactId>
<version>1.3-SNAPSHOT</version>
<configuration>
<jdbcDriver>${jdbc.driver}</jdbcDriver>
<jdbcUrl>${jdbc.url}</jdbcUrl>
<jdbcUser>${jdbc.user}</jdbcUser>
<jdbcPass>${jdbc.password}</jdbcPass>
<cfgOverwriteSource>true</cfgOverwriteSource>
<overwriteSource>false</overwriteSource>
</configuration>
<!-- add jdbc driver depends -->
<dependencies>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.7.1</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>dbdoc</id>
<phase>site</phase>
<goals>
<goal>dbdoc</goal>
</goals>
</execution>
<execution>
<id>dbconfig</id>
<phase>site</phase>
<goals>
<goal>configdoc</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>