Project

General

Profile

Download (27.2 KB) Statistics
| Branch: | Tag: | Revision:
1 5bd25aba Andreas Kohlbecker
<?xml version="1.0" encoding="UTF-8"?>
2 624c228c edit-jenkins
<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 5bd25aba Andreas Kohlbecker
4 66465ecb Andreas Kohlbecker
  <modelVersion>4.0.0</modelVersion>
5
  <groupId>eu.etaxonomy</groupId>
6
  <artifactId>cdm-server</artifactId>
7 7e1047c1 jenkins
  <version>5.29.0-SNAPSHOT</version>
8 66465ecb Andreas Kohlbecker
  <packaging>jar</packaging>
9
  <name>CDM Community Standalone Server</name>
10 17249333 Andreas Kohlbecker
11 66465ecb Andreas Kohlbecker
  <properties>
12 972cd222 Andreas Kohlbecker
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13 33d62613 Andreas Kohlbecker
    <jetty-version>9.4.26.v20200117</jetty-version>
14 d2fbb2f5 Andreas Kohlbecker
    <javadoc.opts>-Xdoclint:none</javadoc.opts>
15 66465ecb Andreas Kohlbecker
  </properties>
16 5bd25aba Andreas Kohlbecker
17 66465ecb Andreas Kohlbecker
  <scm>
18 3f91e2a5 Cherian Mathew
    <!-- see section Provider Configuration in http://maven.apache.org/scm/subversion.html 
19 66465ecb Andreas Kohlbecker
      for instructions on how to externalize credentials in $user.home/.scm/svn-settings.xml -->
20 b31886a0 Patrick Plitzner
    <connection>scm:git:https://dev.e-taxonomy.eu/git/cdm-server.git</connection>
21
    <developerConnection>scm:git:ssh://git@dev.e-taxonomy.eu/var/git/cdm-server.git</developerConnection>
22
    <url>https://dev.e-taxonomy.eu/gitweb/cdm-server.git/tree</url>
23 66465ecb Andreas Kohlbecker
  </scm>
24 e3647a3c Andreas Kohlbecker
  
25
  <prerequisites>
26 988b213a Andreas Müller
    <maven>3.2.3</maven>
27 e3647a3c Andreas Kohlbecker
  </prerequisites>
28 5bd25aba Andreas Kohlbecker
29 66465ecb Andreas Kohlbecker
  <mailingLists>
30
    <mailingList>
31 2a116ba5 Andreas Kohlbecker
        <name>EDIT Platform Developers</name>
32
        <subscribe>
33
            https://lists.fu-berlin.de/listinfo/editplatformdevelopers#subscribe
34
        </subscribe>
35
        <unsubscribe>
36
            https://lists.fu-berlin.de/listinfo/editplatformdevelopers#options
37
        </unsubscribe>
38 66465ecb Andreas Kohlbecker
    </mailingList>
39
    <mailingList>
40 2a116ba5 Andreas Kohlbecker
        <name>EDIT User</name>
41
        <subscribe>
42
            https://lists.fu-berlin.de/listinfo/edituser#subscribe
43
        </subscribe>
44
        <unsubscribe>
45
            https://lists.fu-berlin.de/listinfo/edituser#options
46
        </unsubscribe>
47 66465ecb Andreas Kohlbecker
    </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 e0541bd1 Andreas Kohlbecker
        Andreas Kohlbecker
62
      </name>
63 66465ecb Andreas Kohlbecker
      <email>a.kohlbecker [at] bgbm.org</email>
64
      <organization>
65 e0541bd1 Andreas Kohlbecker
        Botanical Garden Botanical Museum Berlin
66
      </organization>
67 68e2422c Andreas Müller
      <organizationUrl>https://www.bgbm.org/en/biodiversity-informatics</organizationUrl>
68 66465ecb Andreas Kohlbecker
      <timezone>+1</timezone>
69
      <roles>
70
        <role>Developer</role>
71
      </roles>
72
      <url />
73
    </developer>
74
  </developers>
75 5bd25aba Andreas Kohlbecker
76 3f91e2a5 Cherian Mathew
  <!-- contributors> <contributor> <name>Test-Contributor</name> </contributor> 
77 66465ecb Andreas Kohlbecker
    </contributors -->
78
  <issueManagement>
79 988b213a Andreas Müller
    <system>Redmine</system>
80
    <url>http://dev.e-taxonomy.eu/redmine/</url>
81 66465ecb Andreas Kohlbecker
  </issueManagement>
82
  <ciManagement>
83
    <system>Jenkins</system>
84 203a0b07 Patrick Plitzner
    <url>http://int.e-taxonomy.eu/jenkins</url>
85 66465ecb Andreas Kohlbecker
  </ciManagement>
86
  <!-- **** REPOSITORIES **** -->
87 9e0cf9c0 Andreas Kohlbecker
  <profiles>
88
    <profile>
89
      <id>local-repository</id>
90
      <activation>
91
        <property>
92
          <name>localrepo</name>
93
        </property>
94
      </activation>
95
      <repositories>
96
        <repository>
97
          <id>EditLocalRepository</id>
98
          <url>file://${localrepo}/eu/etaxonomy/</url>
99
          <releases>
100
            <enabled>false</enabled>
101
            <updatePolicy>always</updatePolicy>
102
          </releases>
103
          <snapshots>
104
            <enabled>true</enabled>
105
            <updatePolicy>always</updatePolicy>
106
          </snapshots>
107
        </repository>
108
      </repositories>
109
    </profile>
110
  </profiles>
111 66465ecb Andreas Kohlbecker
  <repositories>
112
    <!-- sun repository -->
113
    <repository>
114 3f91e2a5 Cherian Mathew
      <id>java.net-Public</id>
115
      <name>Maven Java Net Snapshots and Releases</name>
116
      <url>https://maven.java.net/content/groups/public/</url>
117 66465ecb Andreas Kohlbecker
    </repository>
118
    <!-- the localhost Maven Repository -->
119
    <repository>
120 3f91e2a5 Cherian Mathew
      <id>EditLocalRepository</id>
121
      <!-- disable the local repo to let maven always retrieve the latest 
122 d220174c Cherian Mathew
        cdm-webapp.war TODO: use ${localrepo} for ${user.home}/.m2/repository 
123 3f91e2a5 Cherian Mathew
        in MAVEN 3 -->
124
      <url>file://${user.home}/.m2/repository/eu/etaxonomy/</url>
125
      <releases>
126
        <enabled>false</enabled>
127
        <updatePolicy>always</updatePolicy>
128
      </releases>
129
      <snapshots>
130
        <enabled>false</enabled>
131
        <updatePolicy>always</updatePolicy>
132
      </snapshots>
133
    </repository>
134 66465ecb Andreas Kohlbecker
    <!-- the EDIT Maven Repository -->
135
    <repository>
136
      <id>EditRepository</id>
137
      <url>http://wp5.e-taxonomy.eu/mavenrepo/</url>
138
      <releases>
139
        <enabled>true</enabled>
140
        <updatePolicy>always</updatePolicy>
141
      </releases>
142
      <snapshots>
143
        <enabled>true</enabled>
144
        <updatePolicy>always</updatePolicy>
145
      </snapshots>
146
    </repository>
147
    <!-- apache incubating repository -->
148
    <repository>
149
      <id>ApacheIncubating</id>
150
      <url>http://people.apache.org/repo/m2-incubating-repository/</url>
151
    </repository>
152
  </repositories>
153 5bd25aba Andreas Kohlbecker
154 66465ecb Andreas Kohlbecker
  <!-- **** PLUGINS **** -->
155
  <build>
156
    <resources>
157
      <!-- ${basedir}/src/main/resources -->
158
      <resource>
159 3f91e2a5 Cherian Mathew
        <!-- replace the project-version placeholder in the version.properties 
160
          file. This property can then be used to retrieve the version number in the 
161 66465ecb Andreas Kohlbecker
          Bootloader -->
162
        <targetPath>${project.build.directory}/classes</targetPath>
163
        <filtering>true</filtering>
164
        <directory>${basedir}/src/main/resources</directory>
165
        <includes>
166
          <include>version.properties</include>
167
        </includes>
168
      </resource>
169
      <resource>
170
        <!-- all other files in classes -->
171
        <targetPath>${project.build.directory}/classes</targetPath>
172
        <directory>${basedir}/src/main/resources</directory>
173
        <excludes>
174
          <exclude>version.properties</exclude>
175
        </excludes>
176
      </resource>
177
      <!-- ${basedir}/src/main/installer/win32 -->
178
      <resource>
179
        <targetPath>${project.build.directory}/installer</targetPath>
180
        <filtering>true</filtering>
181
        <directory>${basedir}/src/main/installer</directory>
182
        <includes>
183
          <include>win32/program-folder/etc/CDMServer.conf</include>
184
          <include>win32/setup.nsi</include>
185
        </includes>
186
      </resource>
187
      <resource>
188
        <targetPath>${project.build.directory}/installer</targetPath>
189
        <directory>${basedir}/src/main/installer</directory>
190
        <excludes>
191
          <exclude>win32/program-folder/etc/CDMServer.conf</exclude>
192
          <exclude>win32/setup.nsi</exclude>
193
        </excludes>
194
      </resource>
195
    </resources>
196
    <plugins>
197
      <!-- ====== IDE ====== -->
198
      <plugin>
199
        <groupId>org.apache.maven.plugins</groupId>
200
        <artifactId>maven-eclipse-plugin</artifactId>
201 39cfd7b0 Andreas Müller
        <version>2.10</version>
202 66465ecb Andreas Kohlbecker
        <configuration>
203
          <downloadSources>true</downloadSources>
204
          <downloadJavadocs>true</downloadJavadocs>
205
        </configuration>
206
      </plugin>
207 117b614b Andreas Kohlbecker
208 66465ecb Andreas Kohlbecker
      <plugin>
209 3f91e2a5 Cherian Mathew
        <!-- only needed for testing the svn credentials credentials are 
210
          usually stored by svn automatically unless not configured differently in 
211
          {user.home}\.subversion\config So in order to use a specific svn account 
212
          with maven firts to a commit manually by svn ci -m "commit message" and answer 
213
          the question wether to store the credential with yes. There is no specific 
214
          maven configuration required for svn to work with maven! -->
215 66465ecb Andreas Kohlbecker
        <groupId>org.apache.maven.plugins</groupId>
216
        <artifactId>maven-scm-plugin</artifactId>
217 41380b9d Andreas Müller
        <version>1.12.2</version>
218 66465ecb Andreas Kohlbecker
        <configuration>
219
          <connectionType>developerConnection</connectionType>
220
        </configuration>
221
      </plugin>
222
      <!-- ====== CREATE ====== -->
223 e3647a3c Andreas Kohlbecker
      <plugin>
224
        <groupId>org.apache.maven.plugins</groupId>
225
        <artifactId>maven-resources-plugin</artifactId>
226 179f09a7 Andreas Kohlbecker
        <version>2.7</version>
227 e3647a3c Andreas Kohlbecker
      </plugin>
228 66465ecb Andreas Kohlbecker
      <plugin>
229 1f3a4888 Andreas Kohlbecker
        <groupId>org.apache.maven.plugins</groupId>
230 66465ecb Andreas Kohlbecker
        <artifactId>maven-compiler-plugin</artifactId>
231 30654221 Andreas Müller
        <version>3.9.0</version>
232 66465ecb Andreas Kohlbecker
        <configuration>
233 998e1b74 Andreas Kohlbecker
          <source>1.8</source>
234
          <target>1.8</target>
235 66465ecb Andreas Kohlbecker
        </configuration>
236
      </plugin>
237
      <plugin>
238 1f3a4888 Andreas Kohlbecker
        <groupId>org.apache.maven.plugins</groupId>
239 66465ecb Andreas Kohlbecker
        <artifactId>maven-surefire-plugin</artifactId>
240 179f09a7 Andreas Kohlbecker
        <version>2.18.1</version>
241 66465ecb Andreas Kohlbecker
        <configuration>
242
          <argLine>-Xmx512M</argLine>
243
          <includes>
244
            <include>**/*Test.java</include>
245
          </includes>
246
          <systemProperties>
247
            <property>
248
              <name>hibernate.connection.driver_class</name>
249
              <value>${hibernate.connection.driver_class}</value>
250
            </property>
251
            <property>
252
              <name>hibernate.connection.url</name>
253
              <value>${hibernate.connection.url}</value>
254
            </property>
255
            <property>
256
              <name>hibernate.connection.username</name>
257
              <value>${hibernate.connection.username}</value>
258
            </property>
259
            <property>
260
              <name>hibernate.connection.password</name>
261
              <value>${hibernate.connection.password}</value>
262
            </property>
263
          </systemProperties>
264
        </configuration>
265
      </plugin>
266
      <!-- ====== CREATE ====== -->
267
      <plugin>
268
        <groupId>org.codehaus.mojo</groupId>
269
        <artifactId>buildnumber-maven-plugin</artifactId>
270 e3647a3c Andreas Kohlbecker
        <version>1.3</version>
271 66465ecb Andreas Kohlbecker
        <executions>
272
          <execution>
273
            <!--<phase>deploy</phase> -->
274
            <goals>
275
              <goal>create</goal>
276
            </goals>
277
          </execution>
278
        </executions>
279
        <configuration>
280
          <doCheck>false</doCheck>
281
          <!-- Only create the build number if there are no local modifications -->
282
          <doUpdate>false</doUpdate>
283
          <!-- automatically update the local svn copy -->
284
        </configuration>
285
      </plugin>
286
      <plugin>
287
        <groupId>org.apache.maven.plugins</groupId>
288
        <artifactId>maven-site-plugin</artifactId>
289 39cfd7b0 Andreas Müller
        <version>3.10.0</version>
290 66465ecb Andreas Kohlbecker
        <configuration>
291
          <locales>en</locales>
292 f15f6cdf Andreas Kohlbecker
          <outputEncoding>UTF-8</outputEncoding>
293
          <chmod>false</chmod>
294 66465ecb Andreas Kohlbecker
        </configuration>
295
      </plugin>
296
      <!-- ====== VERIFY ====== -->
297
      <plugin>
298
        <groupId>org.apache.maven.plugins</groupId>
299
        <artifactId>maven-source-plugin</artifactId>
300 179f09a7 Andreas Kohlbecker
        <version>2.4</version>
301 66465ecb Andreas Kohlbecker
        <executions>
302
          <execution>
303
            <id>attach-sources</id>
304
            <phase>verify</phase>
305
            <goals>
306
              <goal>jar</goal>
307
            </goals>
308
          </execution>
309
        </executions>
310
      </plugin>
311
      <plugin>
312
        <groupId>org.apache.maven.plugins</groupId>
313
        <artifactId>maven-javadoc-plugin</artifactId>
314 179f09a7 Andreas Kohlbecker
        <version>2.10.2</version>
315 66465ecb Andreas Kohlbecker
        <configuration>
316
          <aggregate>true</aggregate>
317
          <stylesheet>maven</stylesheet>
318 d2fbb2f5 Andreas Kohlbecker
          <failOnError>false</failOnError>
319
          <additionalparam>${javadoc.opts}</additionalparam>
320 66465ecb Andreas Kohlbecker
        </configuration>
321
      </plugin>
322 117b614b Andreas Kohlbecker
323 66465ecb Andreas Kohlbecker
      <!-- ====== PROCESS-SOURCES ====== -->
324
      <plugin>
325
        <groupId>org.apache.maven.plugins</groupId>
326
        <artifactId>maven-dependency-plugin</artifactId>
327 e3647a3c Andreas Kohlbecker
        <version>2.10</version>
328 66465ecb Andreas Kohlbecker
        <executions>
329
          <execution>
330
            <id>copy</id>
331
            <goals>
332
              <goal>copy</goal>
333
            </goals>
334
            <configuration>
335
              <silent>flase</silent>
336
              <stripVersion>true</stripVersion>
337
              <overWriteSnapshots>true</overWriteSnapshots>
338
              <overWriteIfNewer>true</overWriteIfNewer>
339
              <overWriteReleases>true</overWriteReleases>
340
              <artifactItems>
341
                <artifactItem>
342 d220174c Cherian Mathew
                  <!-- copy the cdm-webapp-${project.version}.war 
343 3f91e2a5 Cherian Mathew
                    to the build dir -->
344 66465ecb Andreas Kohlbecker
                  <groupId>eu.etaxonomy</groupId>
345 d220174c Cherian Mathew
                  <artifactId>cdm-webapp</artifactId>
346 9411e0fb Andreas Kohlbecker
                  <version>${project.version}</version>
347 66465ecb Andreas Kohlbecker
                  <type>war</type>
348
                  <!-- <classifier> [classifier - optional] </classifier> -->
349
                  <overWrite>true</overWrite>
350 d220174c Cherian Mathew
                  <destFileName>cdm-webapp-${project.version}.war</destFileName>
351 66465ecb Andreas Kohlbecker
                  <outputDirectory>
352 9e0cf9c0 Andreas Kohlbecker
                    ${project.build.directory}
353
                  </outputDirectory>
354 66465ecb Andreas Kohlbecker
                </artifactItem>
355
              </artifactItems>
356
            </configuration>
357
          </execution>
358
        </executions>
359
      </plugin>
360 17edc7de Andreas Kohlbecker
361 66465ecb Andreas Kohlbecker
      <!-- ====== PACKAGE ====== -->
362 d220174c Cherian Mathew
      <!-- package the default webapp, // (and also add the cdm-webapp.war) 
363 66465ecb Andreas Kohlbecker
        test with: mvn war:war -->
364
      <plugin>
365
        <groupId>org.apache.maven.plugins</groupId>
366
        <artifactId>maven-war-plugin</artifactId>
367 e3647a3c Andreas Kohlbecker
        <version>2.6</version>
368 66465ecb Andreas Kohlbecker
        <configuration>
369
          <warName>default-webapp</warName>
370 9e0cf9c0 Andreas Kohlbecker
          <packagingExcludes>
371 d220174c Cherian Mathew
            cdm-webapp-*.war
372 9e0cf9c0 Andreas Kohlbecker
          </packagingExcludes>
373 d220174c Cherian Mathew
          <!-- <overlays> <overlay> <groupId>eu.etaxonomy</groupId> <artifactId>cdm-webapp</artifactId> 
374 3f91e2a5 Cherian Mathew
            <!- - version is set in dependency - -> <skip>true</skip> <!- - Do Not overlay 
375
            - -> </overlay> </overlays> -->
376 66465ecb Andreas Kohlbecker
        </configuration>
377
        <executions>
378
          <execution>
379
            <phase>package</phase>
380
            <goals>
381
              <goal>war</goal>
382
            </goals>
383
          </execution>
384
        </executions>
385
      </plugin>
386
      <plugin>
387
        <!-- Assemble the runnable server jar test with: mvn assembly:single -->
388 1f3a4888 Andreas Kohlbecker
        <groupId>org.apache.maven.plugins</groupId>
389 66465ecb Andreas Kohlbecker
        <artifactId>maven-assembly-plugin</artifactId>
390 e3647a3c Andreas Kohlbecker
        <version>2.5.3</version>
391 66465ecb Andreas Kohlbecker
        <configuration>
392
          <appendAssemblyId>false</appendAssemblyId>
393
          <descriptors>
394
            <descriptor>src/main/assembly/assembly.xml</descriptor>
395
          </descriptors>
396
          <archive>
397
            <manifest>
398
              <mainClass>eu.etaxonomy.cdm.server.Bootloader</mainClass>
399
              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
400
              <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
401
            </manifest>
402
          </archive>
403
        </configuration>
404
        <executions>
405
          <execution>
406
            <id>make-assembly</id>
407 61c9e055 Andreas Kohlbecker
            <phase>package</phase>
408 66465ecb Andreas Kohlbecker
            <goals>
409
              <goal>attached</goal>
410
            </goals>
411
          </execution>
412
        </executions>
413
      </plugin>
414
      <plugin>
415 61c9e055 Andreas Kohlbecker
      <!-- ====== INSTALL ====== -->
416 66465ecb Andreas Kohlbecker
        <!-- Build a Debian package -->
417 1f3a4888 Andreas Kohlbecker
        <groupId>org.apache.maven.plugins</groupId>
418 66465ecb Andreas Kohlbecker
        <artifactId>maven-antrun-plugin</artifactId>
419 e3647a3c Andreas Kohlbecker
        <version>1.8</version>
420 66465ecb Andreas Kohlbecker
        <executions>
421
          <execution>
422
            <phase>install</phase>
423
            <configuration>
424
              <tasks>
425 624c228c edit-jenkins
                <property name="project.fullversionstring" value="${project.version}" />
426 66465ecb Andreas Kohlbecker
                <property name="project.version" value="${project.version}" />
427 624c228c edit-jenkins
                <ant antfile="${project.basedir}/src/main/installer/linux/build-deb.xml" dir="${project.basedir}" />
428 66465ecb Andreas Kohlbecker
              </tasks>
429
            </configuration>
430
            <goals>
431
              <goal>run</goal>
432
            </goals>
433
          </execution>
434
        </executions>
435
      </plugin>
436
      <!-- Build windows installer -->
437
      <plugin>
438
        <groupId>org.codehaus.mojo</groupId>
439
        <artifactId>exec-maven-plugin</artifactId>
440 179f09a7 Andreas Kohlbecker
        <version>1.3.2</version>
441 66465ecb Andreas Kohlbecker
        <executions>
442
          <execution>
443
            <phase>install</phase>
444
            <goals>
445
              <goal>exec</goal>
446
            </goals>
447
          </execution>
448
        </executions>
449
        <configuration>
450
          <executable>makensis</executable>
451
          <!-- optional -->
452
          <workingDirectory>/tmp</workingDirectory>
453
          <arguments>
454
            <!-- <argument>-V3</argument> -->
455
            <argument>${project.basedir}/target/installer/win32/setup.nsi</argument>
456
          </arguments>
457
        </configuration>
458
      </plugin>
459 ed5ad657 Andreas Kohlbecker
      <!-- Build Docker image -->
460
      <plugin>
461
        <groupId>io.fabric8</groupId>
462
        <artifactId>docker-maven-plugin</artifactId>
463
        <version>0.28.0</version>
464
        <configuration>
465
           <images>
466
             <image>
467
               <!-- docker hub does not allow dots in organizations, so the name is
468
                    just 'cybertaxonomy', this MUST NOT BE CHANGED!!!!  -->
469
               <name>cybertaxonomy/${project.artifactId}:${project.version}</name>
470
               <build>
471
                 <!-- use a Dockerfile in the directory src/main/docker/production -->
472
                 <dockerFileDir>production</dockerFileDir>
473
                 <!-- fabric8-maven-plugin filters given Dockerfile with Maven properties -->
474
                 <!-- For example, the default <filter>${*}</filter> parse Maven properties 
475
                     in the format that we know. If you specify a single character for 
476
                     <filter> then this delimiter is taken for both, the start and the end. 
477
                     E.g a <filter>@</filter> triggers on parameters in the format @…​@, -->
478
                 <filter>@</filter>
479
                 <assembly>
480
                    <descriptorRef>artifact</descriptorRef>
481
                    <!--
482 35066a11 Andreas Kohlbecker
                         1. The maven plugin copies the jar to the artifacts assembly location at:
483 ed5ad657 Andreas Kohlbecker
                            ./target/docker/eu.etaxonomy/cdm-server/${project.version}/build/maven/cdm-server-${project.version}.jar
484
                         2. a tar is being created at target/docker/eu.etaxonomy/cdm-server/${project.version}/tmp/docker-build.tar 
485
                            which contains all files located in /target/docker/production and the artifacts. 
486
                            Artifacts are put into the folder maven/ inside the tar archive
487
                         3. The tar archive is passed to the docker daemon and is used as working directory for the build 
488
                     -->
489
                  </assembly>
490
               </build>
491
               
492 4e1dd75e Andreas Kohlbecker
               <!-- TODO the run configuration if needed, see src/main/docker/production/README for examples -->
493
               <!-- 
494 ed5ad657 Andreas Kohlbecker
               <run>
495
                 <ports>8080:8080</ports>
496
               </run>
497 4e1dd75e Andreas Kohlbecker
                -->
498 ed5ad657 Andreas Kohlbecker
             </image>
499
           </images>
500
501
        </configuration>
502
503
        <!-- Connect start/stop to pre- and
504
             post-integration-test phase, respectively if you want to start
505
             your docker containers during integration tests -->
506
        <executions>
507
        </executions>
508
      </plugin>
509 66465ecb Andreas Kohlbecker
      <!-- ====== DEPLOY ====== -->
510 e3647a3c Andreas Kohlbecker
      <plugin>
511
        <groupId>org.apache.maven.plugins</groupId> 
512
        <artifactId>maven-deploy-plugin</artifactId>
513 179f09a7 Andreas Kohlbecker
        <version>2.8.2</version>
514 e3647a3c Andreas Kohlbecker
      </plugin> 
515 66465ecb Andreas Kohlbecker
      <plugin>
516 096415c0 Andreas Kohlbecker
        <groupId>external.atlassian.jgitflow</groupId>
517
        <artifactId>jgitflow-maven-plugin</artifactId>
518 f3a1e350 Cherian Mathew
        <version>1.0-m6</version>
519 66465ecb Andreas Kohlbecker
        <configuration>
520 f3a1e350 Cherian Mathew
          <pushHotfixes>true</pushHotfixes>
521
          <pushReleases>true</pushReleases> 
522 096415c0 Andreas Kohlbecker
          <enableSshAgent>true</enableSshAgent>
523
          <allowSnapshots>true</allowSnapshots>
524
          <allowUntracked>true</allowUntracked>
525 66465ecb Andreas Kohlbecker
        </configuration>
526 f3a1e350 Cherian Mathew
        <dependencies>
527
          <!-- 
528
                upgrading dependency jsch.agent.version of jgit-flow plugin to 0.1.53 
529 15a0854d Andreas Müller
                in order to have ssl key exchange algorithms compatible with openssh 6.7 
530 f3a1e350 Cherian Mathew
             -->
531
          <dependency>
532
            <groupId>com.jcraft</groupId>
533
            <artifactId>jsch</artifactId>
534 39cfd7b0 Andreas Müller
            <version>0.1.55</version>
535 f3a1e350 Cherian Mathew
          </dependency>
536
        </dependencies>
537 66465ecb Andreas Kohlbecker
      </plugin>
538
      <plugin>
539
        <groupId>org.codehaus.mojo</groupId>
540
        <artifactId>wagon-maven-plugin</artifactId>
541 05950191 Andreas Müller
        <version>2.0.2</version>
542 3f91e2a5 Cherian Mathew
        <!-- Problems with the wagon-maven-plugin have been encounterd on 
543
          Windows, it should work properly on linux though. -->
544 66465ecb Andreas Kohlbecker
        <executions>
545
          <execution>
546
            <phase>deploy</phase>
547
            <goals>
548
              <goal>upload</goal>
549
            </goals>
550
          </execution>
551
        </executions>
552
        <configuration>
553
          <fromDir>target</fromDir>
554
          <includes>*${project.version}*.deb,*${project.version}*.jar,*${project.version}*.exe</includes>
555
          <url>scpexe://wp5.e-taxonomy.eu/var/www/download/cdmserver/${project.version}</url>
556
          <serverId>wp5.e-taxonomy.eu</serverId>
557
        </configuration>
558
      </plugin>
559
    </plugins>
560 c3cb2034 Cherian Mathew
    <!-- EXTENSIONS -->
561 66465ecb Andreas Kohlbecker
    <extensions>
562
      <extension>
563
        <groupId>org.apache.maven.wagon</groupId>
564
        <artifactId>wagon-scm</artifactId>
565 1d39e7f5 Andreas Müller
        <version>3.5.1</version>
566 66465ecb Andreas Kohlbecker
      </extension>
567
      <extension>
568
        <groupId>org.apache.maven.wagon</groupId>
569
        <artifactId>wagon-ssh</artifactId>
570 1d39e7f5 Andreas Müller
        <version>3.5.1</version>
571 5bb72419 Cherian Mathew
      </extension>
572
      <extension>
573
        <groupId>org.apache.maven.wagon</groupId>
574
        <artifactId>wagon-ssh-external</artifactId>
575 41380b9d Andreas Müller
        <version>3.5.1</version>
576 66465ecb Andreas Kohlbecker
      </extension>
577
      <extension>
578
        <groupId>org.apache.maven.scm</groupId>
579
        <artifactId>maven-scm-manager-plexus</artifactId>
580 da4cba84 Andreas Müller
        <version>1.12.2</version>
581 66465ecb Andreas Kohlbecker
      </extension>
582
      <extension>
583
        <groupId>org.apache.maven.scm</groupId>
584
        <artifactId>maven-scm-provider-svnexe</artifactId>
585 da4cba84 Andreas Müller
        <version>1.12.2</version>
586 66465ecb Andreas Kohlbecker
      </extension>
587
      <!-- WebDAV plugin to upload snapshots -->
588
      <extension>
589
        <groupId>org.apache.maven.wagon</groupId>
590 99771630 Andreas Müller
        <artifactId>wagon-webdav-jackrabbit</artifactId>
591 1d39e7f5 Andreas Müller
        <version>3.5.1</version>
592 66465ecb Andreas Kohlbecker
      </extension>
593 c3cb2034 Cherian Mathew
    </extensions>
594 66465ecb Andreas Kohlbecker
  </build>
595 5bd25aba Andreas Kohlbecker
596 66465ecb Andreas Kohlbecker
  <reporting>
597
    <plugins>
598
      <plugin>
599
        <!-- you will want to start by publishing your classes' Javadocs -->
600
        <groupId>org.apache.maven.plugins</groupId>
601
        <artifactId>maven-javadoc-plugin</artifactId>
602 d2fbb2f5 Andreas Kohlbecker
        <configuration>    
603
          <additionalparam>${javadoc.opts}</additionalparam>
604 66465ecb Andreas Kohlbecker
        </configuration>
605
      </plugin>
606
      <plugin>
607 3f91e2a5 Cherian Mathew
        <!-- this will generate an indexed and cross-referenced HTML version 
608 66465ecb Andreas Kohlbecker
          of your source code -->
609
        <groupId>org.apache.maven.plugins</groupId>
610
        <artifactId>maven-jxr-plugin</artifactId>
611 179f09a7 Andreas Kohlbecker
        <version>2.5</version>
612 66465ecb Andreas Kohlbecker
      </plugin>
613
      <plugin>
614 3f91e2a5 Cherian Mathew
        <!-- if you use @todo tags to remind you of things to be done (which 
615
          is a good coding practice), the taglist report will generate a list of all 
616 66465ecb Andreas Kohlbecker
          the items marked @todo or TODO -->
617
        <groupId>org.codehaus.mojo</groupId>
618
        <artifactId>taglist-maven-plugin</artifactId>
619 1f3a4888 Andreas Kohlbecker
        <version>2.4</version>
620 66465ecb Andreas Kohlbecker
      </plugin>
621
      <plugin>
622 3f91e2a5 Cherian Mathew
        <!-- Test coverage can be a useful indication of the quality of your 
623
          unit tests. It basically tells you how much of your code is actually run 
624
          by your unit tests, which, in turn, can give you a good idea of the tests' 
625 66465ecb Andreas Kohlbecker
          quality -->
626
        <groupId>org.codehaus.mojo</groupId>
627
        <artifactId>cobertura-maven-plugin</artifactId>
628 179f09a7 Andreas Kohlbecker
        <version>2.7</version>
629 66465ecb Andreas Kohlbecker
      </plugin>
630 5bd25aba Andreas Kohlbecker
631
632 66465ecb Andreas Kohlbecker
    </plugins>
633
  </reporting>
634
  <!-- DISTRIBUTION MANAGEMENT -->
635
  <distributionManagement>
636
    <site>
637
      <id>wp5.e-taxonomy.eu</id>
638
      <url>
639 84c4fcee Andreas Kohlbecker
        scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/cdm-server
640 e0541bd1 Andreas Kohlbecker
      </url>
641 66465ecb Andreas Kohlbecker
    </site>
642
    <repository>
643
      <uniqueVersion>false</uniqueVersion>
644
      <id>wp5.e-taxonomy.eu</id>
645
      <name>Edit Maven Repository</name>
646
      <url>
647 0393c914 Andreas Kohlbecker
        scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/mavenrepo
648 e0541bd1 Andreas Kohlbecker
      </url>
649 66465ecb Andreas Kohlbecker
    </repository>
650
  </distributionManagement>
651 5bd25aba Andreas Kohlbecker
652 66465ecb Andreas Kohlbecker
  <dependencies>
653 3f91e2a5 Cherian Mathew
    <!-- maven 3 no longer supports uniqueVersions for SNAPSHOT artifacts. 
654 d220174c Cherian Mathew
      The cdm-server Bootlader however relies on a specific name of the cdm-webapp 
655 3f91e2a5 Cherian Mathew
      war file. In order to achieve this with maven 3 the below dependency is now 
656 988b213a Andreas Müller
      handled more explicitely by utilizing the dependency:copy-dependencies goal 
657 aa2c0090 Andreas Kohlbecker
      in the build/plugins section -->
658
      <!-- <dependency> -->
659
      <!--   <groupId>eu.etaxonomy</groupId>  -->
660
      <!--   <artifactId>cdm-webapp</artifactId> -->
661
      <!--   <version>${project.version}</version>  -->
662
      <!--   <type>war</type> -->
663
      <!-- </dependency> -->
664
      
665
    <!-- JETTY -->
666 66465ecb Andreas Kohlbecker
    <dependency>
667
      <groupId>org.eclipse.jetty</groupId>
668
      <artifactId>jetty-webapp</artifactId>
669
      <version>${jetty-version}</version>
670
    </dependency>
671 72ddab96 Andreas Kohlbecker
    <dependency>
672
        <groupId>org.eclipse.jetty</groupId>
673
        <artifactId>jetty-webapp-logging</artifactId>
674
        <version>9.4.20.v20190813</version><!-- versioning independent of jetty core -->
675
        <type>pom</type><!-- we only need the dependencies like jul-to-slf4j managed in this pom! -->
676
    </dependency>
677 66465ecb Andreas Kohlbecker
    <dependency>
678
      <groupId>org.eclipse.jetty</groupId>
679
      <artifactId>jetty-plus</artifactId>
680
      <version>${jetty-version}</version>
681
    </dependency>
682
    <dependency>
683
      <groupId>org.eclipse.jetty</groupId>
684
      <artifactId>jetty-jmx</artifactId>
685
      <version>${jetty-version}</version>
686
    </dependency>
687
    <dependency>
688
      <groupId>org.eclipse.jetty</groupId>
689
      <artifactId>jetty-security</artifactId>
690
      <version>${jetty-version}</version>
691
    </dependency>
692 3f91e2a5 Cherian Mathew
    <dependency>
693
      <groupId>org.eclipse.jetty</groupId>
694
      <artifactId>jetty-annotations</artifactId>
695
      <version>${jetty-version}</version>
696
    </dependency>
697 66465ecb Andreas Kohlbecker
    <dependency>
698 0cc3815c Cherian Mathew
      <groupId>org.eclipse.jetty</groupId>
699
      <artifactId>apache-jsp</artifactId>
700
      <version>${jetty-version}</version>
701
      <type>jar</type>
702
    </dependency>
703
    <dependency>
704
      <groupId>org.eclipse.jetty</groupId>
705
      <artifactId>apache-jstl</artifactId>
706
      <version>${jetty-version}</version>
707
      <type>pom</type>
708 66465ecb Andreas Kohlbecker
    </dependency>
709 c3cb2034 Cherian Mathew
    <dependency>
710
      <groupId>javax.el</groupId>
711
      <artifactId>el-api</artifactId>
712
      <version>2.2</version>
713
    </dependency>
714 a4bf929e Cherian Mathew
    <dependency>
715
      <groupId>el-impl</groupId>
716
      <artifactId>el-impl</artifactId>
717
      <version>1.0</version>
718
    </dependency>
719 66465ecb Andreas Kohlbecker
    <dependency>
720
      <groupId>javax.transaction</groupId>
721
      <artifactId>jta</artifactId>
722
      <version>1.1</version>
723
    </dependency>
724
    <!-- JSON -->
725
    <dependency>
726
      <groupId>org.codehaus.jackson</groupId>
727
      <artifactId>jackson-mapper-asl</artifactId>
728 1e34764b Andreas Müller
      <version>1.9.13</version>
729 66465ecb Andreas Kohlbecker
    </dependency>
730
    <!-- windows service -->
731
    <dependency>
732
      <groupId>tanukisoft</groupId>
733
      <artifactId>wrapper</artifactId>
734
      <version>3.2.3</version>
735
    </dependency>
736 5bd25aba Andreas Kohlbecker
737 66465ecb Andreas Kohlbecker
    <!-- Logging -->
738
    <dependency>
739
      <groupId>org.slf4j</groupId>
740
      <artifactId>slf4j-api</artifactId>
741 1e34764b Andreas Müller
      <version>1.7.32</version>
742 66465ecb Andreas Kohlbecker
    </dependency>
743
    <dependency>
744
      <groupId>org.slf4j</groupId>
745
      <artifactId>slf4j-log4j12</artifactId>
746 1e34764b Andreas Müller
      <version>1.7.32</version>
747 66465ecb Andreas Kohlbecker
    </dependency>
748
    <dependency>
749
      <groupId>commons-cli</groupId>
750
      <artifactId>commons-cli</artifactId>
751 4d9687ed Andreas Müller
      <version>1.5.0</version>
752 66465ecb Andreas Kohlbecker
    </dependency>
753
    <dependency>
754
      <groupId>commons-io</groupId>
755
      <artifactId>commons-io</artifactId>
756 1e34764b Andreas Müller
      <version>2.11.0</version>
757 66465ecb Andreas Kohlbecker
    </dependency>
758 3f91e2a5 Cherian Mathew
    <dependency>
759
      <groupId>commons-collections</groupId>
760
      <artifactId>commons-collections</artifactId>
761 1e34764b Andreas Müller
      <version>3.2.2</version>
762 3f91e2a5 Cherian Mathew
    </dependency>
763 66465ecb Andreas Kohlbecker
    <dependency>
764
      <groupId>net.sf.jopt-simple</groupId>
765
      <artifactId>jopt-simple</artifactId>
766 3d32e7f8 Andreas Kohlbecker
      <version>4.9</version>
767 66465ecb Andreas Kohlbecker
    </dependency>
768 9824b51b Andreas Müller
    <!-- Database dependencies -->
769 66465ecb Andreas Kohlbecker
    <dependency>
770 9824b51b Andreas Müller
      <groupId>eu.etaxonomy</groupId>
771
      <artifactId>cdmlib-db</artifactId>
772
      <version>${project.version}</version>
773 66465ecb Andreas Kohlbecker
    </dependency>
774
  </dependencies>
775 5bd25aba Andreas Kohlbecker
776
</project>