1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
<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">
|
3
|
<parent>
|
4
|
<groupId>eu.etaxonomy</groupId>
|
5
|
<artifactId>cdmlib-parent</artifactId>
|
6
|
<version>5.5.0-SNAPSHOT</version>
|
7
|
<relativePath>../pom.xml</relativePath>
|
8
|
</parent>
|
9
|
|
10
|
<modelVersion>4.0.0</modelVersion>
|
11
|
<artifactId>cdmlib-persistence</artifactId>
|
12
|
<name>CDM Persistence</name>
|
13
|
<description>EDIT CDM library persistence layer. Mainly DAOs</description>
|
14
|
|
15
|
<build>
|
16
|
<plugins>
|
17
|
<plugin>
|
18
|
<groupId>org.codehaus.mojo</groupId>
|
19
|
<artifactId>hibernate3-maven-plugin</artifactId>
|
20
|
<version>3.0</version>
|
21
|
<configuration>
|
22
|
<components>
|
23
|
<component>
|
24
|
<name>hbm2ddl</name>
|
25
|
<implementation>annotationconfigurationX</implementation>
|
26
|
</component>
|
27
|
</components>
|
28
|
<componentProperties>
|
29
|
<namingstrategy>org.hibernate.cfg.DefaultComponentSafeNamingStrategy</namingstrategy>
|
30
|
<propertyfile>/src/test/resources/dbscripts/hibernate.properties</propertyfile>
|
31
|
<outputfilename>001_cdm.ddl</outputfilename>
|
32
|
<configurationfile>/src/main/resources/eu/etaxonomy/cdm/hibernate.cfg.xml</configurationfile>
|
33
|
</componentProperties>
|
34
|
</configuration>
|
35
|
<dependencies>
|
36
|
<dependency>
|
37
|
<groupId>eu.etaxonomy</groupId>
|
38
|
<artifactId>cdmlib-db</artifactId>
|
39
|
<version>${project.version}</version>
|
40
|
</dependency>
|
41
|
<dependency>
|
42
|
<groupId>org.hibernate</groupId>
|
43
|
<artifactId>hibernate-annotations</artifactId>
|
44
|
<version>3.5.6-FINAL</version>
|
45
|
</dependency>
|
46
|
</dependencies>
|
47
|
</plugin>
|
48
|
<plugin>
|
49
|
<artifactId>maven-antrun-plugin</artifactId>
|
50
|
<configuration>
|
51
|
<tasks>
|
52
|
<taskdef name="hibernatetool" classname="org.hibernate.tool.ant.EnversHibernateToolTask">
|
53
|
<classpath refid="maven.plugin.classpath" />
|
54
|
</taskdef>
|
55
|
<mkdir dir="target/generated-sources/hibernate3" />
|
56
|
<hibernatetool destdir=".">
|
57
|
<classpath>
|
58
|
<path refid="maven.plugin.classpath" />
|
59
|
<path refid="maven.compile.classpath" />
|
60
|
<path refid="maven.test.classpath" />
|
61
|
</classpath>
|
62
|
<jpaconfiguration persistenceunit="cdm" />
|
63
|
<hbm2ddl drop="false" create="true" export="false" outputfilename="target/generated-sources/hibernate3/001_cdm.ddl" delimiter=";" format="true" />
|
64
|
</hibernatetool>
|
65
|
</tasks>
|
66
|
</configuration>
|
67
|
<dependencies>
|
68
|
<dependency>
|
69
|
<groupId>eu.etaxonomy</groupId>
|
70
|
<artifactId>cdmlib-db</artifactId>
|
71
|
<version>${project.version}</version>
|
72
|
</dependency>
|
73
|
<dependency>
|
74
|
<groupId>org.hibernate</groupId>
|
75
|
<artifactId>hibernate-envers</artifactId>
|
76
|
<version>${hibernate.version}</version>
|
77
|
</dependency>
|
78
|
<dependency>
|
79
|
<groupId>org.hibernate</groupId>
|
80
|
<artifactId>hibernate-entitymanager</artifactId>
|
81
|
<version>${hibernate.version}</version>
|
82
|
</dependency>
|
83
|
<dependency>
|
84
|
<!-- is this still needed ?? -->
|
85
|
<groupId>org.hibernate</groupId>
|
86
|
<artifactId>hibernate-tools</artifactId>
|
87
|
<version>3.2.4.GA</version>
|
88
|
</dependency>
|
89
|
<dependency>
|
90
|
<groupId>org.slf4j</groupId>
|
91
|
<artifactId>slf4j-log4j12</artifactId>
|
92
|
<version>${slf4j.version}</version>
|
93
|
</dependency>
|
94
|
<dependency>
|
95
|
<groupId>commons-logging</groupId>
|
96
|
<artifactId>commons-logging</artifactId>
|
97
|
<version>${commons-logging.version}</version>
|
98
|
</dependency>
|
99
|
</dependencies>
|
100
|
</plugin>
|
101
|
<plugin>
|
102
|
<groupId>org.apache.maven.plugins</groupId>
|
103
|
<artifactId>maven-jar-plugin</artifactId>
|
104
|
<version>2.3.2</version>
|
105
|
<executions>
|
106
|
<execution>
|
107
|
<goals>
|
108
|
<goal>test-jar</goal>
|
109
|
</goals>
|
110
|
</execution>
|
111
|
</executions>
|
112
|
</plugin>
|
113
|
</plugins>
|
114
|
</build>
|
115
|
<dependencies>
|
116
|
<dependency>
|
117
|
<groupId>org.hibernate.javax.persistence</groupId>
|
118
|
<artifactId>hibernate-jpa-2.1-api</artifactId>
|
119
|
</dependency>
|
120
|
<dependency>
|
121
|
<groupId>eu.etaxonomy</groupId>
|
122
|
<artifactId>cdmlib-model</artifactId>
|
123
|
</dependency>
|
124
|
<dependency>
|
125
|
<groupId>org.slf4j</groupId>
|
126
|
<artifactId>slf4j-log4j12</artifactId>
|
127
|
</dependency>
|
128
|
<dependency>
|
129
|
<groupId>org.javassist</groupId>
|
130
|
<artifactId>javassist</artifactId>
|
131
|
</dependency>
|
132
|
<dependency>
|
133
|
<groupId>javax.annotation</groupId>
|
134
|
<artifactId>jsr250-api</artifactId>
|
135
|
</dependency>
|
136
|
<dependency>
|
137
|
<groupId>org.aspectj</groupId>
|
138
|
<artifactId>aspectjweaver</artifactId>
|
139
|
</dependency>
|
140
|
<dependency>
|
141
|
<groupId>org.hibernate.common</groupId>
|
142
|
<artifactId>hibernate-commons-annotations</artifactId>
|
143
|
</dependency>
|
144
|
<dependency>
|
145
|
<groupId>org.hibernate</groupId>
|
146
|
<artifactId>hibernate-core</artifactId>
|
147
|
</dependency>
|
148
|
<dependency>
|
149
|
<groupId>org.hibernate</groupId>
|
150
|
<artifactId>hibernate-search-orm</artifactId>
|
151
|
</dependency>
|
152
|
<dependency>
|
153
|
<groupId>org.hibernate</groupId>
|
154
|
<artifactId>hibernate-envers</artifactId>
|
155
|
</dependency>
|
156
|
<dependency>
|
157
|
<groupId>org.hibernate</groupId>
|
158
|
<artifactId>hibernate-c3p0</artifactId>
|
159
|
<!-- only needed as long as hibernate-c3p0 is still dependend on c3p0/c3p0/0.9.1 -->
|
160
|
<exclusions>
|
161
|
<exclusion>
|
162
|
<groupId>com.mchange</groupId>
|
163
|
<artifactId>c3p0</artifactId>
|
164
|
</exclusion>
|
165
|
</exclusions>
|
166
|
</dependency>
|
167
|
<!-- Since hibernate 5.0.4 the logging for a Dialect throws ClassDefNotFound for javax.transaction.SystemException if jta is missing -->
|
168
|
<dependency>
|
169
|
<groupId>javax.transaction</groupId>
|
170
|
<artifactId>jta</artifactId>
|
171
|
</dependency>
|
172
|
<dependency>
|
173
|
<groupId>org.apache.lucene</groupId>
|
174
|
<artifactId>lucene-core</artifactId>
|
175
|
</dependency>
|
176
|
<dependency>
|
177
|
<groupId>org.apache.lucene</groupId>
|
178
|
<artifactId>lucene-suggest</artifactId>
|
179
|
</dependency>
|
180
|
<dependency>
|
181
|
<groupId>org.apache.lucene</groupId>
|
182
|
<artifactId>lucene-queryparser</artifactId>
|
183
|
</dependency>
|
184
|
<dependency>
|
185
|
<groupId>commons-beanutils</groupId>
|
186
|
<artifactId>commons-beanutils</artifactId>
|
187
|
</dependency>
|
188
|
<dependency>
|
189
|
<groupId>commons-lang</groupId>
|
190
|
<artifactId>commons-lang</artifactId>
|
191
|
</dependency>
|
192
|
<dependency>
|
193
|
<groupId>commons-dbcp</groupId>
|
194
|
<artifactId>commons-dbcp</artifactId>
|
195
|
<!-- <scope>test</scope> , currently also used in NomenclaturalCodeAwareDataSource and maybe others -->
|
196
|
</dependency>
|
197
|
<dependency>
|
198
|
<groupId>org.unitils</groupId>
|
199
|
<artifactId>unitils-core</artifactId>
|
200
|
<!-- <scope>test</scope> unscoped since we need this dependency at compile time for H2DbSupport.java -->
|
201
|
</dependency>
|
202
|
|
203
|
<dependency>
|
204
|
<groupId>eu.etaxonomy</groupId>
|
205
|
<artifactId>cdmlib-test</artifactId>
|
206
|
<scope>test</scope>
|
207
|
</dependency>
|
208
|
<dependency>
|
209
|
<groupId>org.springframework</groupId>
|
210
|
<artifactId>spring-beans</artifactId>
|
211
|
</dependency>
|
212
|
<dependency>
|
213
|
<groupId>org.springframework</groupId>
|
214
|
<artifactId>spring-expression</artifactId>
|
215
|
</dependency>
|
216
|
<dependency>
|
217
|
<groupId>org.springframework</groupId>
|
218
|
<artifactId>spring-orm</artifactId>
|
219
|
</dependency>
|
220
|
<dependency>
|
221
|
<groupId>org.springframework</groupId>
|
222
|
<artifactId>spring-jdbc</artifactId>
|
223
|
</dependency>
|
224
|
<dependency>
|
225
|
<groupId>org.springframework</groupId>
|
226
|
<artifactId>spring-aop</artifactId>
|
227
|
</dependency>
|
228
|
<dependency>
|
229
|
<groupId>org.springframework</groupId>
|
230
|
<artifactId>spring-aspects</artifactId>
|
231
|
</dependency>
|
232
|
<dependency>
|
233
|
<groupId>org.springframework.security</groupId>
|
234
|
<artifactId>spring-security-core</artifactId>
|
235
|
</dependency>
|
236
|
<!-- required by Xerces 2.11.0 -->
|
237
|
<dependency>
|
238
|
<groupId>org.apache.xmlgraphics</groupId>
|
239
|
<artifactId>batik-ext</artifactId>
|
240
|
</dependency>
|
241
|
|
242
|
<!-- ******* DATABASES DRIVER ******* -->
|
243
|
<!--
|
244
|
IMPORTANT:
|
245
|
Any driver dependency listed here must be excluded from the
|
246
|
cdmlib-remote depedency in cdmlib-remote-webapp
|
247
|
-->
|
248
|
<dependency>
|
249
|
<groupId>eu.etaxonomy</groupId>
|
250
|
<artifactId>cdmlib-db</artifactId>
|
251
|
<version>${project.version}</version>
|
252
|
</dependency>
|
253
|
|
254
|
<!-- Profiling -->
|
255
|
<!-- <dependency> -->
|
256
|
<!-- <groupId>com.yourkit</groupId> -->
|
257
|
<!-- <artifactId>yjp-controller-api-redist</artifactId> -->
|
258
|
<!-- <scope>test</scope> -->
|
259
|
<!-- </dependency> -->
|
260
|
</dependencies>
|
261
|
|
262
|
</project>
|