-
Notifications
You must be signed in to change notification settings - Fork 103
/
pom.xml
99 lines (97 loc) · 3.88 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
99
<?xml version="1.0" encoding="UTF-8"?>
<!--
*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*
-->
<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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.xwiki.enterprise</groupId>
<artifactId>xwiki-enterprise-database</artifactId>
<version>4.1-milestone-1</version>
</parent>
<artifactId>xwiki-enterprise-database-hsqldb</artifactId>
<name>XWiki Enterprise - Database - HSQLDB</name>
<packaging>pom</packaging>
<description>XWiki Enterprise - Database - HSQLDB</description>
<properties>
<xwiki.db.connection.url>jdbc:hsqldb:file:${project.build.directory}/database/xwiki_db;shutdown=true</xwiki.db.connection.url>
</properties>
<!-- Required for the exec:exec plugin execution below. Doesn't seem to work as an exec plugin
dependency -->
<dependencies>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.2.8</version>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Step 1: Copy and filter the Hibernate config file which will be used by the packager
plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-remote-resources-plugin</artifactId>
<executions>
<execution>
<id>xwiki-platform-tool-configuration-resources</id>
</execution>
</executions>
</plugin>
<!-- Step 2: Expand the XAR file -->
<plugin>
<groupId>org.xwiki.commons</groupId>
<artifactId>xwiki-commons-tool-xar-plugin</artifactId>
</plugin>
<!-- Step 3: Import the XAR content into the Database -->
<plugin>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-tool-packager-plugin</artifactId>
</plugin>
<!-- Step 4: Zip the generated database -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
<!-- Useful for debugging. Starts a GUI admin application to browse the HSQL DB -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<configuration>
<executable>java</executable>
<arguments>
<argument>-classpath</argument>
<!-- automatically creates the classpath using all project dependencies,
also adding the project build directory -->
<classpath />
<argument>org.hsqldb.util.DatabaseManager</argument>
<argument>-driver</argument>
<argument>org.hsqldb.jdbcDriver</argument>
<argument>-url</argument>
<argument>jdbc:hsqldb:target/database/xwiki_db</argument>
<argument>-user</argument>
<argument>sa</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</project>