integrating trunk
[cdmlib.git] / cdm-server / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3
4 <!--
5 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
6 http://maven.apache.org/maven-v4_0_0.xsd"
7 -->
8 <parent>
9 <groupId>eu.etaxonomy</groupId>
10 <artifactId>cdmlib-parent</artifactId>
11 <version>3.0</version>
12 <relativePath>../cdmlib-parent/pom.xml</relativePath>
13 </parent>
14
15 <modelVersion>4.0.0</modelVersion>
16 <artifactId>cdm-server</artifactId>
17 <version>3.0</version>
18 <packaging>jar</packaging>
19 <name>CDM Community Standalone Server</name>
20
21 <properties>
22 <jetty-version>7.0.1.v20091125</jetty-version>
23 </properties>
24
25 <dependencies>
26 <dependency>
27 <groupId>eu.etaxonomy</groupId>
28 <artifactId>cdmlib-remote-webapp</artifactId>
29 <version>${project.version}</version>
30 <type>war</type>
31 </dependency>
32
33 <!-- JETTY 7 -->
34 <dependency>
35 <groupId>org.eclipse.jetty</groupId>
36 <artifactId>jetty-webapp</artifactId>
37 <version>${jetty-version}</version>
38 </dependency>
39 <dependency>
40 <groupId>org.eclipse.jetty</groupId>
41 <artifactId>jetty-plus</artifactId>
42 <version>${jetty-version}</version>
43 </dependency>
44 <dependency>
45 <groupId>org.eclipse.jetty</groupId>
46 <artifactId>jetty-webapp</artifactId>
47 <version>${jetty-version}</version>
48 </dependency>
49 <dependency>
50 <groupId>org.eclipse.jetty</groupId>
51 <artifactId>jetty-jmx</artifactId>
52 <version>${jetty-version}</version>
53 </dependency>
54 <dependency>
55 <groupId>org.mortbay.jetty</groupId>
56 <artifactId>jsp-2.1-glassfish</artifactId>
57 <version>9.1.1.B60.25.p2</version>
58 </dependency>
59 <dependency>
60 <groupId>javax.transaction</groupId>
61 <artifactId>jta</artifactId>
62 <version>1.1</version>
63 </dependency>
64
65 <!-- Logging -->
66 <dependency>
67 <groupId>org.slf4j</groupId>
68 <artifactId>slf4j-api</artifactId>
69 <version>1.6.1</version>
70 </dependency>
71 <dependency>
72 <groupId>org.slf4j</groupId>
73 <artifactId>slf4j-log4j12</artifactId>
74 <version>1.6.1</version>
75 </dependency>
76
77 <dependency>
78 <groupId>commons-cli</groupId>
79 <artifactId>commons-cli</artifactId>
80 <version>1.2</version>
81 </dependency>
82 <dependency>
83 <groupId>commons-io</groupId>
84 <artifactId>commons-io</artifactId>
85 </dependency>
86 <dependency>
87 <groupId>net.sf.jopt-simple</groupId>
88 <artifactId>jopt-simple</artifactId>
89 <version>3.2</version>
90 </dependency>
91 <dependency>
92 <groupId>c3p0</groupId>
93 <artifactId>c3p0</artifactId>
94 <version>0.9.1</version>
95 </dependency>
96 <!-- DATABASE DRIVER -->
97 <dependency>
98 <groupId>mysql</groupId>
99 <artifactId>mysql-connector-java</artifactId>
100 <version>5.0.5</version>
101 </dependency>
102 </dependencies>
103
104
105 <build>
106 <plugins>
107 <!-- INSTALL -->
108 <plugin>
109 <artifactId>maven-assembly-plugin</artifactId>
110 <configuration>
111 <appendAssemblyId>false</appendAssemblyId>
112 <descriptors>
113 <descriptor>src/main/assembly/assembly.xml</descriptor>
114 </descriptors>
115 <archive>
116 <manifest>
117 <mainClass>eu.etaxonomy.cdm.server.Bootloader</mainClass>
118 </manifest>
119 </archive>
120 </configuration>
121 <executions>
122 <execution>
123 <id>make-assembly</id>
124 <phase>install</phase>
125 <goals>
126 <goal>attached</goal>
127 </goals>
128 </execution>
129 </executions>
130 </plugin>
131 <!-- package the default webapp -->
132 <plugin>
133 <groupId>org.apache.maven.plugins</groupId>
134 <artifactId>maven-war-plugin</artifactId>
135 <version>2.1-beta-1</version>
136 <configuration>
137 <warName>default-webapp</warName>
138 <overlays>
139 <overlay>
140 <groupId>eu.etaxonomy</groupId>
141 <artifactId>cdmlib-remote-webapp</artifactId>
142 <skip>true</skip><!-- Do Not overlay -->
143 </overlay>
144 </overlays>
145 </configuration>
146 <executions>
147 <execution>
148 <phase>package</phase>
149 <goals>
150 <goal>war</goal>
151 </goals>
152 </execution>
153 </executions>
154 </plugin>
155 <!-- DEPLOY -->
156 <plugin>
157 <artifactId>maven-antrun-plugin</artifactId>
158 <version>1.3</version>
159 <executions>
160 <execution>
161 <phase>install</phase>
162 <!--
163 must run after winstone-maven-plugin
164 -->
165 <configuration>
166 <tasks>
167 <!--
168 ${project.patchversion} is explicitely set in this pom
169
170 ${buildNumber} is set by the buildnumber-maven-plugin
171 Cannot create the build number if you have local modifications,
172 to allow creating a buildnumber anyway you can ommit
173 -->
174 <!-- FIXME
175 <property name="project.fullversionstring" value="${project.version}.${project.patchversion}.r${buildNumber}"/>
176 <property name="project.fullversionstring" value="${project.version}.0.r0000"/>
177 -->
178 <property name="project.fullversionstring" value="${project.version}.0.${maven.build.timestamp}"/>
179 <ant antfile="${project.basedir}/src/main/installer/linux/build-deb.xml" dir="${project.basedir}" />
180
181
182 </tasks>
183 </configuration>
184 <goals>
185 <goal>run</goal>
186 </goals>
187 </execution>
188 </executions>
189 </plugin>
190
191 </plugins>
192 </build>
193 </project>