Project

General

Profile

Download (17 KB) Statistics
| Branch: | Tag: | Revision:
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
	<modelVersion>4.0.0</modelVersion>
7
	<groupId>eu.etaxonomy</groupId>
8
	<artifactId>cdm-server</artifactId>
9
	<version>3.0.3-SNAPSHOT</version>
10
	<packaging>jar</packaging>
11
	<name>CDM Community Standalone Server</name>
12

    
13
	<properties>
14
		<jetty-version>7.2.2.v20101205</jetty-version>
15
	</properties>
16

    
17
	<scm>
18
		<!--
19
		  see section Provider Configuration in http://maven.apache.org/scm/subversion.html
20
		  for instructions on how to externalize credentials in $user.home/.scm/svn-settings.xml  
21
		-->
22
		<connection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdm-server/</connection>
23
		<developerConnection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdm-server/</developerConnection>
24
		<url>http://dev.e-taxonomy.eu/trac/browser/trunk/cdm-server/</url>
25
	</scm>
26

    
27
	<mailingLists>
28
		<mailingList>
29
			<name>dev-edit</name>
30
			<subscribe>
31
				https://webmail.mnhn.fr/wws/subrequest/dev-edit
32
			</subscribe>
33
			<unsubscribe>
34
				https://webmail.mnhn.fr/wws/sigrequest/dev-edit
35
			</unsubscribe>
36
			<post>dev-edit@mnhn.fr</post>
37
			<archive>https://webmail.mnhn.fr/wws/arc/dev-edit/</archive>
38
		</mailingList>
39
		<mailingList>
40
			<name>cdm-edit</name>
41
			<post>cdm-edit@mnhn.fr</post>
42
			<subscribe>
43
				https://webmail.mnhn.fr/wws/subrequest/cdm-edit
44
			</subscribe>
45
			<unsubscribe>
46
				https://webmail.mnhn.fr/wws/sigrequest/cdm-edit
47
			</unsubscribe>
48
			<archive>https://webmail.mnhn.fr/wws/arc/cdm-edit/</archive>
49
		</mailingList>
50
	</mailingLists>
51
	<licenses>
52
		<license>
53
			<name>Mozilla Public License Version 1.1</name>
54
			<url>http://www.mozilla.org/MPL/MPL-1.1.html</url>
55
			<distribution>repo</distribution>
56
		</license>
57
	</licenses>
58
	<developers>
59
		<developer>
60
			<!-- your SVN account id please! -->
61
			<id>a.kohlbecker</id>
62
			<name>
63
				Andreas Kohlbecker
64
			</name>
65
			<email>a.kohlbecker [at] bgbm.org</email>
66
			<organization>
67
				Botanical Garden Botanical Museum Berlin
68
			</organization>
69
			<organizationUrl>http://www.bgbm.org/BioDivInf/</organizationUrl>
70
			<timezone>+1</timezone>
71
			<roles>
72
				<role>Developer</role>
73
			</roles>
74
			<url></url>
75
		</developer>
76
	</developers>
77

    
78
	<!--
79
		contributors> <contributor> <name>Test-Contributor</name>
80
		</contributor> </contributors
81
	-->
82
	<issueManagement>
83
		<system>Trac</system>
84
		<url>http://dev.e-taxonomy.eu/trac/</url>
85
	</issueManagement>
86
	<ciManagement>
87
		<system>Hudson</system>
88
		<url>http://160.45.63.201/hudson</url>
89
	</ciManagement>
90
	<!-- **** REPOSITORIES **** -->
91
	<repositories>
92
		<!-- sun repository -->
93
		<repository>
94
			<id>java.net</id>
95
			<url>http://download.java.net/maven/1/</url>
96
			<layout>legacy</layout>
97
		</repository>
98
		<!-- the cdm internal repository -->
99
		<repository>
100
			<id>EditRepository</id>
101
			<url>http://wp5.e-taxonomy.eu/cdmlib/mavenrepo/</url>
102
		</repository>
103
		<!-- apache incubating repository -->
104
		<repository>
105
			<id>ApacheIncubating</id>
106
			<url>http://people.apache.org/repo/m2-incubating-repository/</url>
107
		</repository>
108
		<!-- Neccessary for hibernate-envers -->
109
		<repository>
110
			<releases>
111
				<enabled>true</enabled>
112
				<updatePolicy>always</updatePolicy>
113
				<checksumPolicy>warn</checksumPolicy>
114
			</releases>
115
			<snapshots>
116
				<enabled>false</enabled>
117
				<updatePolicy>never</updatePolicy>
118
				<checksumPolicy>fail</checksumPolicy>
119
			</snapshots>
120
			<id>jboss-repository</id>
121
			<name>JBoss Repository</name>
122
			<url>http://repository.jboss.com/maven2</url>
123
		</repository>
124
		<!-- current spring source repositories -->
125
		<repository>
126
			<id>SpringSource Enterprise Bundle Repository - External Bundle Milestones</id>
127
			<url>http://repository.springsource.com/maven/bundles/milestone</url>
128
		</repository>
129
		<repository>
130
			<id>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</id>
131
			<url>http://repository.springsource.com/maven/bundles/release</url>
132
		</repository>
133
		<repository>
134
			<id>SpringSource Enterprise Bundle Repository - External Bundle Releases</id>
135
			<url>http://repository.springsource.com/maven/bundles/external</url>
136
		</repository>
137
	</repositories>
138

    
139
	<!-- **** PLUGINS **** -->
140
	<build>
141
	   <resources>
142
	       <resource>
143
	           <!-- 
144
	               replace the project-version placeholder in the version.properties file. 
145
	               This property can then be used to retrieve the version number in the Bootloader
146
	            -->
147
	           <targetPath>${project.build.directory}/classes</targetPath>
148
	           <filtering>true</filtering> 
149
	           <directory>${basedir}/src/main/resources</directory>
150
	           <includes>
151
	               <include>version.properties</include>
152
	           </includes>
153
	       </resource>
154
	       <resource>
155
               <!-- 
156
                   all other files in classes
157
                -->
158
               <targetPath>${project.build.directory}/classes</targetPath>
159
               <directory>${basedir}/src/main/resources</directory>
160
               <excludes>
161
                   <exclude>version.properties</exclude>
162
               </excludes>
163
           </resource>
164
	   </resources>
165
		<plugins>
166
      <plugin>
167
          <!-- 
168
            only needed for testing the svn credentials 
169
            credentials are usually stored by svn automatically
170
            unless not configured differently in 
171
            {user.home}\.subversion\config
172
            So in order to use a specific svn account with maven 
173
            firts to a commit manually by svn ci -m "commit message"
174
            and answer the question wether to store the credential
175
            with yes.
176
            There is no specific maven configuration required for 
177
            svn to work with maven! 
178
          -->
179
          <groupId>org.apache.maven.plugins</groupId>
180
          <artifactId>maven-scm-plugin</artifactId>
181
          <version>1.5</version>
182
          <configuration>
183
               <connectionType>developerConnection</connectionType>
184
          </configuration>
185
        </plugin>
186
			<plugin>
187
				<artifactId>maven-compiler-plugin</artifactId>
188
				<configuration>
189
					<source>1.6</source>
190
					<target>1.6</target>
191
				</configuration>
192
			</plugin>
193
			<plugin>
194
				<groupId>org.apache.maven.plugins</groupId>
195
				<artifactId>maven-release-plugin</artifactId>
196
				<version>2.1</version>
197
				<configuration>
198
					<allowTimestampedSnapshots>true</allowTimestampedSnapshots>
199
					<autoVersionSubmodules>false</autoVersionSubmodules>
200
					<preparationGoals>clean install</preparationGoals>
201
					<tag>cdm-server/${project.version}</tag>
202
				</configuration>
203
			</plugin>
204
			<plugin>
205
				<artifactId>maven-surefire-plugin</artifactId>
206
				<configuration>
207
					<argLine>-Xmx512M</argLine>
208
					<includes>
209
						<include>**/*Test.java</include>
210
					</includes>
211
					<systemProperties>
212
						<property>
213
							<name>hibernate.connection.driver_class</name>
214
							<value>${hibernate.connection.driver_class}</value>
215
						</property>
216
						<property>
217
							<name>hibernate.connection.url</name>
218
							<value>${hibernate.connection.url}</value>
219
						</property>
220
						<property>
221
							<name>hibernate.connection.username</name>
222
							<value>${hibernate.connection.username}</value>
223
						</property>
224
						<property>
225
							<name>hibernate.connection.password</name>
226
							<value>${hibernate.connection.password}</value>
227
						</property>
228
					</systemProperties>
229
				</configuration>
230
			</plugin>
231
			<plugin>
232
				<groupId>org.codehaus.mojo</groupId>
233
				<artifactId>buildnumber-maven-plugin</artifactId>
234
				<version>1.0-beta-3</version>
235
				<executions>
236
					<execution>
237
						<!--<phase>deploy</phase>-->
238
						<goals>
239
							<goal>create</goal>
240
						</goals>
241
					</execution>
242
				</executions>
243
				<configuration>
244
					<doCheck>false</doCheck>
245
					<!--
246
						Only create the build number if there are no local modifications
247
					-->
248
					<doUpdate>false</doUpdate>
249
					<!--
250
						automatically update the local svn copy
251
					-->
252
				</configuration>
253
			</plugin>
254
			<plugin>
255
				<groupId>org.apache.maven.plugins</groupId>
256
				<artifactId>maven-site-plugin</artifactId>
257
				<version>2.1.1</version>
258
				<configuration>
259
					<locales>en</locales>
260
				</configuration>
261
			</plugin>
262
			<plugin>
263
				<groupId>org.apache.maven.plugins</groupId>
264
				<artifactId>maven-source-plugin</artifactId>
265
				<executions>
266
					<execution>
267
						<id>attach-sources</id>
268
						<phase>verify</phase>
269
						<goals>
270
							<goal>jar</goal>
271
						</goals>
272
					</execution>
273
				</executions>
274
			</plugin>
275
			<plugin>
276
				<groupId>org.apache.maven.plugins</groupId>
277
				<artifactId>maven-javadoc-plugin</artifactId>
278
				<configuration>
279
					<aggregate>true</aggregate>
280
					<stylesheet>maven</stylesheet>
281
				</configuration>
282
			</plugin>
283
			<plugin>
284
				<groupId>org.apache.maven.plugins</groupId>
285
				<artifactId>maven-eclipse-plugin</artifactId>
286
				<configuration>
287
					<downloadSources>true</downloadSources>
288
					<downloadJavadocs>true</downloadJavadocs>
289
				</configuration>
290
			</plugin>
291
			<!-- INSTALL -->
292
			<!--
293
				package the default webapp, and also add the
294
				cdmlib-remote-webapp.war
295
				test with: mvn war:war
296
			-->
297
			<plugin>
298
				<groupId>org.apache.maven.plugins</groupId>
299
				<artifactId>maven-war-plugin</artifactId>
300
				<version>2.1-beta-1</version>
301
				<configuration>
302
					<warName>default-webapp</warName>
303
					<overlays>
304
						<overlay>
305
							<groupId>eu.etaxonomy</groupId>
306
							<artifactId>cdmlib-remote-webapp</artifactId>
307
							<!-- version is set in dependency -->
308
							<skip>true</skip><!-- Do Not overlay  -->
309
						</overlay>
310
					</overlays>
311
				</configuration>
312
				<executions>
313
					<execution>
314
						<phase>package</phase>
315
						<goals>
316
							<goal>war</goal>
317
						</goals>
318
					</execution>
319
				</executions>
320
			</plugin>
321
			<plugin>
322
				<!--
323
					Assemble the runnable server jar
324
					test with: mvn assembly:single
325
				-->
326
				<artifactId>maven-assembly-plugin</artifactId>
327
				<configuration>
328
					<appendAssemblyId>false</appendAssemblyId>
329
					<descriptors>
330
						<descriptor>src/main/assembly/assembly.xml</descriptor>
331
					</descriptors>
332
					<archive>
333
						<manifest>
334
							<mainClass>eu.etaxonomy.cdm.server.Bootloader</mainClass>
335
							<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
336
							<addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
337
						</manifest>
338
					</archive>
339
				</configuration>
340
				<executions>
341
					<execution>
342
						<id>make-assembly</id>
343
						<phase>install</phase>
344
						<goals>
345
							<goal>attached</goal>
346
						</goals>
347
					</execution>
348
				</executions>
349
			</plugin>
350
			<plugin>
351
				<!--
352
					Build a Debian package
353
				-->
354
				<artifactId>maven-antrun-plugin</artifactId>
355
				<version>1.3</version>
356
				<executions>
357
					<execution>
358
						<phase>install</phase>
359
						<configuration>
360
							<tasks>
361
								<property name="project.fullversionstring" value="${project.version}" />
362
								<property name="project.version" value="${project.version}" />
363
								<ant antfile="${project.basedir}/src/main/installer/linux/build-deb.xml"
364
									dir="${project.basedir}" />
365
							</tasks>
366
						</configuration>
367
						<goals>
368
							<goal>run</goal>
369
						</goals>
370
					</execution>
371
				</executions>
372
			</plugin>
373
			<!-- DEPLOY -->
374
			<plugin>
375
				<!--
376
					Upload the installer to the download site on the server
377
				-->
378
				<!--
379
					USAGE: http://myfaces.apache.org/wagon-maven-plugin/usage.html
380
				-->
381
				<groupId>org.apache.myfaces.maven</groupId>
382
				<artifactId>wagon-maven-plugin</artifactId>
383
				<version>1.0.6</version>
384
				<configuration>
385
					<id>wp5.e-taxonomy.eu</id>
386
					<url>scpexe://160.45.63.151/var/www/download/cdmserver/${project.version}</url>
387
					<inputDirectory>target/installer</inputDirectory>
388
				</configuration>
389
				<executions>
390
					<execution>
391
						<id>upload-binaries</id>
392
						<phase>deploy</phase>
393
						<goals>
394
							<goal>deploy</goal>
395
						</goals>
396
					</execution>
397
				</executions>
398
			</plugin>
399
		</plugins>
400
		<!-- EXTENSIONS -->
401
		<extensions>
402
			<extension>
403
				<groupId>org.apache.maven.wagon</groupId>
404
				<artifactId>wagon-scm</artifactId>
405
				<version>1.0-alpha-5</version>
406
			</extension>
407
			<extension>
408
				<groupId>org.apache.maven.wagon</groupId>
409
				<artifactId>wagon-ssh</artifactId>
410
				<version>1.0-beta-7</version>
411
			</extension>
412
			<extension>
413
				<groupId>org.apache.maven.scm</groupId>
414
				<artifactId>maven-scm-manager-plexus</artifactId>
415
				<version>1.0</version>
416
			</extension>
417
			<extension>
418
				<groupId>org.apache.maven.scm</groupId>
419
				<artifactId>maven-scm-provider-svnexe</artifactId>
420
				<version>1.0</version>
421
			</extension>
422
			<!-- WebDAV plugin to upload snapshots -->
423
			<extension>
424
				<groupId>org.apache.maven.wagon</groupId>
425
				<artifactId>wagon-webdav</artifactId>
426
				<version>1.0-beta-2</version>
427
			</extension>
428
		</extensions>
429
	</build>
430

    
431
	<reporting>
432
		<plugins>
433
			<plugin>
434
				<!-- you will want to start by publishing your classes' Javadocs -->
435
				<groupId>org.apache.maven.plugins</groupId>
436
				<artifactId>maven-javadoc-plugin</artifactId>
437
				<configuration>
438
					<links>
439
						<link>http://java.sun.com/j2se/1.6.0/docs/api/</link>
440
						<link>http://static.springframework.org/spring/docs/2.5.x/api/</link>
441
						<link>http://www.hibernate.org/hib_docs/v3/api/</link>
442
						<!-- more libraries? -->
443
					</links>
444
				</configuration>
445
			</plugin>
446
			<plugin>
447
				<!--
448
					this will generate an indexed and cross-referenced HTML version of
449
					your source code
450
				-->
451
				<groupId>org.apache.maven.plugins</groupId>
452
				<artifactId>maven-jxr-plugin</artifactId>
453
			</plugin>
454
			<plugin>
455
				<!--
456
					if you use @todo tags to remind you of things to be done (which is
457
					a good coding practice), the taglist report will generate a list of
458
					all the items marked @todo or TODO
459
				-->
460
				<groupId>org.codehaus.mojo</groupId>
461
				<artifactId>taglist-maven-plugin</artifactId>
462
			</plugin>
463
			<plugin>
464
				<!--
465
					Test coverage can be a useful indication of the quality of your
466
					unit tests. It basically tells you how much of your code is
467
					actually run by your unit tests, which, in turn, can give you a
468
					good idea of the tests' quality
469
				-->
470
				<groupId>org.codehaus.mojo</groupId>
471
				<artifactId>cobertura-maven-plugin</artifactId>
472
			</plugin>
473

    
474

    
475
		</plugins>
476
	</reporting>
477
	<!--	 DISTRIBUTION MANAGEMENT -->
478
	<distributionManagement>
479
		<site>
480
			<id>wp5.e-taxonomy.eu</id>
481
			<url>
482
				scpexe://160.45.63.151/var/www/wp5.e-taxonomy.eu/cdm-server/
483
			</url>
484
		</site>
485
		<repository>
486
			<id>wp5.e-taxonomy.eu</id>
487
			<name>Edit Maven Repository</name>
488
			<url>
489
				scpexe://160.45.63.151/var/www/wp5.e-taxonomy.eu/cdmlib/mavenrepo
490
			</url>
491
		</repository>
492
	</distributionManagement>
493

    
494
	<dependencies>
495
		<dependency>
496
			<groupId>eu.etaxonomy</groupId>
497
			<artifactId>cdmlib-remote-webapp</artifactId>
498
			<version>${project.version}</version>
499
			<type>war</type>
500
		</dependency>
501

    
502
		<!-- JETTY 7 -->
503
		<dependency>
504
			<groupId>org.eclipse.jetty</groupId>
505
			<artifactId>jetty-webapp</artifactId>
506
			<version>${jetty-version}</version>
507
		</dependency>
508
		<dependency>
509
			<groupId>org.eclipse.jetty</groupId>
510
			<artifactId>jetty-plus</artifactId>
511
			<version>${jetty-version}</version>
512
		</dependency>
513
		<dependency>
514
			<groupId>org.eclipse.jetty</groupId>
515
			<artifactId>jetty-webapp</artifactId>
516
			<version>${jetty-version}</version>
517
		</dependency>
518
		<dependency>
519
			<groupId>org.eclipse.jetty</groupId>
520
			<artifactId>jetty-jmx</artifactId>
521
			<version>${jetty-version}</version>
522
		</dependency>
523
		<dependency>
524
			<groupId>org.eclipse.jetty</groupId>
525
			<artifactId>jetty-security</artifactId>
526
			<version>${jetty-version}</version>
527
		</dependency>
528
		<dependency>
529
			<groupId>org.mortbay.jetty</groupId>
530
			<artifactId>jsp-2.1-glassfish</artifactId>
531
			<version>9.1.1.B60.25.p2</version>
532
		</dependency>
533
		<dependency>
534
			<groupId>javax.transaction</groupId>
535
			<artifactId>jta</artifactId>
536
			<version>1.1</version>
537
		</dependency>
538
		<!-- JSON -->
539
		<dependency>
540
			<groupId>org.codehaus.jackson</groupId>
541
			<artifactId>jackson-mapper-asl</artifactId>
542
			<version>1.6.4</version>
543
		</dependency>
544
		<!-- windows service -->
545
		<dependency>
546
			<groupId>tanukisoft</groupId>
547
			<artifactId>wrapper</artifactId>
548
			<version>3.2.3</version>
549
		</dependency>
550

    
551
		<!--  Logging  -->
552
		<dependency>
553
			<groupId>org.slf4j</groupId>
554
			<artifactId>slf4j-api</artifactId>
555
			<version>1.6.1</version>
556
		</dependency>
557
		<dependency>
558
			<groupId>org.slf4j</groupId>
559
			<artifactId>slf4j-log4j12</artifactId>
560
			<version>1.6.1</version>
561
		</dependency>
562

    
563
		<dependency>
564
			<groupId>commons-cli</groupId>
565
			<artifactId>commons-cli</artifactId>
566
			<version>1.2</version>
567
		</dependency>
568
		<dependency>
569
			<groupId>commons-io</groupId>
570
			<artifactId>commons-io</artifactId>
571
			<version>1.4</version>
572
		</dependency>
573
		<dependency>
574
			<groupId>net.sf.jopt-simple</groupId>
575
			<artifactId>jopt-simple</artifactId>
576
			<version>3.2</version>
577
		</dependency>
578
		<dependency>
579
			<groupId>c3p0</groupId>
580
			<artifactId>c3p0</artifactId>
581
			<version>0.9.1</version>
582
		</dependency>
583
		<!--  DATABASE DRIVER -->
584
		<dependency>
585
			<groupId>mysql</groupId>
586
			<artifactId>mysql-connector-java</artifactId>
587
			<version>5.0.5</version>
588
		</dependency>
589
	</dependencies>
590

    
591
</project>
(4-4/4)