Project

General

Profile

Download (19.2 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3

    
4
  <modelVersion>4.0.0</modelVersion>
5
  <groupId>eu.etaxonomy</groupId>
6
  <artifactId>cdm-server</artifactId>
7
  <version>3.0.7-SNAPSHOT</version>
8
  <packaging>jar</packaging>
9
  <name>CDM Community Standalone Server</name>
10

    
11
  <properties>
12
    <jetty-version>7.2.2.v20101205</jetty-version>
13
  </properties>
14

    
15
  <scm>
16
    <!--
17
      see section Provider Configuration in http://maven.apache.org/scm/subversion.html
18
      for instructions on how to externalize credentials in $user.home/.scm/svn-settings.xml
19
    -->
20
    <connection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdm-server</connection>
21
    <developerConnection>scm:svn:http://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 />
73
    </developer>
74
  </developers>
75

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

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

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

    
472

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

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

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

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

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

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