Project

General

Profile

Download (14.9 KB) Statistics
| Branch: | Tag: | Revision:
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/maven-v4_0_0.xsd">
4
	<modelVersion>4.0.0</modelVersion>
5
	<groupId>eu.etaxonomy</groupId>
6
	<artifactId>cdm-vaadin</artifactId>
7
	<packaging>war</packaging>
8
	<version>3.4.0-SNAPSHOT</version>
9
	<name>Vaadin Web Application</name>
10

    
11
	<properties>
12
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
13
		<vaadin.version>7.3.5</vaadin.version>
14
		<vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
15
		<cdmlib.version>${version}</cdmlib.version>
16
		<unitils.version>3.3</unitils.version>
17
	</properties>
18
	<repositories>
19
        <!-- the cdm internal repository -->
20
        <repository>
21
            <id>EditRepository</id>
22
            <url>http://wp5.e-taxonomy.eu/mavenrepo/</url>
23
        </repository>
24
        <!-- current spring source repositories -->
25
        <repository>
26
            <id>SpringSource Enterprise Bundle Repository - External Bundle Milestones</id>
27
            <url>http://repository.springsource.com/maven/bundles/milestone</url>
28
        </repository>
29
        <repository>
30
            <id>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</id>
31
            <url>http://repository.springsource.com/maven/bundles/release</url>
32
        </repository>
33
        <repository>
34
            <id>SpringSource Enterprise Bundle Repository - External Bundle Releases</id>
35
            <url>http://repository.springsource.com/maven/bundles/external</url>
36
        </repository>
37
		<repository>
38
			<id>vaadin-addons</id>
39
			<url>http://maven.vaadin.com/vaadin-addons</url>
40
		</repository>
41
		
42
		<repository>
43
			<id>vaadin-snapshots</id>
44
			<url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
45
			<releases>
46
				<enabled>false</enabled>
47
			</releases>
48
			<snapshots>
49
				<enabled>true</enabled>
50
			</snapshots>
51
		</repository>
52
	</repositories>
53
	<pluginRepositories>
54
		<pluginRepository>
55
			<id>vaadin-snapshots</id>
56
			<url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
57
			<releases>
58
				<enabled>false</enabled>
59
			</releases>
60
			<snapshots>
61
				<enabled>true</enabled>
62
			</snapshots>
63
		</pluginRepository>
64
	</pluginRepositories>
65
	<dependencies>
66
		<dependency>
67
			<groupId>com.vaadin</groupId>
68
			<artifactId>vaadin-server</artifactId>
69
			<version>${vaadin.version}</version>
70
		</dependency>
71
		<dependency>
72
			<groupId>com.vaadin</groupId>
73
			<artifactId>vaadin-client-compiled</artifactId>
74
			<version>${vaadin.version}</version>
75
		</dependency>
76
		<!-- Needed when using the widgetset optimizer (custom ConnectorBundleLoaderFactory). 
77
			For widgetset compilation, vaadin-client-compiler is automatically added 
78
			on the compilation classpath by vaadin-maven-plugin so normally there is 
79
			no need for an explicit dependency. -->
80
		<!-- <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-client-compiler</artifactId> 
81
			<version>${vaadin.version}</version> <scope>provided</scope> </dependency> -->
82
		<dependency>
83
			<groupId>com.vaadin</groupId>
84
			<artifactId>vaadin-client</artifactId>
85
			<version>${vaadin.version}</version>
86
			<scope>provided</scope>
87
		</dependency>
88
		<!-- disabling push for the moment because it does not work with run-jetty-run 
89
			due to the fact that the latest (even nightly) version of run-jetty-run uses 
90
			9.0.0 M3 which is incompatible with atmoshpere. this does work with the jetty 
91
			included in this pom which is 9.2.5.xx, implying that enabling the dependency 
92
			and running the web app via 'mvn jetty:run' works fine. -->
93
		<!-- <dependency> -->
94
		<!-- <groupId>com.vaadin</groupId> -->
95
		<!-- <artifactId>vaadin-push</artifactId> -->
96
		<!-- <version>${vaadin.version}</version> -->
97
		<!-- </dependency> -->
98
		<dependency>
99
			<groupId>com.vaadin</groupId>
100
			<artifactId>vaadin-themes</artifactId>
101
			<version>${vaadin.version}</version>
102
		</dependency>
103
		<dependency>
104
			<groupId>javax.servlet</groupId>
105
			<artifactId>javax.servlet-api</artifactId>
106
			<version>3.1.0</version>
107
			<scope>provided</scope>
108
		</dependency>
109
		<dependency>
110
			<groupId>com.vaadin</groupId>
111
			<artifactId>vaadin-testbench-api</artifactId>
112
			<version>RELEASE</version>
113
			<scope>test</scope>
114
		</dependency>
115
		<dependency>
116
			<groupId>eu.etaxonomy</groupId>
117
			<artifactId>cdmlib-services</artifactId>
118
			<version>${cdmlib.version}</version>
119
			<scope>provided</scope>
120
		</dependency>
121

    
122
		<dependency>
123
			<groupId>eu.etaxonomy</groupId>
124
			<artifactId>cdmlib-model</artifactId>
125
			<version>${cdmlib.version}</version>
126
			<scope>provided</scope>
127
		</dependency>
128
		<dependency>
129
			<groupId>eu.etaxonomy</groupId>
130
			<artifactId>cdmlib-persistence</artifactId>
131
			<type>test-jar</type>
132
			<scope>test</scope>
133
			<version>${cdmlib.version}</version>
134
		</dependency>
135

    
136

    
137
		<dependency>
138
			<groupId>org.springmodules</groupId>
139
			<artifactId>spring-modules-cache</artifactId>
140
			<version>0.7</version>
141
			<exclusions>
142
				<exclusion>
143
					<groupId>org.springframework</groupId>
144
					<artifactId>spring</artifactId>
145
				</exclusion>
146
				<exclusion>
147
					<groupId>org.springframework</groupId>
148
					<artifactId>spring-mock</artifactId>
149
				</exclusion>
150
			</exclusions>
151
			<scope>provided</scope>
152
		</dependency>
153
		<dependency>
154
			<groupId>com.thoughtworks.xstream</groupId>
155
			<artifactId>xstream</artifactId>
156
			<version>1.4.4</version>
157
			<scope>provided</scope>
158
		</dependency>
159
		<dependency>
160
			<groupId>org.springframework</groupId>
161
			<artifactId>spring-mock</artifactId>
162
			<version>2.0.8</version>
163
			<scope>provided</scope>
164
		</dependency>
165
		<dependency>
166
			<groupId>org.springframework</groupId>
167
			<artifactId>spring-context-support</artifactId>
168
			<version>3.2.2.RELEASE</version>
169
			<scope>provided</scope>
170
		</dependency>
171
		<dependency>
172
			<groupId>org.springframework</groupId>
173
			<artifactId>org.springframework.web</artifactId>
174
			<version>3.2.2.RELEASE</version>
175
			<scope>provided</scope>
176
		</dependency>
177
		<dependency>
178
			<groupId>org.springframework</groupId>
179
			<artifactId>org.springframework.web.servlet</artifactId>
180
			<version>3.2.2.RELEASE</version>
181
			<scope>provided</scope>
182
		</dependency>
183
		<dependency>
184
			<groupId>junit</groupId>
185
			<artifactId>junit</artifactId>
186
			<version>4.11</version>
187
			<scope>test</scope>
188
		</dependency>
189

    
190

    
191
		<!-- unitils dependencies - start -->
192
		<dependency>
193
			<groupId>org.unitils</groupId>
194
			<artifactId>unitils-core</artifactId>
195
			<version>${unitils.version}</version>
196
			<scope>test</scope>
197
		</dependency>
198
		<dependency>
199
			<groupId>org.unitils</groupId>
200
			<artifactId>unitils-database</artifactId>
201
			<version>${unitils.version}</version>
202
			<scope>test</scope>
203
			<exclusions>
204
				<exclusion>
205
					<groupId>org.springframework</groupId>
206
					<artifactId>spring-jdbc</artifactId>
207
				</exclusion>
208
			</exclusions>
209
		</dependency>
210
		<dependency>
211
			<groupId>org.unitils</groupId>
212
			<artifactId>unitils-dbmaintainer</artifactId>
213
			<version>${unitils.version}</version>
214
			<scope>test</scope>
215
			<exclusions>
216
				<exclusion>
217
					<groupId>org.hibernate</groupId>
218
					<artifactId>hibernate</artifactId>
219
				</exclusion>
220
			</exclusions>
221
		</dependency>
222
		<dependency>
223
			<groupId>org.unitils</groupId>
224
			<artifactId>unitils-dbunit</artifactId>
225
			<version>${unitils.version}</version>
226
			<scope>test</scope>
227
			<exclusions>
228
				<exclusion>
229
					<groupId>org.springframework</groupId>
230
					<artifactId>spring-core</artifactId>
231
				</exclusion>
232
				<exclusion>
233
					<groupId>org.springframework</groupId>
234
					<artifactId>spring-jdbc</artifactId>
235
				</exclusion>
236
				<exclusion>
237
					<groupId>org.springframework</groupId>
238
					<artifactId>spring-beans</artifactId>
239
				</exclusion>
240
			</exclusions>
241
		</dependency>
242
		<dependency>
243
			<groupId>org.unitils</groupId>
244
			<artifactId>unitils-easymock</artifactId>
245
			<version>${unitils.version}</version>
246
			<scope>test</scope>
247
		</dependency>
248
		<dependency>
249
			<groupId>org.unitils</groupId>
250
			<artifactId>unitils-mock</artifactId>
251
			<version>${unitils.version}</version>
252
			<scope>test</scope>
253
		</dependency>
254
		<dependency>
255
			<groupId>org.unitils</groupId>
256
			<artifactId>unitils-inject</artifactId>
257
			<version>${unitils.version}</version>
258
			<scope>test</scope>
259
		</dependency>
260
		<dependency>
261
			<groupId>org.unitils</groupId>
262
			<artifactId>unitils-orm</artifactId>
263
			<version>${unitils.version}</version>
264
			<scope>test</scope>
265
			<exclusions>
266
				<exclusion>
267
					<groupId>org.springframework</groupId>
268
					<artifactId>spring-context</artifactId>
269
				</exclusion>
270
				<exclusion>
271
					<groupId>org.springframework</groupId>
272
					<artifactId>spring-orm</artifactId>
273
				</exclusion>
274
				<exclusion>
275
					<groupId>javax.persistence</groupId>
276
					<artifactId>persistence-api</artifactId>
277
				</exclusion>
278
			</exclusions>
279
		</dependency>
280
		<dependency>
281
			<groupId>org.unitils</groupId>
282
			<artifactId>unitils-spring</artifactId>
283
			<version>${unitils.version}</version>
284
			<scope>test</scope>
285
			<exclusions>
286
				<exclusion>
287
					<groupId>org.springframework</groupId>
288
					<artifactId>spring-core</artifactId>
289
				</exclusion>
290
				<exclusion>
291
					<groupId>org.springframework</groupId>
292
					<artifactId>spring-context</artifactId>
293
				</exclusion>
294
				<exclusion>
295
					<groupId>org.springframework</groupId>
296
					<artifactId>spring-beans</artifactId>
297
				</exclusion>
298
				<exclusion>
299
					<groupId>org.springframework</groupId>
300
					<artifactId>spring-test</artifactId>
301
				</exclusion>
302
				<exclusion>
303
					<groupId>org.springframework</groupId>
304
					<artifactId>spring-tx</artifactId>
305
				</exclusion>
306
			</exclusions>
307
		</dependency>
308
		<dependency>
309
			<groupId>org.easymock</groupId>
310
			<artifactId>easymock</artifactId>
311
			<version>3.1</version>
312
			<scope>test</scope>
313
		</dependency>
314
		<dependency>
315
			<groupId>xmlunit</groupId>
316
			<artifactId>xmlunit</artifactId>
317
			<version>1.4</version>
318
			<scope>test</scope>
319
		</dependency>
320
		<dependency>
321
			<groupId>org.dbunit</groupId>
322
			<artifactId>dbunit</artifactId>
323
			<version>2.4.9</version>
324
			<scope>test</scope>
325
		</dependency>
326
		<dependency>
327
			<groupId>commons-dbcp</groupId>
328
			<artifactId>commons-dbcp</artifactId>
329
			<version>1.4</version>
330
			<scope>test</scope>
331
		</dependency>
332
		<!-- unitils dependencies - end -->
333

    
334
		<dependency>
335
			<groupId>org.slf4j</groupId>
336
			<artifactId>slf4j-log4j12</artifactId>
337
			<version>1.7.2</version>
338
			<scope>provided</scope>
339
		</dependency>
340
		<dependency>
341
			<groupId>org.slf4j</groupId>
342
			<artifactId>slf4j-api</artifactId>
343
			<version>1.7.2</version>
344
			<scope>provided</scope>
345
		</dependency>
346
	</dependencies>
347

    
348
	<build>
349
		<plugins>
350
			<plugin>
351
				<groupId>org.apache.maven.plugins</groupId>
352
				<artifactId>maven-compiler-plugin</artifactId>
353
				<configuration>
354
					<source>1.6</source>
355
					<target>1.6</target>
356
				</configuration>
357
			</plugin>
358
			<!-- As we are doing "inplace" GWT compilation, ensure the widgetset -->
359
			<!-- directory is cleaned properly -->
360
			<plugin>
361
				<artifactId>maven-clean-plugin</artifactId>
362
				<version>2.4.1</version>
363
				<configuration>
364
					<filesets>
365
						<fileset>
366
							<directory>src/main/webapp/VAADIN/widgetsets</directory>
367
						</fileset>
368
					</filesets>
369
				</configuration>
370
			</plugin>
371
			<plugin>
372
				<groupId>org.apache.maven.plugins</groupId>
373
				<artifactId>maven-war-plugin</artifactId>
374
				<version>2.2</version>
375
				<configuration>
376
					<failOnMissingWebXml>false</failOnMissingWebXml>
377
				</configuration>
378
			</plugin>
379
			<plugin>
380
				<groupId>com.vaadin</groupId>
381
				<artifactId>vaadin-maven-plugin</artifactId>
382
				<version>${vaadin.plugin.version}</version>
383
				<configuration>
384
					<extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
385
					<!-- <runTarget>mobilemail</runTarget> -->
386
					<!-- We are doing "inplace" but into subdir VAADIN/widgetsets. This 
387
						way compatible with Vaadin eclipse plugin. -->
388
					<webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets
389
					</webappDirectory>
390
					<hostedWebapp>${basedir}/src/main/webapp/VAADIN/widgetsets
391
					</hostedWebapp>
392
					<!-- Most Vaadin apps don't need this stuff, guide that to target -->
393
					<persistentunitcachedir>${project.build.directory}</persistentunitcachedir>
394
					<deploy>${project.build.directory}/gwt-deploy</deploy>
395
					<!-- Compile report is not typically needed either, saves hunreds of 
396
						mb disk -->
397
					<compileReport>false</compileReport>
398
					<noServer>true</noServer>
399
					<!-- Remove draftCompile when project is ready -->
400
					<draftCompile>false</draftCompile>
401

    
402
					<style>OBF</style>
403
					<strict>true</strict>
404
					<runTarget>http://localhost:8080/</runTarget>
405
				</configuration>
406
				<executions>
407
					<execution>
408
						<configuration>
409
							<!-- if you don't specify any modules, the plugin will find them -->
410
							<!-- <modules> <module>com.vaadin.demo.mobilemail.gwt.ColorPickerWidgetSet</module> 
411
								</modules> -->
412
						</configuration>
413
						<goals>
414
							<goal>clean</goal>
415
							<goal>resources</goal>
416
							<goal>update-theme</goal>
417
							<goal>update-widgetset</goal>
418
							<goal>compile-theme</goal>
419
							<goal>compile</goal>
420
						</goals>
421
					</execution>
422
				</executions>
423
			</plugin>
424

    
425
			<plugin>
426
				<groupId>org.eclipse.jetty</groupId>
427
				<artifactId>jetty-maven-plugin</artifactId>
428
				<version>9.2.3.v20140905</version>
429
				<configuration>
430
					<scanIntervalSeconds>10</scanIntervalSeconds>
431
					<stopPort>8005</stopPort>
432
					<stopKey>STOP</stopKey>
433
					<useProvidedScope>true</useProvidedScope>
434
					<webApp>
435
						<descriptor>${project.basedir}/src/main/webapp/WEB-INF/web.xml</descriptor>
436
					</webApp>
437
				</configuration>
438
				<executions>
439
					<execution>
440
						<id>start-jetty</id>
441
						<phase>pre-integration-test</phase>
442
						<goals>
443
							<goal>start</goal>
444
						</goals>
445
						<configuration>
446
							<scanIntervalSeconds>0</scanIntervalSeconds>
447
							<daemon>true</daemon>
448
						</configuration>
449
					</execution>
450
					<execution>
451
						<id>stop-jetty</id>
452
						<phase>post-integration-test</phase>
453
						<goals>
454
							<goal>stop</goal>
455
						</goals>
456
					</execution>
457
				</executions>
458
			</plugin>
459

    
460
			<plugin>
461
				<groupId>org.apache.maven.plugins</groupId>
462
				<artifactId>maven-failsafe-plugin</artifactId>
463
				<version>2.17</version>
464
				<configuration>
465
					<!-- Remove the skipTests line below to run TestBench tests -->
466
<!-- 					<skipTests>true</skipTests> -->
467
				</configuration>
468
				<executions>
469
					<execution>
470
						<goals>
471
							<goal>integration-test</goal>
472
							<goal>verify</goal>
473
						</goals>
474
					</execution>
475
				</executions>
476
			</plugin>
477

    
478
		</plugins>
479
		<pluginManagement>
480
			<plugins>
481

    
482
				<plugin>
483
					<artifactId>maven-eclipse-plugin</artifactId>
484
					<configuration>
485
						<wtpversion>2.0</wtpversion>
486
						<additionalProjectnatures>
487
							<projectnature>com.vaadin.integration.eclipse.widgetsetNature</projectnature>
488
						</additionalProjectnatures>
489
						<additionalBuildcommands>
490
							<buildcommand>com.vaadin.integration.eclipse.widgetsetBuilder</buildcommand>
491
							<buildcommand>com.vaadin.integration.eclipse.addonStylesBuilder</buildcommand>
492
						</additionalBuildcommands>
493
					</configuration>
494
				</plugin>
495
			</plugins>
496
		</pluginManagement>
497
	</build>
498
</project>
(3-3/3)