handle sous-genre
[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"
3 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 <parent>
6 <artifactId>cdmlib-parent</artifactId>
7 <groupId>eu.etaxonomy</groupId>
8 <version>3.3.1-SNAPSHOT</version>
9 <relativePath>../pom.xml</relativePath>
10 </parent>
11
12 <groupId>eu.etaxonomy</groupId>
13 <artifactId>cdmlib-remote-webapp</artifactId>
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 </dependency>
63 <dependency>
64 <!-- TODO this is also offered by cdmlib-remote, can it be removed?
65 What does provided mean? -->
66 <groupId>javax.servlet</groupId>
67 <artifactId>servlet-api</artifactId>
68 <scope>provided</scope>
69 </dependency>
70
71 <dependency>
72 <groupId>org.easymock</groupId>
73 <artifactId>easymock</artifactId>
74 </dependency>
75 <dependency>
76 <groupId>xmlunit</groupId>
77 <artifactId>xmlunit</artifactId>
78 </dependency>
79
80 <dependency>
81 <groupId>commons-io</groupId>
82 <artifactId>commons-io</artifactId>
83 </dependency>
84 <!-- JsonView -->
85 <dependency>
86 <!-- TODO can this be removed, it already exists in cdmlib-remote -->
87 <groupId>net.sf.json-lib</groupId>
88 <artifactId>json-lib</artifactId>
89 <classifier>jdk15</classifier>
90 </dependency>
91
92 <!-- Profiling -->
93 <dependency>
94 <groupId>org.springframework</groupId>
95 <artifactId>org.springframework.oxm</artifactId>
96 <version>${spring.version}</version>
97 </dependency>
98
99 <!-- XmlView -->
100 <dependency>
101 <groupId>com.thoughtworks.xstream</groupId>
102 <artifactId>xstream</artifactId>
103 </dependency>
104 <dependency>
105 <groupId>xpp3</groupId>
106 <artifactId>xpp3</artifactId>
107 </dependency>
108 <dependency>
109 <groupId>stax</groupId>
110 <artifactId>stax</artifactId>
111 </dependency>
112
113 <!-- JSP TAG LIBS -->
114 <dependency>
115 <groupId>taglibs</groupId>
116 <artifactId>standard</artifactId>
117 <version>1.1.2</version>
118 </dependency>
119 <dependency>
120 <groupId>taglibs</groupId>
121 <artifactId>x</artifactId>
122 <version>1.1.2</version>
123 <type>tld</type>
124 </dependency>
125 <!-- Connection Pooling -->
126 <dependency>
127 <groupId>org.hibernate</groupId>
128 <artifactId>hibernate-c3p0</artifactId>
129 </dependency>
130
131 <dependency>
132 <groupId>com.vaadin</groupId>
133 <artifactId>vaadin-server</artifactId>
134 </dependency>
135 <dependency>
136 <groupId>com.vaadin</groupId>
137 <artifactId>vaadin-shared</artifactId>
138 </dependency>
139 <dependency>
140 <groupId>com.vaadin</groupId>
141 <artifactId>vaadin-client-compiled</artifactId>
142 </dependency>
143 <dependency>
144 <groupId>com.vaadin</groupId>
145 <artifactId>vaadin-client</artifactId>
146 <scope>provided</scope>
147 </dependency>
148 <dependency>
149 <groupId>com.vaadin</groupId>
150 <artifactId>vaadin-themes</artifactId>
151 </dependency>
152 <dependency>
153 <groupId>com.vaadin</groupId>
154 <artifactId>vaadin-client-compiler</artifactId>
155 </dependency>
156
157 <dependency>
158 <groupId>ru.xpoft.vaadin</groupId>
159 <artifactId>spring-vaadin-integration</artifactId>
160 </dependency>
161
162 <dependency>
163 <groupId>org.vaadin.addons</groupId>
164 <artifactId>exporter</artifactId>
165 </dependency>
166
167 <dependency>
168 <groupId>org.vaadin.addons</groupId>
169 <artifactId>wizards-for-vaadin</artifactId>
170 </dependency>
171
172 <dependency>
173 <groupId>junit</groupId>
174 <artifactId>junit</artifactId>
175 <scope>test</scope>
176 </dependency>
177 <dependency>
178 <groupId>com.yourkit</groupId>
179 <artifactId>yjp-controller-api-redist</artifactId>
180 <scope>test</scope>
181 </dependency>
182
183 </dependencies>
184
185 <build>
186 <resources>
187 <!-- ${basedir}/src/test/resources -->
188 <resource>
189 <!-- replace the place holders like ${basedir} in the resource files -->
190 <targetPath>${project.build.directory}/test-classes</targetPath>
191 <filtering>true</filtering>
192 <directory>${basedir}/src/test/resources</directory>
193 <includes>
194 <include>datasources.xml</include>
195 </includes>
196 </resource>
197 <resource>
198 <!-- all other files without filtering -->
199 <targetPath>${project.build.directory}/test-classes</targetPath>
200 <directory>${basedir}/src/test/resources</directory>
201 <excludes>
202 <exclude>datasources.xml</exclude>
203 </excludes>
204 </resource>
205 </resources>
206 <plugins>
207 <plugin>
208 <groupId>org.apache.maven.plugins</groupId>
209 <artifactId>maven-war-plugin</artifactId>
210 <version>2.3</version>
211 </plugin>
212 <plugin>
213 <groupId>com.vaadin</groupId>
214 <artifactId>vaadin-maven-plugin</artifactId>
215 <version>7.1.11</version>
216 <executions>
217 <execution>
218 <configuration>
219 <!--
220 if you don't specify any modules, the plugin will find them
221 -->
222 <modules>
223 <module>${cdm-remote}.vaadin.redlist.widgetset</module>
224 </modules>
225 </configuration>
226 <goals>
227 <goal>update-widgetset</goal>
228 </goals>
229 </execution>
230 </executions>
231 <configuration>
232 <strict>true</strict>
233 <force>true</force>
234 <webappDirectory>src/main/webapp/VAADIN/widgetsets</webappDirectory>
235 <module>eu.etaxonomy.cdm.remote.vaadin.redlist.wigetset.AppWidgetSet</module>
236 </configuration>
237 </plugin>
238 <plugin>
239 <artifactId>maven-failsafe-plugin</artifactId>
240 <version>2.16</version>
241 <configuration>
242 <forkCount>3</forkCount>
243 <reuseForks>true</reuseForks>
244 </configuration>
245 <executions>
246 <execution>
247 <goals>
248 <goal>integration-test</goal>
249 <goal>verify</goal>
250 </goals>
251 </execution>
252 </executions>
253 </plugin>
254 <plugin>
255 <groupId>org.eclipse.jetty</groupId>
256 <artifactId>jetty-maven-plugin</artifactId>
257 <version>9.1.3.v20140225</version>
258 <configuration>
259 <stopKey>stop</stopKey>
260 <stopPort>9199</stopPort>
261 <scanIntervalSeconds>10</scanIntervalSeconds>
262 <jettyXml>${basedir}/src/test/resources/etc/jetty/jetty.xml,${basedir}/src/test/resources/etc/jetty/jetty-http.xml</jettyXml>
263 <!--
264 <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>
265 -->
266 <systemProperties>
267 <systemProperty>
268 <name>cdm.datasource</name>
269 <value>h2_cdmTest</value>
270 </systemProperty>
271 <systemProperty>
272 <!-- datasources.xml is prepared by <plugins><resources>..</resources> above -->
273 <name>cdm.beanDefinitionFile</name>
274 <value>${project.build.directory}/test-classes/datasources.xml</value>
275 </systemProperty>
276 </systemProperties>
277 </configuration>
278 <executions>
279 <execution>
280 <id>start-jetty</id>
281 <phase>pre-integration-test</phase>
282 <goals>
283 <goal>start</goal>
284 </goals>
285 <configuration>
286 <scanIntervalSeconds>0</scanIntervalSeconds>
287 <daemon>true</daemon>
288 </configuration>
289 </execution>
290 <execution>
291 <id>stop-jetty</id>
292 <phase>post-integration-test</phase>
293 <goals>
294 <goal>stop</goal>
295 </goals>
296 </execution>
297 </executions>
298 </plugin>
299 </plugins>
300 </build>
301 </project>