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.32.0-SNAPSHOT</version>
|
7
|
<relativePath>../pom.xml</relativePath>
|
8
|
</parent>
|
9
|
|
10
|
<modelVersion>4.0.0</modelVersion>
|
11
|
<artifactId>cdmlib-test</artifactId>
|
12
|
<name>CDM Integration Tests</name>
|
13
|
<description>EDIT CDM library integration test layer. Some base classes and resources for CDM Library integration testing</description>
|
14
|
|
15
|
<build>
|
16
|
<plugins>
|
17
|
<plugin>
|
18
|
<artifactId>maven-antrun-plugin</artifactId>
|
19
|
<executions>
|
20
|
<execution>
|
21
|
<!-- Generate DDL for test -->
|
22
|
<!-- Alternatives: https://jpdigital.github.io/hibernate5-ddl-maven-plugin/usage.html,
|
23
|
https://webdev.jhuep.com/~jcs/ejava-javaee/coursedocs/content/html/jpa-entitymgrex-dbschemagen.html -->
|
24
|
<!-- manual execution of the below ant task: -->
|
25
|
<!-- mvn antrun:run@generate-ddl-create -->
|
26
|
<id>generate-ddl-create</id>
|
27
|
<phase>process-classes</phase>
|
28
|
<goals>
|
29
|
<goal>run</goal>
|
30
|
</goals>
|
31
|
<configuration>
|
32
|
<target>
|
33
|
<delete file="${project.build.outputDirectory}/dbscripts/001-cdm.h2.sql" />
|
34
|
<!-- copy template file -->
|
35
|
<copy file="${basedir}/src/main/resources/dbscripts/001-cdm.h2.template.sql" tofile="${project.build.outputDirectory}/dbscripts/001-cdm.h2.sql" />
|
36
|
<!-- for directory shortcuts: https://stackoverflow.com/questions/13354531/maven-project-build-directory but a short cut to /src/main/resources did not work for me -->
|
37
|
<!-- run DdlCreator -->
|
38
|
<java classname="eu.etaxonomy.cdm.test.unitils.DdlCreator" fork="false" failonerror="true" classpathref="maven.compile.classpath" />
|
39
|
</target>
|
40
|
</configuration>
|
41
|
</execution>
|
42
|
</executions>
|
43
|
</plugin>
|
44
|
<plugin>
|
45
|
<groupId>org.apache.maven.plugins</groupId>
|
46
|
<artifactId>maven-jar-plugin</artifactId>
|
47
|
<version>3.2.2</version>
|
48
|
<executions>
|
49
|
<execution>
|
50
|
<goals>
|
51
|
<goal>test-jar</goal>
|
52
|
</goals>
|
53
|
</execution>
|
54
|
</executions>
|
55
|
</plugin>
|
56
|
</plugins>
|
57
|
<pluginManagement>
|
58
|
<plugins>
|
59
|
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
|
60
|
<plugin>
|
61
|
<groupId>org.eclipse.m2e</groupId>
|
62
|
<artifactId>lifecycle-mapping</artifactId>
|
63
|
<version>1.0.0</version>
|
64
|
<configuration>
|
65
|
<lifecycleMappingMetadata>
|
66
|
<pluginExecutions>
|
67
|
<pluginExecution>
|
68
|
<pluginExecutionFilter>
|
69
|
<groupId>
|
70
|
org.apache.maven.plugins
|
71
|
</groupId>
|
72
|
<artifactId>
|
73
|
maven-antrun-plugin
|
74
|
</artifactId>
|
75
|
<versionRange>
|
76
|
[3.0.0,)
|
77
|
</versionRange>
|
78
|
<goals>
|
79
|
<goal>run</goal>
|
80
|
</goals>
|
81
|
</pluginExecutionFilter>
|
82
|
<action>
|
83
|
<ignore />
|
84
|
</action>
|
85
|
</pluginExecution>
|
86
|
</pluginExecutions>
|
87
|
</lifecycleMappingMetadata>
|
88
|
</configuration>
|
89
|
</plugin>
|
90
|
</plugins>
|
91
|
</pluginManagement>
|
92
|
</build>
|
93
|
<dependencies>
|
94
|
<dependency>
|
95
|
<groupId>junit</groupId>
|
96
|
<artifactId>junit</artifactId>
|
97
|
<scope>compile</scope>
|
98
|
</dependency>
|
99
|
<dependency>
|
100
|
<groupId>org.unitils</groupId>
|
101
|
<artifactId>unitils-core</artifactId>
|
102
|
<scope>compile</scope>
|
103
|
</dependency>
|
104
|
<dependency>
|
105
|
<groupId>org.unitils</groupId>
|
106
|
<artifactId>unitils-database</artifactId>
|
107
|
<scope>compile</scope>
|
108
|
</dependency>
|
109
|
<dependency>
|
110
|
<groupId>org.unitils</groupId>
|
111
|
<artifactId>unitils-dbmaintainer</artifactId>
|
112
|
<scope>compile</scope>
|
113
|
</dependency>
|
114
|
<dependency>
|
115
|
<groupId>org.unitils</groupId>
|
116
|
<artifactId>unitils-dbunit</artifactId>
|
117
|
<scope>compile</scope>
|
118
|
</dependency>
|
119
|
<dependency>
|
120
|
<groupId>org.unitils</groupId>
|
121
|
<artifactId>unitils-easymock</artifactId>
|
122
|
<scope>compile</scope>
|
123
|
<exclusions>
|
124
|
<exclusion>
|
125
|
<!-- we try to use only cglib-nodep (#9206) -->
|
126
|
<groupId>cglib</groupId>
|
127
|
<artifactId>cglib</artifactId>
|
128
|
</exclusion>
|
129
|
</exclusions>
|
130
|
</dependency>
|
131
|
<dependency>
|
132
|
<groupId>org.unitils</groupId>
|
133
|
<artifactId>unitils-mock</artifactId>
|
134
|
<scope>compile</scope>
|
135
|
</dependency>
|
136
|
<dependency>
|
137
|
<groupId>org.unitils</groupId>
|
138
|
<artifactId>unitils-inject</artifactId>
|
139
|
<scope>compile</scope>
|
140
|
</dependency>
|
141
|
<dependency>
|
142
|
<groupId>org.unitils</groupId>
|
143
|
<artifactId>unitils-orm</artifactId>
|
144
|
<exclusions>
|
145
|
<exclusion>
|
146
|
<groupId>javax.persistence</groupId>
|
147
|
<artifactId>persistence-api</artifactId>
|
148
|
</exclusion>
|
149
|
</exclusions>
|
150
|
</dependency>
|
151
|
<dependency>
|
152
|
<groupId>org.unitils</groupId>
|
153
|
<artifactId>unitils-spring</artifactId>
|
154
|
<scope>compile</scope>
|
155
|
</dependency>
|
156
|
<!-- <dependency> -->
|
157
|
<!-- <groupId>org.dbunit</groupId> -->
|
158
|
<!-- <artifactId>dbunit</artifactId> -->
|
159
|
<!-- <scope>compile</scope> -->
|
160
|
<!-- </dependency> -->
|
161
|
<dependency>
|
162
|
<groupId>xmlunit</groupId>
|
163
|
<artifactId>xmlunit</artifactId>
|
164
|
<scope>compile</scope>
|
165
|
</dependency>
|
166
|
<dependency>
|
167
|
<groupId>com.carrotsearch</groupId>
|
168
|
<artifactId>junit-benchmarks</artifactId>
|
169
|
<scope>compile</scope>
|
170
|
</dependency>
|
171
|
|
172
|
<!-- ******* DATABASES DRIVER ******* -->
|
173
|
|
174
|
<!-- for other databases see also #6025 -->
|
175
|
<dependency>
|
176
|
<groupId>com.h2database</groupId>
|
177
|
<artifactId>h2</artifactId>
|
178
|
<scope>compile</scope>
|
179
|
</dependency>
|
180
|
|
181
|
<!-- still creates problems in cdmlib-remote-webapp testing with MySQL connector -->
|
182
|
<!-- <dependency> -->
|
183
|
<!-- <groupId>eu.etaxonomy</groupId> -->
|
184
|
<!-- <artifactId>cdmlib-db</artifactId> -->
|
185
|
<!-- <version>${project.version}</version> -->
|
186
|
<!-- <scope>compile</scope> -->
|
187
|
<!-- </dependency> -->
|
188
|
|
189
|
<!-- Profiling -->
|
190
|
<dependency>
|
191
|
<groupId>com.yourkit</groupId>
|
192
|
<artifactId>yjp-controller-api-redist</artifactId>
|
193
|
<scope>compile</scope>
|
194
|
</dependency>
|
195
|
|
196
|
<dependency>
|
197
|
<groupId>org.hibernate</groupId>
|
198
|
<artifactId>hibernate-core</artifactId>
|
199
|
</dependency>
|
200
|
<dependency>
|
201
|
<groupId>eu.etaxonomy</groupId>
|
202
|
<artifactId>cdmlib-model</artifactId>
|
203
|
</dependency>
|
204
|
</dependencies>
|
205
|
|
206
|
</project>
|