CDM Server as win32 service - initial commit with bug!
[cdm-server.git] / pom.xml
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"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
4 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5
6
7 <!--
8 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
9 http://maven.apache.org/maven-v4_0_0.xsd"
10 -->
11
12 <modelVersion>4.0.0</modelVersion>
13 <groupId>eu.etaxonomy</groupId>
14 <artifactId>cdm-server</artifactId>
15 <version>2.5</version>
16 <packaging>jar</packaging>
17 <name>CDM Community Standalone Server</name>
18
19 <scm>
20 <connection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdm-server/</connection>
21 <developerConnection>scm:svn:https://dev.e-taxonomy.eu/svn/trunk/cdm-server/</developerConnection>
22 <url>http://dev.e-taxonomy.eu/trac/browser/trunk/cdm-server/</url>
23 </scm>
24
25 <mailingLists>
26 <mailingList>
27 <name>dev-edit</name>
28 <subscribe>
29 https://webmail.mnhn.fr/wws/subrequest/dev-edit
30 </subscribe>
31 <unsubscribe>
32 https://webmail.mnhn.fr/wws/sigrequest/dev-edit
33 </unsubscribe>
34 <post>dev-edit@mnhn.fr</post>
35 <archive>https://webmail.mnhn.fr/wws/arc/dev-edit/</archive>
36 </mailingList>
37 <mailingList>
38 <name>cdm-edit</name>
39 <post>cdm-edit@mnhn.fr</post>
40 <subscribe>
41 https://webmail.mnhn.fr/wws/subrequest/cdm-edit
42 </subscribe>
43 <unsubscribe>
44 https://webmail.mnhn.fr/wws/sigrequest/cdm-edit
45 </unsubscribe>
46 <archive>https://webmail.mnhn.fr/wws/arc/cdm-edit/</archive>
47 </mailingList>
48 </mailingLists>
49 <licenses>
50 <license>
51 <name>Mozilla Public License Version 1.1</name>
52 <url>http://www.mozilla.org/MPL/MPL-1.1.html</url>
53 <distribution>repo</distribution>
54 </license>
55 </licenses>
56 <developers>
57 <developer>
58 <!-- your SVN account id please! -->
59 <id>a.kohlbecker</id>
60 <name>
61 Andreas Kohlbecker
62 </name>
63 <email>a.kohlbecker [at] bgbm.org</email>
64 <organization>
65 Botanical Garden Botanical Museum Berlin
66 </organization>
67 <organizationUrl>http://www.bgbm.org/BioDivInf/</organizationUrl>
68 <timezone>+1</timezone>
69 <roles>
70 <role>developer</role>
71 </roles>
72 <url></url>
73 </developer>
74 </developers>
75
76 <contributors>
77 <contributor>
78 <name>Test-Contributor</name>
79 </contributor>
80 </contributors>
81 <issueManagement>
82 <system>Trac</system>
83 <url>http://dev.e-taxonomy.eu/trac/</url>
84 </issueManagement>
85
86 <!-- **** REPOSITORIES **** -->
87 <repositories>
88 <!-- sun repository -->
89 <repository>
90 <id>java.net</id>
91 <url>http://download.java.net/maven/1/</url>
92 <layout>legacy</layout>
93 </repository>
94 <!-- the cdm internal repository -->
95 <repository>
96 <id>EditRepository</id>
97 <url>http://wp5.e-taxonomy.eu/cdmlib/mavenrepo/</url>
98 </repository>
99 <!-- apache incubating repository -->
100 <repository>
101 <id>ApacheIncubating</id>
102 <url>http://people.apache.org/repo/m2-incubating-repository/</url>
103 </repository>
104 <!-- Neccessary for hibernate-envers -->
105 <repository>
106 <releases>
107 <enabled>true</enabled>
108 <updatePolicy>always</updatePolicy>
109 <checksumPolicy>warn</checksumPolicy>
110 </releases>
111 <snapshots>
112 <enabled>false</enabled>
113 <updatePolicy>never</updatePolicy>
114 <checksumPolicy>fail</checksumPolicy>
115 </snapshots>
116 <id>jboss-repository</id>
117 <name>JBoss Repository</name>
118 <url>http://repository.jboss.com/maven2</url>
119 </repository>
120 <!-- codehaus mule repository needed for yourkit -->
121 <repository>
122 <id>CodehausMuleRepository</id>
123 <url>http://dist.codehaus.org/mule/dependencies/maven2/</url>
124 </repository>
125 <!-- current spring source repositories -->
126 <repository>
127 <id>SpringSource Enterprise Bundle Repository - External Bundle Milestones</id>
128 <url>http://repository.springsource.com/maven/bundles/milestone</url>
129 </repository>
130 <repository>
131 <id>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</id>
132 <url>http://repository.springsource.com/maven/bundles/release</url>
133 </repository>
134 <repository>
135 <id>SpringSource Enterprise Bundle Repository - External Bundle Releases</id>
136 <url>http://repository.springsource.com/maven/bundles/external</url>
137 </repository>
138 </repositories>
139
140 <!-- **** PLUGINS **** -->
141 <build>
142 <plugins>
143 <plugin>
144 <artifactId>maven-compiler-plugin</artifactId>
145 <configuration>
146 <source>1.6</source>
147 <target>1.6</target>
148 </configuration>
149 </plugin>
150 <plugin>
151 <artifactId>maven-surefire-plugin</artifactId>
152 <configuration>
153 <argLine>-Xmx512M</argLine>
154 <includes>
155 <include>**/*Test.java</include>
156 </includes>
157 <systemProperties>
158 <property>
159 <name>hibernate.connection.driver_class</name>
160 <value>${hibernate.connection.driver_class}</value>
161 </property>
162 <property>
163 <name>hibernate.connection.url</name>
164 <value>${hibernate.connection.url}</value>
165 </property>
166 <property>
167 <name>hibernate.connection.username</name>
168 <value>${hibernate.connection.username}</value>
169 </property>
170 <property>
171 <name>hibernate.connection.password</name>
172 <value>${hibernate.connection.password}</value>
173 </property>
174 </systemProperties>
175 </configuration>
176 </plugin>
177 <plugin>
178 <groupId>org.codehaus.mojo</groupId>
179 <artifactId>buildnumber-maven-plugin</artifactId>
180 <version>1.0-beta-3</version>
181 <executions>
182 <execution>
183 <!--<phase>deploy</phase>-->
184 <goals>
185 <goal>create</goal>
186 </goals>
187 </execution>
188 </executions>
189 <configuration>
190 <doCheck>false</doCheck>
191 <!--
192 Only create the build number if there are no local modifications
193 -->
194 <doUpdate>false</doUpdate>
195 <!--
196 automatically update the local svn copy
197 -->
198 </configuration>
199 </plugin>
200 <plugin>
201 <groupId>org.apache.maven.plugins</groupId>
202 <artifactId>maven-site-plugin</artifactId>
203 <!--
204 Falling back to maven-site-plugin 2.0-beta-5 since
205 maven-site-plugin 2.0-beta-6 has this problem: Embedded error:
206 Unrecognised tag: 'site' (position: START_TAG seen <?xml
207 version="1.0" encoding="ISO-8859-1"?>\r\n<site>... @2:7)
208 -->
209 <version>2.0-beta-5</version>
210 <configuration>
211 <locales>en</locales>
212 </configuration>
213 </plugin>
214 <plugin>
215 <groupId>org.apache.maven.plugins</groupId>
216 <artifactId>maven-source-plugin</artifactId>
217 <executions>
218 <execution>
219 <id>attach-sources</id>
220 <phase>verify</phase>
221 <goals>
222 <goal>jar</goal>
223 </goals>
224 </execution>
225 </executions>
226 </plugin>
227 <plugin>
228 <groupId>org.apache.maven.plugins</groupId>
229 <artifactId>maven-javadoc-plugin</artifactId>
230 <configuration>
231 <aggregate>true</aggregate>
232 <stylesheet>maven</stylesheet>
233 </configuration>
234 </plugin>
235 <plugin>
236 <groupId>org.apache.maven.plugins</groupId>
237 <artifactId>maven-eclipse-plugin</artifactId>
238 <configuration>
239 <downloadSources>true</downloadSources>
240 <downloadJavadocs>true</downloadJavadocs>
241 </configuration>
242 </plugin>
243 <!-- INSTALL -->
244 <plugin>
245 <artifactId>maven-assembly-plugin</artifactId>
246 <configuration>
247 <appendAssemblyId>false</appendAssemblyId>
248 <descriptors>
249 <descriptor>src/main/assembly/assembly.xml</descriptor>
250 </descriptors>
251 <archive>
252 <manifest>
253 <mainClass>eu.etaxonomy.cdm.server.Bootloader</mainClass>
254 </manifest>
255 </archive>
256 </configuration>
257 <executions>
258 <execution>
259 <id>make-assembly</id>
260 <phase>install</phase>
261 <goals>
262 <goal>attached</goal>
263 </goals>
264 </execution>
265 </executions>
266 </plugin>
267 <!-- package the default webapp -->
268 <plugin>
269 <groupId>org.apache.maven.plugins</groupId>
270 <artifactId>maven-war-plugin</artifactId>
271 <version>2.1-beta-1</version>
272 <configuration>
273 <warName>default-webapp</warName>
274 <overlays>
275 <overlay>
276 <groupId>eu.etaxonomy</groupId>
277 <artifactId>cdmlib-remote-webapp</artifactId>
278 <skip>true</skip><!-- Do Not overlay -->
279 </overlay>
280 </overlays>
281 </configuration>
282 <executions>
283 <execution>
284 <phase>package</phase>
285 <goals>
286 <goal>war</goal>
287 </goals>
288 </execution>
289 </executions>
290 </plugin>
291 <!-- DEPLOY -->
292 <plugin>
293 <artifactId>maven-antrun-plugin</artifactId>
294 <version>1.3</version>
295 <executions>
296 <execution>
297 <phase>install</phase>
298 <!--
299 must run after winstone-maven-plugin
300 -->
301 <configuration>
302 <tasks>
303 <!--
304 ${project.patchversion} is explicitely set in this pom
305
306 ${buildNumber} is set by the buildnumber-maven-plugin Cannot
307 create the build number if you have local modifications, to
308 allow creating a buildnumber anyway you can ommit
309 -->
310 <!--
311 FIXME <property name="project.fullversionstring"
312 value="${project.version}.${project.patchversion}.r${buildNumber}"/>
313 <property name="project.fullversionstring"
314 value="${project.version}.0.r0000"/>
315 -->
316 <property name="project.fullversionstring"
317 value="${project.version}.0.${maven.build.timestamp}" />
318 <ant antfile="${project.basedir}/src/main/installer/linux/build-deb.xml"
319 dir="${project.basedir}" />
320
321
322 </tasks>
323 </configuration>
324 <goals>
325 <goal>run</goal>
326 </goals>
327 </execution>
328 </executions>
329 </plugin>
330 </plugins>
331 <!-- EXTENSIONS -->
332 <extensions>
333 <extension>
334 <groupId>org.apache.maven.wagon</groupId>
335 <artifactId>wagon-scm</artifactId>
336 <version>1.0-alpha-5</version>
337 </extension>
338 <!--
339 <extension> <groupId>org.apache.maven.wagon</groupId>
340 <artifactId>wagon-ssh-external</artifactId>
341 <version>1.0-alpha-5</version> </extension>
342 -->
343 <extension>
344 <groupId>org.apache.maven.scm</groupId>
345 <artifactId>maven-scm-manager-plexus</artifactId>
346 <version>1.0</version>
347 </extension>
348 <extension>
349 <groupId>org.apache.maven.scm</groupId>
350 <artifactId>maven-scm-provider-svnexe</artifactId>
351 <version>1.0</version>
352 </extension>
353 <!-- WebDAV plugin to upload snapshots -->
354 <extension>
355 <groupId>org.apache.maven.wagon</groupId>
356 <artifactId>wagon-webdav</artifactId>
357 <version>1.0-beta-2</version>
358 </extension>
359 </extensions>
360 </build>
361
362 <reporting>
363 <plugins>
364 <plugin>
365 <!-- you will want to start by publishing your classes' Javadocs -->
366 <groupId>org.apache.maven.plugins</groupId>
367 <artifactId>maven-javadoc-plugin</artifactId>
368 <configuration>
369 <links>
370 <link>http://java.sun.com/j2se/1.6.0/docs/api/</link>
371 <link>http://static.springframework.org/spring/docs/2.5.x/api/</link>
372 <link>http://www.hibernate.org/hib_docs/v3/api/</link>
373 <!-- more libraries? -->
374 </links>
375 </configuration>
376 </plugin>
377 <plugin>
378 <!--
379 this will generate an indexed and cross-referenced HTML version of
380 your source code
381 -->
382 <groupId>org.apache.maven.plugins</groupId>
383 <artifactId>maven-jxr-plugin</artifactId>
384 </plugin>
385 <plugin>
386 <!--
387 if you use @todo tags to remind you of things to be done (which is
388 a good coding practice), the taglist report will generate a list of
389 all the items marked @todo or TODO
390 -->
391 <groupId>org.codehaus.mojo</groupId>
392 <artifactId>taglist-maven-plugin</artifactId>
393 </plugin>
394 <plugin>
395 <!--
396 Test coverage can be a useful indication of the quality of your
397 unit tests. It basically tells you how much of your code is
398 actually run by your unit tests, which, in turn, can give you a
399 good idea of the tests' quality
400 -->
401 <groupId>org.codehaus.mojo</groupId>
402 <artifactId>cobertura-maven-plugin</artifactId>
403 </plugin>
404
405
406 </plugins>
407 </reporting>
408 <!-- DISTRIBUTION MANAGEMENT -->
409 <distributionManagement>
410 <site>
411 <id>edit-wp5</id>
412 <url>
413 scp://160.45.63.151/var/www/wp5.e-taxonomy.eu/cdm-server/site
414 </url>
415 </site>
416 <repository>
417 <id>edit-wp5</id>
418 <name>Edit Maven Repository</name>
419 <url>
420 scp://160.45.63.151/var/www/wp5.e-taxonomy.eu/cdmlib/mavenrepo
421 </url>
422 </repository>
423 </distributionManagement>
424
425
426 <properties>
427 <jetty-version>7.0.1.v20091125</jetty-version>
428 </properties>
429
430 <dependencies>
431 <dependency>
432 <groupId>eu.etaxonomy</groupId>
433 <artifactId>cdmlib-remote-webapp</artifactId>
434 <version>${project.version}</version>
435 <type>war</type>
436 </dependency>
437
438 <!-- JETTY 7 -->
439 <dependency>
440 <groupId>org.eclipse.jetty</groupId>
441 <artifactId>jetty-webapp</artifactId>
442 <version>${jetty-version}</version>
443 </dependency>
444 <dependency>
445 <groupId>org.eclipse.jetty</groupId>
446 <artifactId>jetty-plus</artifactId>
447 <version>${jetty-version}</version>
448 </dependency>
449 <dependency>
450 <groupId>org.eclipse.jetty</groupId>
451 <artifactId>jetty-webapp</artifactId>
452 <version>${jetty-version}</version>
453 </dependency>
454 <dependency>
455 <groupId>org.eclipse.jetty</groupId>
456 <artifactId>jetty-jmx</artifactId>
457 <version>${jetty-version}</version>
458 </dependency>
459 <dependency>
460 <groupId>org.mortbay.jetty</groupId>
461 <artifactId>jsp-2.1-glassfish</artifactId>
462 <version>9.1.1.B60.25.p2</version>
463 </dependency>
464 <dependency>
465 <groupId>javax.transaction</groupId>
466 <artifactId>jta</artifactId>
467 <version>1.1</version>
468 </dependency>
469
470 <!-- windows service -->
471 <dependency>
472 <groupId>tanukisoft</groupId>
473 <artifactId>wrapper</artifactId>
474 <version>3.2.3</version>
475 </dependency>
476
477 <!-- Logging -->
478 <dependency>
479 <groupId>org.slf4j</groupId>
480 <artifactId>slf4j-api</artifactId>
481 <version>1.6.1</version>
482 </dependency>
483 <dependency>
484 <groupId>org.slf4j</groupId>
485 <artifactId>slf4j-log4j12</artifactId>
486 <version>1.6.1</version>
487 </dependency>
488
489 <dependency>
490 <groupId>commons-cli</groupId>
491 <artifactId>commons-cli</artifactId>
492 <version>1.2</version>
493 </dependency>
494 <dependency>
495 <groupId>commons-io</groupId>
496 <artifactId>commons-io</artifactId>
497 <version>1.4</version>
498 </dependency>
499 <dependency>
500 <groupId>net.sf.jopt-simple</groupId>
501 <artifactId>jopt-simple</artifactId>
502 <version>3.2</version>
503 </dependency>
504 <dependency>
505 <groupId>c3p0</groupId>
506 <artifactId>c3p0</artifactId>
507 <version>0.9.1</version>
508 </dependency>
509 <!-- DATABASE DRIVER -->
510 <dependency>
511 <groupId>mysql</groupId>
512 <artifactId>mysql-connector-java</artifactId>
513 <version>5.0.5</version>
514 </dependency>
515 </dependencies>
516
517 </project>