updating develop poms to master versions to avoid merge conflicts
[cdmlib.git] / cdmlib-remote-webapp / 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3 <modelVersion>4.0.0</modelVersion>
4 <parent>
5 <artifactId>cdmlib-parent</artifactId>
6 <groupId>eu.etaxonomy</groupId>
7 <version>3.7.0</version>
8 <relativePath>../pom.xml</relativePath>
9 </parent>
10
11 <groupId>eu.etaxonomy</groupId>
12 <artifactId>cdmlib-remote-webapp</artifactId>
13 <version>3.7</version>
14 <name>CDM Remote Webapp</name>
15 <packaging>war</packaging>
16
17 <properties>
18 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19 </properties>
20
21 <scm>
22 <connection>
23 scm:svn:http://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/
24 </connection>
25 <developerConnection>
26 scm:svn:https://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/
27 </developerConnection>
28 <url>
29 http://dev.e-taxonomy.eu/trac/browser/trunk/cdmlib/cdmlib-remote/
30 </url>
31 </scm>
32
33 <profiles>
34 <profile>
35 <id>local-repository</id>
36 <activation>
37 <property>
38 <name>localrepo</name>
39 </property>
40 </activation>
41 <repositories>
42 <repository>
43 <id>EditLocalRepository</id>
44 <url>file://${localrepo}/eu/etaxonomy/</url>
45 <releases>
46 <enabled>false</enabled>
47 <updatePolicy>always</updatePolicy>
48 </releases>
49 <snapshots>
50 <enabled>true</enabled>
51 <updatePolicy>always</updatePolicy>
52 </snapshots>
53 </repository>
54 </repositories>
55 </profile>
56 </profiles>
57
58 <dependencies>
59 <dependency>
60 <groupId>eu.etaxonomy</groupId>
61 <artifactId>cdmlib-remote</artifactId>
62 <exclusions>
63 <!--
64 exclude all jdbc drivers from the war.
65 Jdbc drivers must only be added to {APPLICATION_CONTAINER}/lib
66 see http://dev.e-taxonomy.eu/trac/ticket/4955
67 and http://stackoverflow.com/questions/6981564/why-must-the-jdbc-driver-be-put-in-tomcat-home-lib-folder
68 -->
69 <exclusion>
70 <artifactId>postgresql</artifactId>
71 <groupId>postgresql</groupId>
72 </exclusion>
73 <exclusion>
74 <artifactId>mysql-connector-java</artifactId>
75 <groupId>mysql</groupId>
76 </exclusion>
77 <exclusion>
78 <artifactId>c3p0</artifactId>
79 <groupId>com.mchange</groupId>
80 </exclusion>
81 <exclusion>
82 <groupId>oracle</groupId>
83 <artifactId>ojdbc14</artifactId>
84 </exclusion>
85 <exclusion>
86 <groupId>net.sourceforge.jtds</groupId>
87 <artifactId>jtds</artifactId>
88 </exclusion>
89 </exclusions>
90 </dependency>
91 <dependency>
92 <!-- TODO this is also offered by cdmlib-remote, can it be removed?
93 What does provided mean? -->
94 <groupId>javax.servlet</groupId>
95 <artifactId>javax.servlet-api</artifactId>
96 <scope>provided</scope>
97 </dependency>
98
99 <dependency>
100 <groupId>xmlunit</groupId>
101 <artifactId>xmlunit</artifactId>
102 </dependency>
103
104 <dependency>
105 <groupId>commons-io</groupId>
106 <artifactId>commons-io</artifactId>
107 </dependency>
108 <!-- JsonView -->
109 <dependency>
110 <!-- TODO can this be removed, it already exists in cdmlib-remote -->
111 <groupId>net.sf.json-lib</groupId>
112 <artifactId>json-lib</artifactId>
113 <classifier>jdk15</classifier>
114 </dependency>
115
116 <!-- Profiling -->
117 <dependency>
118 <groupId>org.springframework</groupId>
119 <artifactId>org.springframework.oxm</artifactId>
120 <version>${spring.version}</version>
121 </dependency>
122
123 <!-- XmlView -->
124 <dependency>
125 <groupId>com.thoughtworks.xstream</groupId>
126 <artifactId>xstream</artifactId>
127 </dependency>
128 <dependency>
129 <groupId>xpp3</groupId>
130 <artifactId>xpp3</artifactId>
131 </dependency>
132 <dependency>
133 <groupId>stax</groupId>
134 <artifactId>stax</artifactId>
135 </dependency>
136
137 <!-- JSP TAG LIBS -->
138 <dependency>
139 <groupId>taglibs</groupId>
140 <artifactId>standard</artifactId>
141 <version>1.1.2</version>
142 </dependency>
143 <dependency>
144 <groupId>taglibs</groupId>
145 <artifactId>x</artifactId>
146 <version>1.1.2</version>
147 <type>tld</type>
148 </dependency>
149 <!-- swagger -->
150 <dependency>
151 <groupId>com.mangofactory</groupId>
152 <artifactId>swagger-springmvc</artifactId>
153 <version>0.8.5</version>
154 </dependency>
155 <!-- dependencies for swagger-springmvc, added explicitely -->
156 <dependency>
157 <groupId>com.fasterxml.jackson.core</groupId>
158 <artifactId>jackson-databind</artifactId>
159 </dependency>
160 <dependency>
161 <groupId>com.fasterxml.jackson.core</groupId>
162 <artifactId>jackson-core</artifactId>
163 </dependency>
164 <dependency>
165 <groupId>com.fasterxml.jackson.core</groupId>
166 <artifactId>jackson-annotations</artifactId>
167 </dependency>
168 <!-- END of dependencies for swagger-springmvc, added explicitely -->
169 <!-- testing -->
170 <dependency>
171 <groupId>junit</groupId>
172 <artifactId>junit</artifactId>
173 <scope>test</scope>
174 </dependency>
175 <dependency>
176 <groupId>com.yourkit</groupId>
177 <artifactId>yjp-controller-api-redist</artifactId>
178 <scope>test</scope>
179 </dependency>
180 <!-- Connection Pooling and jdbc -->
181 <dependency>
182 <groupId>org.hibernate</groupId>
183 <artifactId>hibernate-c3p0</artifactId>
184 <scope>test</scope>
185 </dependency>
186 <dependency>
187 <artifactId>c3p0</artifactId>
188 <groupId>com.mchange</groupId>
189 </dependency>
190 </dependencies>
191
192 <build>
193 <resources>
194 <!-- ${basedir}/src/test/resources -->
195 <resource>
196 <!-- replace the place holders like ${...} in datasources.xml -->
197 <targetPath>${project.build.directory}/test-classes</targetPath>
198 <filtering>true</filtering>
199 <directory>${basedir}/src/test/resources</directory>
200 <includes>
201 <include>datasources.xml</include>
202 </includes>
203 </resource>
204 <resource>
205 <!-- all other test resources without filtering -->
206 <targetPath>${project.build.directory}/test-classes</targetPath>
207 <directory>${basedir}/src/test/resources</directory>
208 <excludes>
209 <exclude>datasources.xml</exclude>
210 </excludes>
211 </resource>
212 <resource>
213 <!-- all main resources without filtering -->
214 <targetPath>${project.build.directory}/classes</targetPath>
215 <directory>${basedir}/src/main/resources</directory>
216 </resource>
217 </resources>
218 <plugins>
219 <plugin>
220 <artifactId>maven-failsafe-plugin</artifactId>
221 <version>2.16</version>
222 <configuration>
223 <forkCount>3</forkCount>
224 <reuseForks>true</reuseForks>
225 </configuration>
226 <executions>
227 <execution>
228 <goals>
229 <goal>integration-test</goal>
230 <goal>verify</goal>
231 </goals>
232 </execution>
233 </executions>
234 </plugin>
235 <plugin>
236 <groupId>org.eclipse.jetty</groupId>
237 <artifactId>jetty-maven-plugin</artifactId>
238 <version>9.1.3.v20140225</version>
239 <configuration>
240 <stopKey>stop</stopKey>
241 <stopPort>9199</stopPort>
242 <scanIntervalSeconds>10</scanIntervalSeconds>
243 <jettyXml>${basedir}/src/test/resources/etc/jetty/jetty.xml,${basedir}/src/test/resources/etc/jetty/jetty-http.xml</jettyXml>
244 <!-- <jettyXml>./src/test/resources/etc/jetty/jetty.xml,./src/test/resources/etc/jetty/jetty-http.xml,./src/test/resources/etc/jetty/jetty-ssl.xml,./src/test/resources/etc/jetty/jetty-https.xml</jettyXml> -->
245 <systemProperties>
246 <systemProperty>
247 <name>cdm.datasource</name>
248 <value>h2_cdmTest</value>
249 </systemProperty>
250 <systemProperty>
251 <!-- datasources.xml is prepared by <plugins><resources>..</resources>
252 above -->
253 <name>cdm.beanDefinitionFile</name>
254 <value>${project.build.directory}/test-classes/datasources.xml</value>
255 </systemProperty>
256 </systemProperties>
257 </configuration>
258 <executions>
259 <execution>
260 <id>start-jetty</id>
261 <phase>pre-integration-test</phase>
262 <goals>
263 <goal>start</goal>
264 </goals>
265 <configuration>
266 <scanIntervalSeconds>0</scanIntervalSeconds>
267 <daemon>true</daemon>
268 </configuration>
269 </execution>
270 <execution>
271 <id>stop-jetty</id>
272 <phase>post-integration-test</phase>
273 <goals>
274 <goal>stop</goal>
275 </goals>
276 </execution>
277 </executions>
278 </plugin>
279 </plugins>
280 </build>
281 </project>