Project

General

Profile

Download (20.5 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.13</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/tags/cdm-server/cdm-server-3.0.13</connection>
21
    <developerConnection>scm:svn:http://dev.e-taxonomy.eu/svn/tags/cdm-server/cdm-server-3.0.13</developerConnection>
22
    <url>http://dev.e-taxonomy.eu/trac/browser/tags/cdm-server/cdm-server-3.0.13</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/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
  </repositories>
106

    
107
  <!-- **** PLUGINS **** -->
108
  <build>
109
     <resources>
110
         <!--
111
            ${basedir}/src/main/resources
112
          -->
113
         <resource>
114
             <!--
115
                 replace the project-version placeholder in the version.properties file.
116
                 This property can then be used to retrieve the version number in the Bootloader
117
              -->
118
             <targetPath>${project.build.directory}/classes</targetPath>
119
             <filtering>true</filtering>
120
             <directory>${basedir}/src/main/resources</directory>
121
             <includes>
122
                 <include>version.properties</include>
123
             </includes>
124
         </resource>
125
         <resource>
126
               <!--
127
                   all other files in classes
128
                -->
129
               <targetPath>${project.build.directory}/classes</targetPath>
130
               <directory>${basedir}/src/main/resources</directory>
131
               <excludes>
132
                   <exclude>version.properties</exclude>
133
               </excludes>
134
          </resource>
135
          <!--
136
            ${basedir}/src/main/installer/win32
137
          -->
138
         <resource>
139
             <targetPath>${project.build.directory}/installer</targetPath>
140
             <filtering>true</filtering>
141
             <directory>${basedir}/src/main/installer</directory>
142
             <includes>
143
                 <include>win32/program-folder/etc/CDMServer.conf</include>
144
                 <include>win32/setup.nsi</include>
145
             </includes>
146
         </resource>
147
         <resource>
148
               <targetPath>${project.build.directory}/installer</targetPath>
149
               <directory>${basedir}/src/main/installer</directory>
150
               <excludes>
151
                   <exclude>win32/program-folder/etc/CDMServer.conf</exclude>
152
                   <exclude>win32/setup.nsi</exclude>
153
               </excludes>
154
          </resource>
155
     </resources>
156
  <plugins>
157
    <!-- ====== IDE ====== -->
158
      <plugin>
159
        <groupId>org.apache.maven.plugins</groupId>
160
        <artifactId>maven-eclipse-plugin</artifactId>
161
        <configuration>
162
          <downloadSources>true</downloadSources>
163
          <downloadJavadocs>true</downloadJavadocs>
164
        </configuration>
165
      </plugin>
166

    
167
      <plugin>
168
          <!--
169
            only needed for testing the svn credentials
170
            credentials are usually stored by svn automatically
171
            unless not configured differently in
172
            {user.home}\.subversion\config
173
            So in order to use a specific svn account with maven
174
            firts to a commit manually by svn ci -m "commit message"
175
            and answer the question wether to store the credential
176
            with yes.
177
            There is no specific maven configuration required for
178
            svn to work with maven!
179
          -->
180
          <groupId>org.apache.maven.plugins</groupId>
181
          <artifactId>maven-scm-plugin</artifactId>
182
          <version>1.5</version>
183
          <configuration>
184
               <connectionType>developerConnection</connectionType>
185
          </configuration>
186
        </plugin>
187
        <!-- ====== CREATE ====== -->
188
        <plugin>
189
          <artifactId>maven-compiler-plugin</artifactId>
190
          <configuration>
191
            <source>1.6</source>
192
            <target>1.6</target>
193
          </configuration>
194
        </plugin>
195
      <plugin>
196
        <artifactId>maven-surefire-plugin</artifactId>
197
        <configuration>
198
          <argLine>-Xmx512M</argLine>
199
          <includes>
200
            <include>**/*Test.java</include>
201
          </includes>
202
          <systemProperties>
203
            <property>
204
              <name>hibernate.connection.driver_class</name>
205
              <value>${hibernate.connection.driver_class}</value>
206
            </property>
207
            <property>
208
              <name>hibernate.connection.url</name>
209
              <value>${hibernate.connection.url}</value>
210
            </property>
211
            <property>
212
              <name>hibernate.connection.username</name>
213
              <value>${hibernate.connection.username}</value>
214
            </property>
215
            <property>
216
              <name>hibernate.connection.password</name>
217
              <value>${hibernate.connection.password}</value>
218
            </property>
219
          </systemProperties>
220
        </configuration>
221
      </plugin>
222
      <!-- ====== CREATE ====== -->
223
      <plugin>
224
        <groupId>org.codehaus.mojo</groupId>
225
        <artifactId>buildnumber-maven-plugin</artifactId>
226
        <version>1.0-beta-3</version>
227
        <executions>
228
          <execution>
229
            <!--<phase>deploy</phase>-->
230
            <goals>
231
              <goal>create</goal>
232
            </goals>
233
          </execution>
234
        </executions>
235
        <configuration>
236
          <doCheck>false</doCheck>
237
          <!--
238
            Only create the build number if there are no local modifications
239
          -->
240
          <doUpdate>false</doUpdate>
241
          <!--
242
            automatically update the local svn copy
243
          -->
244
        </configuration>
245
      </plugin>
246
      <plugin>
247
        <groupId>org.apache.maven.plugins</groupId>
248
        <artifactId>maven-site-plugin</artifactId>
249
        <version>2.1.1</version>
250
        <configuration>
251
          <locales>en</locales>
252
        </configuration>
253
      </plugin>
254
      <!-- ====== VERIFY ====== -->
255
      <plugin>
256
        <groupId>org.apache.maven.plugins</groupId>
257
        <artifactId>maven-source-plugin</artifactId>
258
        <executions>
259
          <execution>
260
            <id>attach-sources</id>
261
            <phase>verify</phase>
262
            <goals>
263
              <goal>jar</goal>
264
            </goals>
265
          </execution>
266
        </executions>
267
      </plugin>
268
      <plugin>
269
        <groupId>org.apache.maven.plugins</groupId>
270
        <artifactId>maven-javadoc-plugin</artifactId>
271
        <configuration>
272
          <aggregate>true</aggregate>
273
          <stylesheet>maven</stylesheet>
274
        </configuration>
275
      </plugin>
276

    
277
      <!-- ====== PACKAGE ====== -->
278
      <!--
279
        package the default webapp, and also add the
280
        cdmlib-remote-webapp.war
281
        test with: mvn war:war
282
      -->
283
      <plugin>
284
        <groupId>org.apache.maven.plugins</groupId>
285
        <artifactId>maven-war-plugin</artifactId>
286
        <version>2.1-beta-1</version>
287
        <configuration>
288
          <warName>default-webapp</warName>
289
          <overlays>
290
            <overlay>
291
              <groupId>eu.etaxonomy</groupId>
292
              <artifactId>cdmlib-remote-webapp</artifactId>
293
              <!-- version is set in dependency -->
294
              <skip>true</skip><!-- Do Not overlay  -->
295
            </overlay>
296
          </overlays>
297
        </configuration>
298
        <executions>
299
          <execution>
300
            <phase>package</phase>
301
            <goals>
302
              <goal>war</goal>
303
            </goals>
304
          </execution>
305
        </executions>
306
      </plugin>
307
       <!-- ====== INSTALL ====== -->
308
      <plugin>
309
        <!--
310
          Assemble the runnable server jar
311
          test with: mvn assembly:single
312
        -->
313
        <artifactId>maven-assembly-plugin</artifactId>
314
        <configuration>
315
          <appendAssemblyId>false</appendAssemblyId>
316
          <descriptors>
317
            <descriptor>src/main/assembly/assembly.xml</descriptor>
318
          </descriptors>
319
          <archive>
320
            <manifest>
321
              <mainClass>eu.etaxonomy.cdm.server.Bootloader</mainClass>
322
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
323
              <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
324
            </manifest>
325
          </archive>
326
        </configuration>
327
        <executions>
328
          <execution>
329
            <id>make-assembly</id>
330
            <phase>install</phase>
331
            <goals>
332
              <goal>attached</goal>
333
            </goals>
334
          </execution>
335
        </executions>
336
      </plugin>
337
      <plugin>
338
        <!--
339
          Build a Debian package
340
        -->
341
        <artifactId>maven-antrun-plugin</artifactId>
342
        <version>1.3</version>
343
        <executions>
344
          <execution>
345
            <phase>install</phase>
346
            <configuration>
347
              <tasks>
348
                <property name="project.fullversionstring" value="${project.version}" />
349
                <property name="project.version" value="${project.version}" />
350
                <ant antfile="${project.basedir}/src/main/installer/linux/build-deb.xml" dir="${project.basedir}" />
351
              </tasks>
352
            </configuration>
353
            <goals>
354
              <goal>run</goal>
355
            </goals>
356
          </execution>
357
        </executions>
358
      </plugin>
359
      <!--
360
        Build windows installer
361
       -->
362
      <plugin>
363
        <groupId>org.codehaus.mojo</groupId>
364
        <artifactId>exec-maven-plugin</artifactId>
365
        <version>1.2.1</version>
366
        <executions>
367
          <execution>
368
            <phase>install</phase>
369
            <goals>
370
              <goal>exec</goal>
371
            </goals>
372
          </execution>
373
        </executions>
374
        <configuration>
375
          <executable>makensis</executable>
376
          <!-- optional -->
377
          <workingDirectory>/tmp</workingDirectory>
378
          <arguments>
379
            <!-- <argument>-V3</argument>  -->
380
            <argument>${project.basedir}/target/installer/win32/setup.nsi</argument>
381
          </arguments>
382
        </configuration>
383
      </plugin>
384
      <!-- ====== DEPLOY ====== -->
385
      <plugin>
386
        <groupId>org.apache.maven.plugins</groupId>
387
        <artifactId>maven-release-plugin</artifactId>
388
        <version>2.1</version>
389
        <configuration>
390
          <allowTimestampedSnapshots>true</allowTimestampedSnapshots>
391
          <autoVersionSubmodules>false</autoVersionSubmodules>
392
          <preparationGoals>clean verify install</preparationGoals>
393
          <goals>deploy</goals><!-- skipping site-deploy by explicitly configuring the goal here -->
394
          <tagBase>http://dev.e-taxonomy.eu/svn/tags/cdm-server</tagBase>
395
        </configuration>
396
      </plugin>
397
      <plugin>
398
          <groupId>org.codehaus.mojo</groupId>
399
          <artifactId>wagon-maven-plugin</artifactId>
400
          <version>1.0-beta-3</version>
401
          <!--
402
               Problems with the wagon-maven-plugin have been encounterd on Windows,
403
               it should work properly on linux though.
404
           -->
405
          <executions>
406
              <execution>
407
                  <phase>deploy</phase>
408
                  <goals>
409
                      <goal>upload</goal>
410
                  </goals>
411
              </execution>
412
          </executions>
413
          <configuration>
414
              <fromDir>target</fromDir>
415
              <includes>*${project.version}*.deb,*${project.version}*.jar,*${project.version}*.exe</includes>
416
              <url>scpexe://wp5.e-taxonomy.eu/var/www/download/cdmserver/${project.version}</url>
417
              <serverId>wp5.e-taxonomy.eu</serverId>
418
          </configuration>
419
      </plugin>
420
      <plugin>
421
        <groupId>org.codehaus.mojo</groupId>
422
        <artifactId>exec-maven-plugin</artifactId>
423
        <version>1.2.1</version>
424
        <executions>
425
          <execution>
426
            <goals>
427
              <goal>exec</goal>
428
            </goals>
429
          </execution>
430
        </executions>
431
        <configuration>
432
          <!--  EXECUTE: ssh root@wp5.e-taxonomy.eu bash -c "cd /var/www/download/cdmserver;rm stable; ln -s ${project.version} stable"-->
433
          <executable>/usr/bin/ssh</executable>
434
          <arguments>
435
            <argument>root@wp5.e-taxonomy.eu</argument>
436
            <argument>bash -c "cd /var/www/download/cdmserver;rm stable; ln -s ${project.version} stable"</argument>
437
            </arguments>
438
        </configuration>
439
      </plugin>
440
    </plugins>
441
    <!-- EXTENSIONS -->
442
    <extensions>
443
      <extension>
444
        <groupId>org.apache.maven.wagon</groupId>
445
        <artifactId>wagon-scm</artifactId>
446
        <version>1.0-alpha-5</version>
447
      </extension>
448
      <extension>
449
        <groupId>org.apache.maven.wagon</groupId>
450
        <artifactId>wagon-ssh</artifactId>
451
        <version>1.0-beta-7</version>
452
      </extension>
453
      <extension>
454
        <groupId>org.apache.maven.scm</groupId>
455
        <artifactId>maven-scm-manager-plexus</artifactId>
456
        <version>1.0</version>
457
      </extension>
458
      <extension>
459
        <groupId>org.apache.maven.scm</groupId>
460
        <artifactId>maven-scm-provider-svnexe</artifactId>
461
        <version>1.0</version>
462
      </extension>
463
      <!-- WebDAV plugin to upload snapshots -->
464
      <extension>
465
        <groupId>org.apache.maven.wagon</groupId>
466
        <artifactId>wagon-webdav</artifactId>
467
        <version>1.0-beta-2</version>
468
      </extension>
469
    </extensions>
470
  </build>
471

    
472
  <reporting>
473
    <plugins>
474
      <plugin>
475
        <!-- you will want to start by publishing your classes' Javadocs -->
476
        <groupId>org.apache.maven.plugins</groupId>
477
        <artifactId>maven-javadoc-plugin</artifactId>
478
        <configuration>
479
          <links>
480
            <link>http://java.sun.com/j2se/1.6.0/docs/api/</link>
481
            <!-- more libraries? -->
482
          </links>
483
        </configuration>
484
      </plugin>
485
      <plugin>
486
        <!--
487
          this will generate an indexed and cross-referenced HTML version of
488
          your source code
489
        -->
490
        <groupId>org.apache.maven.plugins</groupId>
491
        <artifactId>maven-jxr-plugin</artifactId>
492
      </plugin>
493
      <plugin>
494
        <!--
495
          if you use @todo tags to remind you of things to be done (which is
496
          a good coding practice), the taglist report will generate a list of
497
          all the items marked @todo or TODO
498
        -->
499
        <groupId>org.codehaus.mojo</groupId>
500
        <artifactId>taglist-maven-plugin</artifactId>
501
      </plugin>
502
      <plugin>
503
        <!--
504
          Test coverage can be a useful indication of the quality of your
505
          unit tests. It basically tells you how much of your code is
506
          actually run by your unit tests, which, in turn, can give you a
507
          good idea of the tests' quality
508
        -->
509
        <groupId>org.codehaus.mojo</groupId>
510
        <artifactId>cobertura-maven-plugin</artifactId>
511
      </plugin>
512

    
513

    
514
    </plugins>
515
  </reporting>
516
  <!--	 DISTRIBUTION MANAGEMENT -->
517
  <distributionManagement>
518
    <site>
519
      <id>wp5.e-taxonomy.eu</id>
520
      <url>
521
        scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/cdm-server/
522
      </url>
523
    </site>
524
    <repository>
525
      <uniqueVersion>false</uniqueVersion>
526
      <id>wp5.e-taxonomy.eu</id>
527
      <name>Edit Maven Repository</name>
528
      <url>
529
        scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/mavenrepo
530
      </url>
531
    </repository>
532
  </distributionManagement>
533

    
534
  <dependencies>
535
    <dependency>
536
      <groupId>eu.etaxonomy</groupId>
537
      <artifactId>cdmlib-remote-webapp</artifactId>
538
      <version>${project.version}</version>
539
      <type>war</type>
540
    </dependency>
541

    
542
    <!-- JETTY 7 -->
543
    <dependency>
544
      <groupId>org.eclipse.jetty</groupId>
545
      <artifactId>jetty-webapp</artifactId>
546
      <version>${jetty-version}</version>
547
    </dependency>
548
    <dependency>
549
      <groupId>org.eclipse.jetty</groupId>
550
      <artifactId>jetty-plus</artifactId>
551
      <version>${jetty-version}</version>
552
    </dependency>
553
    <dependency>
554
      <groupId>org.eclipse.jetty</groupId>
555
      <artifactId>jetty-webapp</artifactId>
556
      <version>${jetty-version}</version>
557
    </dependency>
558
    <dependency>
559
      <groupId>org.eclipse.jetty</groupId>
560
      <artifactId>jetty-jmx</artifactId>
561
      <version>${jetty-version}</version>
562
    </dependency>
563
    <dependency>
564
      <groupId>org.eclipse.jetty</groupId>
565
      <artifactId>jetty-security</artifactId>
566
      <version>${jetty-version}</version>
567
    </dependency>
568
    <dependency>
569
      <groupId>org.mortbay.jetty</groupId>
570
      <artifactId>jsp-2.1-glassfish</artifactId>
571
      <version>9.1.1.B60.25.p2</version>
572
    </dependency>
573
    <dependency>
574
      <groupId>javax.transaction</groupId>
575
      <artifactId>jta</artifactId>
576
      <version>1.1</version>
577
    </dependency>
578
    <!-- JSON -->
579
    <dependency>
580
      <groupId>org.codehaus.jackson</groupId>
581
      <artifactId>jackson-mapper-asl</artifactId>
582
      <version>1.6.4</version>
583
    </dependency>
584
    <!-- windows service -->
585
    <dependency>
586
      <groupId>tanukisoft</groupId>
587
      <artifactId>wrapper</artifactId>
588
      <version>3.2.3</version>
589
    </dependency>
590

    
591
    <!--  Logging  -->
592
    <dependency>
593
      <groupId>org.slf4j</groupId>
594
      <artifactId>slf4j-api</artifactId>
595
      <version>1.6.1</version>
596
    </dependency>
597
    <dependency>
598
      <groupId>org.slf4j</groupId>
599
      <artifactId>slf4j-log4j12</artifactId>
600
      <version>1.6.1</version>
601
    </dependency>
602

    
603
    <dependency>
604
      <groupId>commons-cli</groupId>
605
      <artifactId>commons-cli</artifactId>
606
      <version>1.2</version>
607
    </dependency>
608
    <dependency>
609
      <groupId>commons-io</groupId>
610
      <artifactId>commons-io</artifactId>
611
      <version>1.4</version>
612
    </dependency>
613
    <dependency>
614
      <groupId>net.sf.jopt-simple</groupId>
615
      <artifactId>jopt-simple</artifactId>
616
      <version>3.2</version>
617
    </dependency>
618
    <dependency>
619
      <groupId>c3p0</groupId>
620
      <artifactId>c3p0</artifactId>
621
      <version>0.9.1</version>
622
    </dependency>
623
    <!--  DATABASE DRIVER -->
624
    <dependency>
625
      <groupId>mysql</groupId>
626
      <artifactId>mysql-connector-java</artifactId>
627
      <version>5.0.5</version>
628
    </dependency>
629
  </dependencies>
630

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