forked from holyjak/dbunit-express
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpom.xml
More file actions
337 lines (305 loc) · 9.68 KB
/
Copy pathpom.xml
File metadata and controls
337 lines (305 loc) · 9.68 KB
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
<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>
<groupId>net.jakubholy.testing</groupId>
<artifactId>dbunit-express</artifactId>
<name>Express DbUnit with Embedded Derby DB</name>
<version>1.3.1-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.10.1.1</version>
<type>jar</type>
</dependency>
<dependency>
<!-- Issue mvn dependency:sources to download also its sources. -->
<groupId>org.dbunit</groupId>
<artifactId>dbunit</artifactId>
<version>2.4.8</version>
<type>jar</type>
<exclusions>
<exclusion>
<artifactId>junit</artifactId>
<groupId>junit</groupId>
</exclusion>
<exclusion>
<artifactId>junit-addons</artifactId>
<groupId>junit</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<!-- You can use JUnit 3.8.2 or JUnit 4.x -->
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>[3.8.2,4),[4.9,5)</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.5.6</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.5.6</version>
<!--exclusions for slf4j-log4j12>
<exclusion>
<groupId>com.sun.jmx</groupId>
<artifactId>jmxri</artifactId>
</exclusion>
<exclusion>
<groupId>javax.jms</groupId>
<artifactId>jms</artifactId>
</exclusion>
<exclusion>
<groupId>com.sun.jdmk</groupId>
<artifactId>jmxtools</artifactId>
</exclusion>
</exclusions-->
</dependency>
<!--
dependency> <groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId> <version>1.1.1</version>
</dependency -->
</dependencies>
<description>
The project helps you to setup a DbUnit test using an embedded Derby database
by providing an AbstractEmbeddedDbTestCase.java that you extend, instructions
for using it, and the utility DatabaseCreator.java for creating and initializing the DB.
</description>
<licenses>
<license>
<comments>Also, the author promises to never sue IBM for any use of this file.</comments>
<name>LGPL 2.1</name>
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
</license>
</licenses>
<url>http://sourceforge.net/apps/mediawiki/jeeutils/index.php?title=DbUnit_Test_Skeleton</url>
<developers>
<developer>
<id>malyvelky</id>
<name>Jakub Holy</name>
<email>malyvelky@users.sf.net</email>
<timezone>GMT+1</timezone>
<roles>
</roles>
</developer>
</developers>
<scm>
<connection>scm:git:git@github.com:jakubholynet/dbunit-express.git</connection>
<developerConnection>scm:git:git@github.com:jakubholynet/dbunit-express.git</developerConnection>
<url>git@github.com:jakubholynet/dbunit-express.git</url>
</scm>
<build>
<finalName>dbunit-express</finalName>
<plugins>
<!-- Enforce JVM compatibility of sources and binaries. -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>source-compilation</id>
<phase>compile</phase>
<configuration>
<source>1.4</source>
<target>1.4</target>
</configuration>
<goals>
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>test-compilation</id>
<phase>test</phase>
<configuration>
<source>5</source>
<target>5</target>
</configuration>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Produce also dbunit-express-sources.jar when packaging. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<!-- Produce ZIP with dependencies and samples. -->
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>assemble-zip</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<descriptors>
<descriptor>maven-assembly-dist.xml</descriptor>
</descriptors>
</configuration>
</plugin>
<plugin>
<!--
Releasing:
mvn release:prepare
mvn release:perform
-->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.2</version>
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
<releaseProfiles>release-sign-artifacts</releaseProfiles>
</configuration>
</plugin>
</plugins>
</build>
<distributionManagement>
<!-- My project's Sonatype repository to be used by the release plugin -->
<repository>
<id>nexus-releases</id>
<name>Nexus Release Repository</name>
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2</url>
</repository>
<snapshotRepository>
<id>nexus-snapshots</id>
<name>My Nexus Snapshots Repository</name>
<url>http://oss.sonatype.org/content/repositories/jakubholy-snapshots</url>
</snapshotRepository>
</distributionManagement>
<!-- Maven Central's policy doesn't allow any <repositories> in a pom
repositories>
<repository>
<id>ibiblio.org</id>
<name>ibiblio Mirror of http://repo1.maven.org/maven2/</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
</repository>
</repositories-->
<profiles>
<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<!--
will be set by the release plugin upon performing mvn
release:perform
-->
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<properties>
<gpg.keyname>66AE163A</gpg.keyname> <!-- GPG Key ID to use for signing -->
<release.username>malyvelky</release.username> <!-- username for our svn repository -->
</properties>
<build>
<plugins>
<!--
Enable signing of the artifacts For gpg:sign-and-deploy-file it's
necessary to have a <server> with the repositoryId provided or
id="remote-repository" defined in settings.xml (it contains the
repository's login, psw) Signing: mvn gpg:sign-and-deploy-file
-DpomFile=target/myapp-1.0.pom -Dfile=target/myapp-1.0.jar
-Durl=http://oss.sonatype.org/content/repositories/malyvelky/
-DrepositoryId=sonatype_oss Note normally it uses the defaul key
but we can ovveride it by either setting the property gpg.keyname
(done in this POM) or by providing -Dkeyname=66AE163A on the
command line. OR directly w/ gpg (remove space in - -): gpg -u 66AE163A - -sign -
-detach-sign -a target/dbunit-express.jar Note:
"mvn gpg:sign" results in NPE with v 1.o-a.-4, use "mvn package
gpg:sign" instead; see the issue MGPG-18
-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<!--
Enforce JVM version used for build
(only needed for releases, during development we
may compile with any JVM available - which is actually
good because thus we know it builds under newer JVMs too)
DISABLED - latest maven doesn't run under JVM 1.4 :-(
- ->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireJavaVersion>
<version>[1.4,1.5)</version>
<message>
Version 1.4 required so that the produced artifact runs on every JVM from 1.4 up.
You may need to set PATH and JAVA_HOME to point to a 1.4 JRE before invoking Maven.
</message>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin-->
<!-- Publish also javadocs when releasing - required by Sonatype -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.8</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>include-sources</id>
<build>
<resources>
<resource>
<targetPath>/</targetPath>
<filtering>true</filtering>
<directory>src/main/java</directory>
<includes>
<include>**/*.java</include>
</includes>
</resource>
</resources>
</build>
</profile>
</profiles>
</project>