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">
4 <modelVersion>4.0.0</modelVersion>
5 <groupId>eu.etaxonomy
</groupId>
6 <artifactId>cdm-server
</artifactId>
7 <version>4.2.0-SNAPSHOT
</version>
8 <packaging>jar
</packaging>
9 <name>CDM Community Standalone Server
</name>
12 <jetty-version>9.2.9.v20150224
</jetty-version>
16 <!-- see section Provider Configuration in http://maven.apache.org/scm/subversion.html
17 for instructions on how to externalize credentials in $user.home/.scm/svn-settings.xml -->
18 <connection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdm-server
</connection>
19 <developerConnection>scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdm-server
</developerConnection>
20 <url>http://dev.e-taxonomy.eu/trac/browser/trunk/cdm-server
</url>
29 <name>EDIT Platform Developers
</name>
31 https://lists.fu-berlin.de/listinfo/editplatformdevelopers#subscribe
34 https://lists.fu-berlin.de/listinfo/editplatformdevelopers#options
38 <name>EDIT User
</name>
40 https://lists.fu-berlin.de/listinfo/edituser#subscribe
43 https://lists.fu-berlin.de/listinfo/edituser#options
49 <name>Mozilla Public License Version
1.1</name>
50 <url>http://www.mozilla.org/MPL/MPL-
1.1.html
</url>
51 <distribution>repo
</distribution>
56 <!-- your SVN account id please! -->
61 <email>a.kohlbecker [at] bgbm.org
</email>
63 Botanical Garden Botanical Museum Berlin
65 <organizationUrl>http://www.bgbm.org/BioDivInf/
</organizationUrl>
66 <timezone>+
1</timezone>
68 <role>Developer
</role>
74 <!-- contributors> <contributor> <name>Test-Contributor</name> </contributor>
78 <url>http://dev.e-taxonomy.eu/trac/
</url>
81 <system>Jenkins
</system>
82 <url>http://
160.45.63.201/jenkins
</url>
84 <!-- **** REPOSITORIES **** -->
87 <id>local-repository
</id>
90 <name>localrepo
</name>
95 <id>EditLocalRepository
</id>
96 <url>file://${localrepo}/eu/etaxonomy/
</url>
98 <enabled>false
</enabled>
99 <updatePolicy>always
</updatePolicy>
102 <enabled>true
</enabled>
103 <updatePolicy>always
</updatePolicy>
110 <!-- sun repository -->
112 <id>java.net-Public
</id>
113 <name>Maven Java Net Snapshots and Releases
</name>
114 <url>https://maven.java.net/content/groups/public/
</url>
116 <!-- the localhost Maven Repository -->
118 <id>EditLocalRepository
</id>
119 <!-- disable the local repo to let maven always retrieve the latest
120 cdm-webapp.war TODO: use ${localrepo} for ${user.home}/.m2/repository
122 <url>file://${user.home}/.m2/repository/eu/etaxonomy/
</url>
124 <enabled>false
</enabled>
125 <updatePolicy>always
</updatePolicy>
128 <enabled>false
</enabled>
129 <updatePolicy>always
</updatePolicy>
132 <!-- the EDIT Maven Repository -->
134 <id>EditRepository
</id>
135 <url>http://wp5.e-taxonomy.eu/mavenrepo/
</url>
137 <enabled>true
</enabled>
138 <updatePolicy>always
</updatePolicy>
141 <enabled>true
</enabled>
142 <updatePolicy>always
</updatePolicy>
145 <!-- apache incubating repository -->
147 <id>ApacheIncubating
</id>
148 <url>http://people.apache.org/repo/m2-incubating-repository/
</url>
152 <!-- **** PLUGINS **** -->
155 <!-- ${basedir}/src/main/resources -->
157 <!-- replace the project-version placeholder in the version.properties
158 file. This property can then be used to retrieve the version number in the
160 <targetPath>${project.build.directory}/classes
</targetPath>
161 <filtering>true
</filtering>
162 <directory>${basedir}/src/main/resources
</directory>
164 <include>version.properties
</include>
168 <!-- all other files in classes -->
169 <targetPath>${project.build.directory}/classes
</targetPath>
170 <directory>${basedir}/src/main/resources
</directory>
172 <exclude>version.properties
</exclude>
175 <!-- ${basedir}/src/main/installer/win32 -->
177 <targetPath>${project.build.directory}/installer
</targetPath>
178 <filtering>true
</filtering>
179 <directory>${basedir}/src/main/installer
</directory>
181 <include>win32/program-folder/etc/CDMServer.conf
</include>
182 <include>win32/setup.nsi
</include>
186 <targetPath>${project.build.directory}/installer
</targetPath>
187 <directory>${basedir}/src/main/installer
</directory>
189 <exclude>win32/program-folder/etc/CDMServer.conf
</exclude>
190 <exclude>win32/setup.nsi
</exclude>
195 <!-- ====== IDE ====== -->
197 <groupId>org.apache.maven.plugins
</groupId>
198 <artifactId>maven-eclipse-plugin
</artifactId>
199 <version>2.9</version>
201 <downloadSources>true
</downloadSources>
202 <downloadJavadocs>true
</downloadJavadocs>
207 <!-- only needed for testing the svn credentials credentials are
208 usually stored by svn automatically unless not configured differently in
209 {user.home}\.subversion\config So in order to use a specific svn account
210 with maven firts to a commit manually by svn ci -m "commit message" and answer
211 the question wether to store the credential with yes. There is no specific
212 maven configuration required for svn to work with maven! -->
213 <groupId>org.apache.maven.plugins
</groupId>
214 <artifactId>maven-scm-plugin
</artifactId>
215 <version>1.9.2</version>
217 <connectionType>developerConnection
</connectionType>
220 <!-- ====== CREATE ====== -->
222 <groupId>org.apache.maven.plugins
</groupId>
223 <artifactId>maven-resources-plugin
</artifactId>
224 <version>2.7</version>
227 <groupId>org.apache.maven.plugins
</groupId>
228 <artifactId>maven-compiler-plugin
</artifactId>
229 <version>3.2</version>
236 <groupId>org.apache.maven.plugins
</groupId>
237 <artifactId>maven-surefire-plugin
</artifactId>
238 <version>2.18.1</version>
240 <argLine>-Xmx512M
</argLine>
242 <include>**/*Test.java
</include>
246 <name>hibernate.connection.driver_class
</name>
247 <value>${hibernate.connection.driver_class}
</value>
250 <name>hibernate.connection.url
</name>
251 <value>${hibernate.connection.url}
</value>
254 <name>hibernate.connection.username
</name>
255 <value>${hibernate.connection.username}
</value>
258 <name>hibernate.connection.password
</name>
259 <value>${hibernate.connection.password}
</value>
264 <!-- ====== CREATE ====== -->
266 <groupId>org.codehaus.mojo
</groupId>
267 <artifactId>buildnumber-maven-plugin
</artifactId>
268 <version>1.3</version>
271 <!--<phase>deploy</phase> -->
278 <doCheck>false
</doCheck>
279 <!-- Only create the build number if there are no local modifications -->
280 <doUpdate>false
</doUpdate>
281 <!-- automatically update the local svn copy -->
285 <groupId>org.apache.maven.plugins
</groupId>
286 <artifactId>maven-site-plugin
</artifactId>
287 <version>3.4</version>
289 <locales>en
</locales>
290 <outputEncoding>UTF-
8</outputEncoding>
294 <!-- ====== VERIFY ====== -->
296 <groupId>org.apache.maven.plugins
</groupId>
297 <artifactId>maven-source-plugin
</artifactId>
298 <version>2.4</version>
301 <id>attach-sources
</id>
302 <phase>verify
</phase>
310 <groupId>org.apache.maven.plugins
</groupId>
311 <artifactId>maven-javadoc-plugin
</artifactId>
312 <version>2.10.2</version>
314 <aggregate>true
</aggregate>
315 <stylesheet>maven
</stylesheet>
319 <!-- ====== PROCESS-SOURCES ====== -->
321 <groupId>org.apache.maven.plugins
</groupId>
322 <artifactId>maven-dependency-plugin
</artifactId>
323 <version>2.10</version>
331 <silent>flase
</silent>
332 <stripVersion>true
</stripVersion>
333 <overWriteSnapshots>true
</overWriteSnapshots>
334 <overWriteIfNewer>true
</overWriteIfNewer>
335 <overWriteReleases>true
</overWriteReleases>
338 <!-- copy the cdm-webapp-${project.version}.war
340 <groupId>eu.etaxonomy
</groupId>
341 <artifactId>cdm-webapp
</artifactId>
342 <version>${project.version}
</version>
344 <!-- <classifier> [classifier - optional] </classifier> -->
345 <overWrite>true
</overWrite>
346 <destFileName>cdm-webapp-${project.version}.war
</destFileName>
348 ${project.build.directory}
357 <!-- ====== PACKAGE ====== -->
358 <!-- package the default webapp, // (and also add the cdm-webapp.war)
359 test with: mvn war:war -->
361 <groupId>org.apache.maven.plugins
</groupId>
362 <artifactId>maven-war-plugin
</artifactId>
363 <version>2.6</version>
365 <warName>default-webapp
</warName>
369 <!-- <overlays> <overlay> <groupId>eu.etaxonomy</groupId> <artifactId>cdm-webapp</artifactId>
370 <!- - version is set in dependency - -> <skip>true</skip> <!- - Do Not overlay
371 - -> </overlay> </overlays> -->
375 <phase>package
</phase>
382 <!-- ====== INSTALL ====== -->
384 <!-- Assemble the runnable server jar test with: mvn assembly:single -->
385 <groupId>org.apache.maven.plugins
</groupId>
386 <artifactId>maven-assembly-plugin
</artifactId>
387 <version>2.5.3</version>
389 <appendAssemblyId>false
</appendAssemblyId>
391 <descriptor>src/main/assembly/assembly.xml
</descriptor>
395 <mainClass>eu.etaxonomy.cdm.server.Bootloader
</mainClass>
396 <addDefaultImplementationEntries>true
</addDefaultImplementationEntries>
397 <addDefaultSpecificationEntries>true
</addDefaultSpecificationEntries>
403 <id>make-assembly
</id>
404 <phase>install
</phase>
406 <goal>attached
</goal>
412 <!-- Build a Debian package -->
413 <groupId>org.apache.maven.plugins
</groupId>
414 <artifactId>maven-antrun-plugin
</artifactId>
415 <version>1.8</version>
418 <phase>install
</phase>
421 <property name=
"project.fullversionstring" value=
"${project.version}" />
422 <property name=
"project.version" value=
"${project.version}" />
423 <ant antfile=
"${project.basedir}/src/main/installer/linux/build-deb.xml" dir=
"${project.basedir}" />
432 <!-- Build windows installer -->
434 <groupId>org.codehaus.mojo
</groupId>
435 <artifactId>exec-maven-plugin
</artifactId>
436 <version>1.3.2</version>
439 <phase>install
</phase>
446 <executable>makensis
</executable>
448 <workingDirectory>/tmp
</workingDirectory>
450 <!-- <argument>-V3</argument> -->
451 <argument>${project.basedir}/target/installer/win32/setup.nsi
</argument>
455 <!-- ====== DEPLOY ====== -->
457 <groupId>org.apache.maven.plugins
</groupId>
458 <artifactId>maven-deploy-plugin
</artifactId>
459 <version>2.8.2</version>
462 <groupId>external.atlassian.jgitflow
</groupId>
463 <artifactId>jgitflow-maven-plugin
</artifactId>
464 <version>1.0-m6
</version>
466 <pushHotfixes>true
</pushHotfixes>
467 <pushReleases>true
</pushReleases>
468 <enableSshAgent>true
</enableSshAgent>
469 <allowSnapshots>true
</allowSnapshots>
470 <allowUntracked>true
</allowUntracked>
474 upgrading dependency jsch.agent.version of jgit-flow plugin to 0.1.53
475 in order to have ssl key exchange algorithms compatible with openssh 6.7
478 <groupId>com.jcraft
</groupId>
479 <artifactId>jsch
</artifactId>
480 <version>0.1.53</version>
485 <groupId>org.codehaus.mojo
</groupId>
486 <artifactId>wagon-maven-plugin
</artifactId>
487 <version>1.0</version>
488 <!-- Problems with the wagon-maven-plugin have been encounterd on
489 Windows, it should work properly on linux though. -->
492 <phase>deploy
</phase>
499 <fromDir>target
</fromDir>
500 <includes>*${project.version}*.deb,*${project.version}*.jar,*${project.version}*.exe
</includes>
501 <url>scpexe://wp5.e-taxonomy.eu/var/www/download/cdmserver/${project.version}
</url>
502 <serverId>wp5.e-taxonomy.eu
</serverId>
509 <groupId>org.apache.maven.wagon
</groupId>
510 <artifactId>wagon-scm
</artifactId>
511 <version>1.0-beta-
6</version>
514 <groupId>org.apache.maven.wagon
</groupId>
515 <artifactId>wagon-ssh
</artifactId>
516 <version>1.0-beta-
6</version>
519 <groupId>org.apache.maven.wagon
</groupId>
520 <artifactId>wagon-ssh-external
</artifactId>
521 <version>1.0-beta-
6</version>
524 <groupId>org.apache.maven.scm
</groupId>
525 <artifactId>maven-scm-manager-plexus
</artifactId>
526 <version>1.0</version>
529 <groupId>org.apache.maven.scm
</groupId>
530 <artifactId>maven-scm-provider-svnexe
</artifactId>
531 <version>1.0</version>
533 <!-- WebDAV plugin to upload snapshots -->
535 <groupId>org.apache.maven.wagon
</groupId>
536 <artifactId>wagon-webdav
</artifactId>
537 <version>1.0-beta-
2</version>
545 <!-- you will want to start by publishing your classes' Javadocs -->
546 <groupId>org.apache.maven.plugins
</groupId>
547 <artifactId>maven-javadoc-plugin
</artifactId>
550 <link>http://java.sun.com/j2se/
1.6.0/docs/api/
</link>
551 <!-- more libraries? -->
556 <!-- this will generate an indexed and cross-referenced HTML version
557 of your source code -->
558 <groupId>org.apache.maven.plugins
</groupId>
559 <artifactId>maven-jxr-plugin
</artifactId>
560 <version>2.5</version>
563 <!-- if you use @todo tags to remind you of things to be done (which
564 is a good coding practice), the taglist report will generate a list of all
565 the items marked @todo or TODO -->
566 <groupId>org.codehaus.mojo
</groupId>
567 <artifactId>taglist-maven-plugin
</artifactId>
568 <version>2.4</version>
571 <!-- Test coverage can be a useful indication of the quality of your
572 unit tests. It basically tells you how much of your code is actually run
573 by your unit tests, which, in turn, can give you a good idea of the tests'
575 <groupId>org.codehaus.mojo
</groupId>
576 <artifactId>cobertura-maven-plugin
</artifactId>
577 <version>2.7</version>
583 <!-- DISTRIBUTION MANAGEMENT -->
584 <distributionManagement>
586 <id>wp5.e-taxonomy.eu
</id>
588 scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/cdm-server
592 <uniqueVersion>false
</uniqueVersion>
593 <id>wp5.e-taxonomy.eu
</id>
594 <name>Edit Maven Repository
</name>
596 scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/mavenrepo
599 </distributionManagement>
602 <!-- maven 3 no longer supports uniqueVersions for SNAPSHOT artifacts.
603 The cdm-server Bootlader however relies on a specific name of the cdm-webapp
604 war file. In order to achieve this with maven 3 the below dependency is now
605 handled more explicitely by utilizing the dependency:copy-dependencies gloal
606 in the build/plugins section -->
607 <!-- <dependency> -->
608 <!-- <groupId>eu.etaxonomy</groupId> -->
609 <!-- <artifactId>cdm-webapp</artifactId> -->
610 <!-- <version>${project.version}</version> -->
611 <!-- <type>war</type> -->
612 <!-- </dependency> -->
616 <groupId>org.eclipse.jetty
</groupId>
617 <artifactId>jetty-webapp
</artifactId>
618 <version>${jetty-version}
</version>
621 <groupId>org.eclipse.jetty
</groupId>
622 <artifactId>jetty-plus
</artifactId>
623 <version>${jetty-version}
</version>
626 <groupId>org.eclipse.jetty
</groupId>
627 <artifactId>jetty-jmx
</artifactId>
628 <version>${jetty-version}
</version>
631 <groupId>org.eclipse.jetty
</groupId>
632 <artifactId>jetty-security
</artifactId>
633 <version>${jetty-version}
</version>
636 <groupId>org.eclipse.jetty
</groupId>
637 <artifactId>jetty-annotations
</artifactId>
638 <version>${jetty-version}
</version>
641 <groupId>org.eclipse.jetty
</groupId>
642 <artifactId>apache-jsp
</artifactId>
643 <version>${jetty-version}
</version>
647 <groupId>org.eclipse.jetty
</groupId>
648 <artifactId>apache-jstl
</artifactId>
649 <version>${jetty-version}
</version>
653 <groupId>javax.el
</groupId>
654 <artifactId>el-api
</artifactId>
655 <version>2.2</version>
658 <groupId>el-impl
</groupId>
659 <artifactId>el-impl
</artifactId>
660 <version>1.0</version>
663 <groupId>javax.transaction
</groupId>
664 <artifactId>jta
</artifactId>
665 <version>1.1</version>
669 <groupId>org.codehaus.jackson
</groupId>
670 <artifactId>jackson-mapper-asl
</artifactId>
671 <version>1.9.11</version>
673 <!-- windows service -->
675 <groupId>tanukisoft
</groupId>
676 <artifactId>wrapper
</artifactId>
677 <version>3.2.3</version>
682 <groupId>org.slf4j
</groupId>
683 <artifactId>slf4j-api
</artifactId>
684 <version>1.7.13</version>
687 <groupId>org.slf4j
</groupId>
688 <artifactId>slf4j-log4j12
</artifactId>
689 <version>1.7.13</version>
692 <groupId>commons-cli
</groupId>
693 <artifactId>commons-cli
</artifactId>
694 <version>1.3.1</version>
697 <groupId>commons-io
</groupId>
698 <artifactId>commons-io
</artifactId>
699 <version>2.4</version>
702 <groupId>commons-collections
</groupId>
703 <artifactId>commons-collections
</artifactId>
704 <version>3.2.1</version>
707 <groupId>net.sf.jopt-simple
</groupId>
708 <artifactId>jopt-simple
</artifactId>
709 <version>4.9</version>
712 <groupId>com.mchange
</groupId>
713 <artifactId>c3p0
</artifactId>
716 this must exactly match the version as set in
717 cdmlib-parent pom.xml otherwise the connection
718 through jndi will not work
720 <version>0.9.5.2</version>
722 <!-- DATABASE DRIVER -->
724 <groupId>mysql
</groupId>
725 <artifactId>mysql-connector-java
</artifactId>
726 <version>5.1.38</version>