Project

General

Profile

Download (18.1 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" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <groupId>eu.etaxonomy</groupId>
5
  <artifactId>cdm-vaadin</artifactId>
6
  <packaging>war</packaging>
7
  <version>4.3.0-SNAPSHOT</version>
8
  <name>Vaadin Web Application</name>
9
  <properties>
10
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11
    <vaadin.version>7.6.3</vaadin.version>
12
    <vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
13
    <cdmlib.version>4.3.0-SNAPSHOT</cdmlib.version>
14
    <unitils.version>3.4.2</unitils.version>
15
    <spring.version>4.2.4.RELEASE</spring.version>
16
    <lucene.version>5.4.1</lucene.version>
17
  </properties>
18
  <prerequisites>
19
    <maven>3.0.5</maven>
20
  </prerequisites>
21
  <repositories>
22
    <!-- the cdm internal repository -->
23
    <repository>
24
      <id>EditRepository</id>
25
      <url>http://wp5.e-taxonomy.eu/mavenrepo/</url>
26
    </repository>
27
    <!-- current spring source repositories -->
28
    <repository>
29
      <id>SpringSource Enterprise Bundle Repository - External Bundle Milestones</id>
30
      <url>http://repository.springsource.com/maven/bundles/milestone</url>
31
    </repository>
32
    <repository>
33
      <id>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</id>
34
      <url>http://repository.springsource.com/maven/bundles/release</url>
35
    </repository>
36
    <repository>
37
      <id>SpringSource Enterprise Bundle Repository - External Bundle Releases</id>
38
      <url>http://repository.springsource.com/maven/bundles/external</url>
39
    </repository>
40
    <repository>
41
      <id>vaadin-addons</id>
42
      <url>http://maven.vaadin.com/vaadin-addons</url>
43
    </repository>
44
    <repository>
45
      <id>vaadin-snapshots</id>
46
      <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
47
      <releases>
48
        <enabled>false</enabled>
49
      </releases>
50
      <snapshots>
51
        <enabled>true</enabled>
52
      </snapshots>
53
    </repository>
54
  </repositories>
55
  <pluginRepositories>
56
    <pluginRepository>
57
      <id>vaadin-snapshots</id>
58
      <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
59
      <releases>
60
        <enabled>false</enabled>
61
      </releases>
62
      <snapshots>
63
        <enabled>true</enabled>
64
      </snapshots>
65
    </pluginRepository>
66
  </pluginRepositories>
67
  <distributionManagement>
68
    <repository>
69
      <uniqueVersion>false</uniqueVersion>
70
      <id>wp5.e-taxonomy.eu</id>
71
      <name>Edit Maven Repository</name>
72
      <url>scpexe://wp5.e-taxonomy.eu/var/www/wp5.e-taxonomy.eu/mavenrepo/</url>
73
      <layout>default</layout>
74
    </repository>
75
  </distributionManagement>
76
  <profiles>
77
    <profile>
78
      <activation>
79
        <property>
80
          <name>align-cdmlib-version</name>
81
        </property>
82
      </activation>
83
      <build>
84
        <plugins>
85
          <plugin>
86
            <groupId>com.google.code.maven-replacer-plugin</groupId>
87
            <artifactId>replacer</artifactId>
88
            <version>1.5.3</version>
89
            <executions>
90
              <execution>
91
                <phase>process-sources</phase>
92
                <goals>
93
                  <goal>replace</goal>
94
                </goals>
95
              </execution>
96
            </executions>
97
            <configuration>
98
              <file>pom.xml</file>
99
              <!-- \u003C = < , \u003E = >  -->
100
              <token>(\u003Ccdmlib\.version\u003E)[^\u003C]*</token>
101
              <value>$1${project.version}</value>
102
            </configuration>
103
          </plugin>
104
        </plugins>
105
      </build>
106
    </profile>
107
  </profiles>
108
  <build>
109
    <plugins>
110
      <plugin>
111
        <groupId>org.apache.maven.plugins</groupId>
112
        <artifactId>maven-compiler-plugin</artifactId>
113
        <version>3.3</version>
114
        <configuration>
115
          <source>1.7</source>
116
          <target>1.7</target>
117
          <encoding>UTF-8</encoding>
118
        </configuration>
119
      </plugin>
120
      <plugin>
121
        <groupId>org.apache.maven.plugins</groupId>
122
        <artifactId>maven-surefire-plugin</artifactId>
123
        <configuration>
124
          <argLine>-Xms256m -Xmx512m</argLine>
125
        </configuration>
126
      </plugin>
127
      <!-- As we are doing "inplace" GWT compilation, ensure the widgetset -->
128
      <!-- directory is cleaned properly -->
129
      <plugin>
130
        <artifactId>maven-clean-plugin</artifactId>
131
        <version>2.4.1</version>
132
        <configuration>
133
          <filesets>
134
            <fileset>
135
              <directory>src/main/webapp/VAADIN/widgetsets</directory>
136
            </fileset>
137
          </filesets>
138
        </configuration>
139
      </plugin>
140
      <plugin>
141
        <groupId>org.apache.maven.plugins</groupId>
142
        <artifactId>maven-war-plugin</artifactId>
143
        <version>2.2</version>
144
        <configuration>
145
          <failOnMissingWebXml>false</failOnMissingWebXml>
146
          <warSourceExcludes>WEB-INF/*,WEB-INF/datasources/*</warSourceExcludes>
147
        </configuration>
148
      </plugin>
149
      <plugin>
150
        <groupId>com.vaadin</groupId>
151
        <artifactId>vaadin-maven-plugin</artifactId>
152
        <version>${vaadin.plugin.version}</version>
153
        <configuration>
154
          <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
155
          <!-- <runTarget>mobilemail</runTarget> -->
156
          <!-- We are doing "inplace" but into subdir VAADIN/widgetsets. 
157
            This way compatible with Vaadin eclipse plugin. -->
158
          <webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets
159
          </webappDirectory>
160
          <hostedWebapp>${basedir}/src/main/webapp/VAADIN/widgetsets
161
          </hostedWebapp>
162
          <!-- Most Vaadin apps don't need this stuff, guide that to target -->
163
          <persistentunitcachedir>${project.build.directory}</persistentunitcachedir>
164
          <deploy>${project.build.directory}/gwt-deploy</deploy>
165
          <!-- Compile report is not typically needed either, saves hunreds 
166
            of mb disk -->
167
          <compileReport>false</compileReport>
168
          <noServer>true</noServer>
169
          <!-- Remove draftCompile when project is ready -->
170
          <draftCompile>false</draftCompile>
171
          <style>OBF</style>
172
          <strict>true</strict>
173
          <runTarget>http://localhost:8080/</runTarget>
174
        </configuration>
175
        <executions>
176
          <execution>
177
            <configuration>
178
              <!-- if you don't specify any modules, the plugin will find 
179
                them -->
180
              <!-- <modules> <module>com.vaadin.demo.mobilemail.gwt.ColorPickerWidgetSet</module> 
181
                </modules> -->
182
            </configuration>
183
            <goals>
184
              <goal>clean</goal>
185
              <goal>resources</goal>
186
              <goal>update-theme</goal>
187
              <goal>update-widgetset</goal>
188
              <goal>compile-theme</goal>
189
              <goal>compile</goal>
190
            </goals>
191
          </execution>
192
        </executions>
193
      </plugin>
194
      <!-- <plugin> -->
195
      <!-- <groupId>org.eclipse.jetty</groupId> -->
196
      <!-- <artifactId>jetty-maven-plugin</artifactId> -->
197
      <!-- <version>9.2.3.v20140905</version> -->
198
      <!-- <configuration> -->
199
      <!-- <scanIntervalSeconds>10</scanIntervalSeconds> -->
200
      <!-- <stopPort>8005</stopPort> -->
201
      <!-- <stopKey>STOP</stopKey> -->
202
      <!-- <useProvidedScope>true</useProvidedScope> -->
203
      <!-- <webApp> -->
204
      <!-- <descriptor>${project.basedir}/src/main/webapp/WEB-INF/web.xml</descriptor> -->
205
      <!-- </webApp> -->
206
      <!-- </configuration> -->
207
      <!-- <executions> -->
208
      <!-- <execution> -->
209
      <!-- <id>start-jetty</id> -->
210
      <!-- <phase>pre-integration-test</phase> -->
211
      <!-- <goals> -->
212
      <!-- <goal>start</goal> -->
213
      <!-- </goals> -->
214
      <!-- <configuration> -->
215
      <!-- <scanIntervalSeconds>0</scanIntervalSeconds> -->
216
      <!-- <daemon>true</daemon> -->
217
      <!-- </configuration> -->
218
      <!-- </execution> -->
219
      <!-- <execution> -->
220
      <!-- <id>stop-jetty</id> -->
221
      <!-- <phase>post-integration-test</phase> -->
222
      <!-- <goals> -->
223
      <!-- <goal>stop</goal> -->
224
      <!-- </goals> -->
225
      <!-- </execution> -->
226
      <!-- </executions> -->
227
      <!-- </plugin> -->
228
      <plugin>
229
        <groupId>org.apache.maven.plugins</groupId>
230
        <artifactId>maven-failsafe-plugin</artifactId>
231
        <version>2.17</version>
232
        <configuration>
233
          <!-- Remove the skipTests line below to run TestBench tests -->
234
          <!-- <skipTests>true</skipTests> -->
235
        </configuration>
236
        <executions>
237
          <execution>
238
            <goals>
239
              <goal>integration-test</goal>
240
              <goal>verify</goal>
241
            </goals>
242
          </execution>
243
        </executions>
244
      </plugin>
245
      <plugin>
246
        <groupId>external.atlassian.jgitflow</groupId>
247
        <artifactId>jgitflow-maven-plugin</artifactId>
248
        <version>1.0-m6</version>
249
        <configuration>
250
          <pushHotfixes>true</pushHotfixes>
251
          <pushReleases>true</pushReleases>
252
          <enableSshAgent>true</enableSshAgent>
253
          <allowSnapshots>true</allowSnapshots>
254
          <allowUntracked>true</allowUntracked>
255
        </configuration>
256
        <dependencies>
257
          <!-- 
258
                upgrading dependency jsch.agent.version of jgit-flow plugin to 0.1.53 
259
                in order have ssl key exchange algorithms compatible with openssh 6.7 
260
             -->
261
          <dependency>
262
            <groupId>com.jcraft</groupId>
263
            <artifactId>jsch</artifactId>
264
            <version>0.1.53</version>
265
          </dependency>
266
        </dependencies>
267
      </plugin>
268
    </plugins>
269
    <extensions>
270
      <extension>
271
        <groupId>org.apache.maven.wagon</groupId>
272
        <artifactId>wagon-scm</artifactId>
273
        <version>1.0-beta-6</version>
274
      </extension>
275
      <extension>
276
        <groupId>org.apache.maven.wagon</groupId>
277
        <artifactId>wagon-ssh</artifactId>
278
        <version>1.0-beta-6</version>
279
      </extension>
280
      <extension>
281
        <groupId>org.apache.maven.wagon</groupId>
282
        <artifactId>wagon-ssh-external</artifactId>
283
        <version>1.0-beta-6</version>
284
      </extension>
285
      <extension>
286
        <groupId>org.apache.maven.scm</groupId>
287
        <artifactId>maven-scm-manager-plexus</artifactId>
288
        <version>1.0</version>
289
      </extension>
290
      <extension>
291
        <groupId>org.apache.maven.scm</groupId>
292
        <artifactId>maven-scm-provider-svnexe</artifactId>
293
        <version>1.0</version>
294
      </extension>
295
      <!-- WebDAV plugin to upload snapshots -->
296
      <extension>
297
        <groupId>org.apache.maven.wagon</groupId>
298
        <artifactId>wagon-webdav</artifactId>
299
        <version>1.0-beta-2</version>
300
      </extension>
301
    </extensions>
302
    <pluginManagement>
303
      <plugins>
304
        <plugin>
305
          <artifactId>maven-eclipse-plugin</artifactId>
306
          <configuration>
307
            <wtpversion>2.0</wtpversion>
308
            <additionalProjectnatures>
309
              <projectnature>com.vaadin.integration.eclipse.widgetsetNature</projectnature>
310
            </additionalProjectnatures>
311
            <additionalBuildcommands>
312
              <buildcommand>com.vaadin.integration.eclipse.widgetsetBuilder</buildcommand>
313
              <buildcommand>com.vaadin.integration.eclipse.addonStylesBuilder</buildcommand>
314
            </additionalBuildcommands>
315
          </configuration>
316
        </plugin>
317
      </plugins>
318
    </pluginManagement>
319
  </build>
320
  <dependencies>
321
    <dependency>
322
      <groupId>com.vaadin</groupId>
323
      <artifactId>vaadin-server</artifactId>
324
      <version>${vaadin.version}</version>
325
    </dependency>
326
    <dependency>
327
      <groupId>com.vaadin</groupId>
328
      <artifactId>vaadin-client-compiled</artifactId>
329
      <version>${vaadin.version}</version>
330
    </dependency>
331
    <!-- Needed when using the widgetset optimizer (custom ConnectorBundleLoaderFactory). 
332
      For widgetset compilation, vaadin-client-compiler is automatically added 
333
      on the compilation classpath by vaadin-maven-plugin so normally there is 
334
      no need for an explicit dependency. -->
335
    <!-- <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-client-compiler</artifactId> 
336
      <version>${vaadin.version}</version> <scope>provided</scope> </dependency> -->
337
    <dependency>
338
      <groupId>com.vaadin</groupId>
339
      <artifactId>vaadin-client</artifactId>
340
      <version>${vaadin.version}</version>
341
      <scope>provided</scope>
342
    </dependency>
343
    <!-- disabling push for the moment because it does not work with run-jetty-run 
344
      due to the fact that the latest (even nightly) version of run-jetty-run uses 
345
      9.0.0 M3 which is incompatible with atmoshpere. this does work with the jetty 
346
      included in this pom which is 9.2.5.xx, implying that enabling the dependency 
347
      and running the web app via 'mvn jetty:run' works fine. -->
348
    <!-- <dependency> -->
349
    <!-- <groupId>com.vaadin</groupId> -->
350
    <!-- <artifactId>vaadin-push</artifactId> -->
351
    <!-- <version>${vaadin.version}</version> -->
352
    <!-- </dependency> -->
353
    <dependency>
354
      <groupId>com.vaadin</groupId>
355
      <artifactId>vaadin-themes</artifactId>
356
      <version>${vaadin.version}</version>
357
    </dependency>
358
    <dependency>
359
      <groupId>javax.servlet</groupId>
360
      <artifactId>javax.servlet-api</artifactId>
361
      <version>3.1.0</version>
362
      <scope>provided</scope>
363
    </dependency>
364
    <dependency>
365
      <groupId>com.vaadin</groupId>
366
      <artifactId>vaadin-testbench-api</artifactId>
367
      <version>RELEASE</version>
368
      <scope>test</scope>
369
    </dependency>
370
    <dependency>
371
      <groupId>eu.etaxonomy</groupId>
372
      <artifactId>cdmlib-services</artifactId>
373
      <version>${cdmlib.version}</version>
374
    
375
    
376
    
377
    
378
<!--       <scope>provided</scope> -->
379
    </dependency>
380
    <dependency>
381
      <groupId>eu.etaxonomy</groupId>
382
      <artifactId>cdmlib-test</artifactId>
383
      <version>${cdmlib.version}</version>
384
      <scope>test</scope>
385
    </dependency>
386
    <!-- to override version number coming with vaadin client -->
387
    <dependency>
388
      <groupId>javax.validation</groupId>
389
      <artifactId>validation-api</artifactId>
390
      <version>1.1.0.Final</version>
391
    </dependency>
392
    <dependency>
393
      <groupId>org.springmodules</groupId>
394
      <artifactId>spring-modules-cache</artifactId>
395
      <version>0.7</version>
396
      <exclusions>
397
        <exclusion>
398
          <groupId>org.springframework</groupId>
399
          <artifactId>spring</artifactId>
400
        </exclusion>
401
        <exclusion>
402
          <groupId>org.springframework</groupId>
403
          <artifactId>spring-mock</artifactId>
404
        </exclusion>
405
      </exclusions>
406
      <scope>provided</scope>
407
    </dependency>
408
    <dependency>
409
      <groupId>com.thoughtworks.xstream</groupId>
410
      <artifactId>xstream</artifactId>
411
      <version>1.4.7</version>
412
      <scope>provided</scope>
413
    </dependency>
414
    <dependency>
415
      <groupId>org.springframework</groupId>
416
      <artifactId>spring-mock</artifactId>
417
      <version>2.0.8</version>
418
      <scope>provided</scope>
419
    </dependency>
420
    <dependency>
421
      <groupId>org.springframework</groupId>
422
      <artifactId>spring-context-support</artifactId>
423
      <version>${spring.version}</version>
424
      <scope>provided</scope>
425
    </dependency>
426
    <dependency>
427
      <groupId>org.springframework</groupId>
428
      <artifactId>spring-web</artifactId>
429
      <version>${spring.version}</version>
430
    </dependency>
431
    <dependency>
432
      <groupId>org.springframework</groupId>
433
      <artifactId>spring-webmvc</artifactId>
434
      <version>${spring.version}</version>
435
    </dependency>
436
    <!-- vaadin addons / extensions -->
437
    <dependency>
438
      <groupId>org.vaadin.addons</groupId>
439
      <artifactId>contextmenu</artifactId>
440
      <version>4.5</version>
441
    </dependency>
442
    <dependency>
443
      <groupId>junit</groupId>
444
      <artifactId>junit</artifactId>
445
      <version>4.11</version>
446
      <scope>test</scope>
447
    </dependency>
448
    <dependency>
449
      <groupId>org.slf4j</groupId>
450
      <artifactId>slf4j-log4j12</artifactId>
451
      <version>1.7.2</version>
452
      <scope>provided</scope>
453
    </dependency>
454
    <dependency>
455
      <groupId>org.slf4j</groupId>
456
      <artifactId>slf4j-api</artifactId>
457
      <version>1.7.2</version>
458
      <scope>provided</scope>
459
    </dependency>
460
    <dependency>
461
      <groupId>org.json</groupId>
462
      <artifactId>json</artifactId>
463
      <version>20151123</version>
464
    </dependency>
465
    <!-- lucene -->
466
    <dependency>
467
      <groupId>org.apache.lucene</groupId>
468
      <artifactId>lucene-backward-codecs</artifactId>
469
      <version>5.3.1</version>
470
    </dependency>
471
    <dependency>
472
      <groupId>org.apache.lucene</groupId>
473
      <artifactId>lucene-core</artifactId>
474
      <version>${lucene.version}</version>
475
    </dependency>
476
    <dependency>
477
      <groupId>org.apache.lucene</groupId>
478
      <artifactId>lucene-suggest</artifactId>
479
      <version>${lucene.version}</version>
480
    </dependency>
481
    <dependency>
482
      <groupId>org.apache.lucene</groupId>
483
      <artifactId>lucene-analyzers-common</artifactId>
484
      <version>${lucene.version}</version>
485
    </dependency>
486
    <dependency>
487
      <groupId>org.apache.lucene</groupId>
488
      <artifactId>lucene-queryparser</artifactId>
489
      <version>${lucene.version}</version>
490
    </dependency>
491
    <dependency>
492
      <groupId>org.apache.lucene</groupId>
493
      <artifactId>lucene-highlighter</artifactId>
494
      <version>${lucene.version}</version>
495
    </dependency>
496
    <dependency>
497
      <groupId>org.apache.lucene</groupId>
498
      <artifactId>lucene-grouping</artifactId>
499
      <version>${lucene.version}</version>
500
    </dependency>
501
    <dependency>
502
      <groupId>org.apache.lucene</groupId>
503
      <artifactId>lucene-join</artifactId>
504
      <version>${lucene.version}</version>
505
    </dependency>
506
    <dependency>
507
      <groupId>org.apache.lucene</groupId>
508
      <artifactId>lucene-backward-codecs</artifactId>
509
      <version>${lucene.version}</version>
510
    </dependency>
511
    <dependency>
512
      <groupId>org.apache.lucene</groupId>
513
      <artifactId>lucene-misc</artifactId>
514
      <version>${lucene.version}</version>
515
    </dependency>
516
    <dependency>
517
      <groupId>org.apache.lucene</groupId>
518
      <artifactId>lucene-facet</artifactId>
519
      <version>${lucene.version}</version>
520
    </dependency>
521
  </dependencies>
522
</project>
(3-3/3)