-
Notifications
You must be signed in to change notification settings - Fork 5
/
pom.xml
125 lines (111 loc) · 4.53 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<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>
<name>Common DB DDL generator</name>
<groupId>org.sakaiproject.common</groupId>
<artifactId>common-ddl-generator</artifactId>
<packaging>pom</packaging>
<parent>
<groupId>org.sakaiproject.common</groupId>
<artifactId>common</artifactId>
<version>11-SNAPSHOT</version>
</parent>
<properties>
<project.ddl.name>common-ddl</project.ddl.name>
</properties>
<dependencies>
<!-- pull in your hibernate persistent objects -->
<dependency>
<groupId>org.sakaiproject.common</groupId>
<artifactId>sakai-common-edu-person-api</artifactId>
<version>11-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.sakaiproject.common</groupId>
<artifactId>sakai-common-composite-component-data</artifactId>
<version>11-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.sakaiproject.common</groupId>
<artifactId>sakai-common-composite-component</artifactId>
<version>11-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.sakaiproject.common</groupId>
<artifactId>sakai-common-manager-api</artifactId>
<version>11-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.sakaiproject.common</groupId>
<artifactId>sakai-common-type-api</artifactId>
<version>11-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<resources>
<resource>
<!-- this should pull in your hibernate template (.hbm.xml) files -->
<directory>${basedir}/../impl</directory>
<includes>
<include>**/*.hbm.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
<plugins>
<plugin>
<!-- hibernate ddl generation -->
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<components>
<component>
<name>hbm2ddl</name>
<outputDirectory>.</outputDirectory>
</component>
</components>
<componentProperties>
<configurationfile>hibernate.cfg.xml</configurationfile>
<drop>false</drop>
<create>true</create>
<export>false</export>
<jdk5>true</jdk5>
<format>true</format>
</componentProperties>
</configuration>
<executions>
<execution>
<id>export-mysql</id>
<phase>process-classes</phase>
<goals>
<goal>hbm2ddl</goal>
</goals>
<configuration>
<componentProperties>
<propertyfile>hibernate-mysql.properties</propertyfile>
<outputfilename>mysql/${project.ddl.name}-${project.parent.version}-mysql.sql</outputfilename>
</componentProperties>
</configuration>
</execution>
<execution>
<id>export-oracle</id>
<phase>process-classes</phase>
<goals>
<goal>hbm2ddl</goal>
</goals>
<configuration>
<componentProperties>
<propertyfile>hibernate-oracle.properties</propertyfile>
<outputfilename>oracle/${project.ddl.name}-${project.parent.version}-oracle.sql</outputfilename>
</componentProperties>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>