Project

General

Profile

Download (20.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.14.0</version>
8
  <name>Vaadin Web Application</name>
9
  <properties>
10
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
11
    <vaadin.version>7.7.10</vaadin.version>
12
    <vaadin-spring.version>1.2.0</vaadin-spring.version>
13
    <vaadin.plugin.version>${vaadin.version}</vaadin.plugin.version>
14
    <vaadin-spring-addon-eventbus.version>2.0.0.RELEASE</vaadin-spring-addon-eventbus.version>
15
    <cdmlib.version>4.14.0</cdmlib.version>
16
    <unitils.version>3.4.2</unitils.version>
17
    <!-- 
18
        lucene.version must match the version as defined in cdmlib
19
    -->
20
    <lucene.version>5.4.1</lucene.version>
21
    <maven.compiler.source>1.8</maven.compiler.source>
22
    <maven.compiler.target>1.8</maven.compiler.target>
23
  </properties>
24
  <prerequisites>
25
    <maven>3.0.5</maven>
26
  </prerequisites>
27
  <repositories>
28
    <!-- the cdm internal repository -->
29
    <repository>
30
      <id>EditRepository</id>
31
      <url>http://cybertaxonomy.eu/mavenrepo/</url>
32
    </repository>
33
    <!-- current spring source repositories -->
34
    <repository>
35
      <id>SpringSource Enterprise Bundle Repository - External Bundle Milestones</id>
36
      <url>http://repository.springsource.com/maven/bundles/milestone</url>
37
    </repository>
38
    <repository>
39
      <id>SpringSource Enterprise Bundle Repository - SpringSource Bundle Releases</id>
40
      <url>http://repository.springsource.com/maven/bundles/release</url>
41
    </repository>
42
    <repository>
43
      <id>SpringSource Enterprise Bundle Repository - External Bundle Releases</id>
44
      <url>http://repository.springsource.com/maven/bundles/external</url>
45
    </repository>
46
    <repository>
47
      <id>vaadin-addons</id>
48
      <url>http://maven.vaadin.com/vaadin-addons</url>
49
    </repository>
50
    <repository>
51
      <id>vaadin-snapshots</id>
52
      <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
53
      <releases>
54
        <enabled>false</enabled>
55
      </releases>
56
      <snapshots>
57
        <enabled>true</enabled>
58
      </snapshots>
59
    </repository>
60
  </repositories>
61
  <pluginRepositories>
62
    <pluginRepository>
63
      <id>vaadin-snapshots</id>
64
      <url>http://oss.sonatype.org/content/repositories/vaadin-snapshots/</url>
65
      <releases>
66
        <enabled>false</enabled>
67
      </releases>
68
      <snapshots>
69
        <enabled>true</enabled>
70
      </snapshots>
71
    </pluginRepository>
72
  </pluginRepositories>
73
  <dependencyManagement>
74
    <dependencies>
75
      <dependency>
76
        <groupId>com.vaadin</groupId>
77
        <artifactId>vaadin-bom</artifactId>
78
        <version>${vaadin.version}</version>
79
        <type>pom</type>
80
        <scope>import</scope>
81
      </dependency>
82
      <dependency>
83
        <groupId>eu.etaxonomy</groupId>
84
        <artifactId>cdmlib-parent</artifactId>
85
        <version>${cdmlib.version}</version>
86
        <type>pom</type>
87
        <scope>import</scope>
88
      </dependency>
89
      <dependency>
90
        <!-- Try updating in cdmlib to 20090211 -->
91
        <groupId>org.json</groupId>
92
        <artifactId>json</artifactId>
93
        <version>20151123</version>
94
      </dependency>
95
    </dependencies>
96
  </dependencyManagement>
97
  <distributionManagement>
98
    <repository>
99
      <uniqueVersion>false</uniqueVersion>
100
      <id>cybertaxonomy.eu</id>
101
      <name>Edit Maven Repository</name>
102
      <url>scpexe://cybertaxonomy.eu/var/www/wp5.e-taxonomy.eu/mavenrepo/</url>
103
      <layout>default</layout>
104
    </repository>
105
  </distributionManagement>
106
  <profiles>
107
    <profile>
108
      <id>align-cdmlib-version</id>
109
      <activation>
110
        <property>
111
          <name>align-cdmlib-version</name>
112
        </property>
113
      </activation>
114
      <build>
115
        <plugins>
116
          <plugin>
117
            <groupId>com.google.code.maven-replacer-plugin</groupId>
118
            <artifactId>replacer</artifactId>
119
            <version>1.5.3</version>
120
            <executions>
121
              <execution>
122
                <phase>process-sources</phase>
123
                <goals>
124
                  <goal>replace</goal>
125
                </goals>
126
              </execution>
127
            </executions>
128
            <configuration>
129
              <file>pom.xml</file>
130
              <!-- \u003C = < , \u003E = > -->
131
              <token>(\u003Ccdmlib\.version\u003E)[^\u003C]*</token>
132
              <value>$1${project.version}</value>
133
            </configuration>
134
          </plugin>
135
        </plugins>
136
      </build>
137
    </profile>
138
    <profile>
139
      <id>java8-doclint-disabled</id>
140
      <activation>
141
        <jdk>[1.8,)</jdk>
142
      </activation>
143
      <properties>
144
        <javadoc.opts>-Xdoclint:none</javadoc.opts>
145
      </properties>
146
    </profile>
147
  </profiles>
148
  <build>
149
    <resources>
150
      <resource>
151
        <!-- replace the place holders like ${...} in datasources.xml -->
152
        <filtering>true</filtering>
153
        <directory>src/test/resources</directory>
154
        <targetPath>../test-classes</targetPath>
155
        <includes>
156
          <include>datasources.xml</include>
157
        </includes>
158
      </resource>
159
      <resource>
160
        <!-- all other test resources without filtering -->
161
        <directory>src/test/resources</directory>
162
        <targetPath>../test-classes</targetPath>
163
        <excludes>
164
          <exclude>datasources.xml</exclude>
165
        </excludes>
166
      </resource>
167
      <resource>
168
        <!-- all main resources without filtering -->
169
        <directory>src/main/resources</directory>
170
      </resource>
171
    </resources>
172
    <plugins>
173
      <plugin>
174
        <groupId>org.apache.maven.plugins</groupId>
175
        <artifactId>maven-resources-plugin</artifactId>
176
        <version>3.0.1</version>
177
      </plugin>
178
      <plugin>
179
        <groupId>org.apache.maven.plugins</groupId>
180
        <artifactId>maven-compiler-plugin</artifactId>
181
        <version>3.3</version>
182
        <configuration>
183
          <source>${maven.compiler.source}</source>
184
          <target>${maven.compiler.target}</target>
185
          <encoding>UTF-8</encoding>
186
        </configuration>
187
      </plugin>
188
      <plugin>
189
        <groupId>org.apache.maven.plugins</groupId>
190
        <artifactId>maven-surefire-plugin</artifactId>
191
        <version>2.19.1</version>
192
        <configuration>
193
          <argLine>-Xms256m -Xmx512m</argLine>
194
        </configuration>
195
      </plugin>
196
      <!-- As we are doing "inplace" GWT compilation, ensure the widgetset -->
197
      <!-- directory is cleaned properly -->
198
      <plugin>
199
        <artifactId>maven-clean-plugin</artifactId>
200
        <version>2.4.1</version>
201
        <configuration>
202
          <filesets>
203
            <fileset>
204
              <directory>src/main/webapp/VAADIN/widgetsets</directory>
205
            </fileset>
206
          </filesets>
207
        </configuration>
208
      </plugin>
209
      <plugin>
210
        <groupId>org.apache.maven.plugins</groupId>
211
        <artifactId>maven-javadoc-plugin</artifactId>
212
        <version>2.9.1</version>
213
        <configuration>
214
          <additionalparam>${javadoc.opts}</additionalparam>
215
        </configuration>
216
      </plugin>
217
      <plugin>
218
        <groupId>org.apache.maven.plugins</groupId>
219
        <artifactId>maven-war-plugin</artifactId>
220
        <version>2.2</version>
221
        <configuration>
222
          <failOnMissingWebXml>false</failOnMissingWebXml>
223
          <warSourceExcludes>WEB-INF/*,WEB-INF/datasources/*</warSourceExcludes>
224
        </configuration>
225
      </plugin>
226
      <plugin>
227
        <groupId>com.vaadin</groupId>
228
        <artifactId>vaadin-maven-plugin</artifactId>
229
        <version>${vaadin.plugin.version}</version>
230
        <configuration>
231
          <extraJvmArgs>-Xmx512M -Xss1024k</extraJvmArgs>
232
          <!-- We are doing "inplace" but into subdir VAADIN/widgetsets. 
233
            This way compatible with Vaadin eclipse plugin. -->
234
          <webappDirectory>${basedir}/src/main/webapp/VAADIN/widgetsets</webappDirectory>
235
          <hostedWebapp>${basedir}/src/main/webapp/VAADIN/widgetsets</hostedWebapp>
236
          <!-- Most Vaadin apps don't need this stuff, guide that to target -->
237
          <persistentunitcachedir>${project.build.directory}</persistentunitcachedir>
238
          <deploy>${project.build.directory}/gwt-deploy</deploy>
239
          <!-- Compile report is not typically needed either, saves hunreds 
240
            of mb disk -->
241
          <compileReport>false</compileReport>
242
          <noServer>true</noServer>
243
          <!-- Remove draftCompile when project is ready -->
244
          <draftCompile>false</draftCompile>
245
          <style>OBF</style>
246
          <runTarget>http://localhost:8080/</runTarget>
247
        </configuration>
248
        <executions>
249
          <execution>
250
            <configuration>
251
              <!-- if you don't specify any modules, the plugin will find 
252
                them -->
253
              <!-- <modules> <module>com.vaadin.demo.mobilemail.gwt.ColorPickerWidgetSet</module> 
254
                </modules> -->
255
            </configuration>
256
            <goals>
257
              <goal>clean</goal>
258
              <goal>resources</goal>
259
              <goal>update-theme</goal>
260
              <goal>update-widgetset</goal>
261
              <goal>compile-theme</goal>
262
              <goal>compile</goal>
263
            </goals>
264
          </execution>
265
        </executions>
266
      </plugin>
267
      <plugin>
268
        <groupId>org.eclipse.jetty</groupId>
269
        <artifactId>jetty-maven-plugin</artifactId>
270
        <version>9.4.0.RC1</version>
271
        <!--  
272
            NOTE:
273
            9.4.0.RC1 requires jdk 1.8, formerly we've been using version 9.1.3.v20140225 which was 
274
            the last version compatible to java 7, but this was causing other problems related to asm
275
            which could not be easily solved.
276
        -->
277
        <configuration>
278
          <useTestScope>true</useTestScope>
279
          <scanIntervalSeconds>2</scanIntervalSeconds>
280
          <systemProperties>
281
            <force>true</force>
282
            <systemProperty>
283
              <name>cdm.datasource</name>
284
              <value>h2_cdmTest</value>
285
            </systemProperty>
286
            <systemProperty>
287
              <!-- 
288
                The lucene index should be placed into the target folder, 
289
                so user.home needs to be set to this folder. user.home needs to be overridden 
290
                since it already exists, thus the force option is turned on above 
291
              -->
292
              <name>user.home</name>
293
              <value>${basedir}/target/</value>
294
            </systemProperty>
295
            <systemProperty>
296
              <!-- 
297
                datasources.xml is prepared by <plugins><resources>..</resources> above 
298
               -->
299
              <name>cdm.beanDefinitionFile</name>
300
              <value>${project.build.directory}/test-classes/datasources.xml</value>
301
            </systemProperty>
302
            <systemProperty>
303
              <name>log4j.configuration</name>
304
              <value>file:///home/andreas/.cdmLibrary/log4j.properties</value>
305
            </systemProperty>
306
          </systemProperties>
307
        </configuration>
308
        <dependencies>
309
          <dependency>
310
            <groupId>org.slf4j</groupId>
311
            <artifactId>slf4j-log4j12</artifactId>
312
            <version>1.6.4</version>
313
          </dependency>
314
        </dependencies>
315
      </plugin>
316
      <plugin>
317
        <groupId>org.apache.maven.plugins</groupId>
318
        <artifactId>maven-failsafe-plugin</artifactId>
319
        <version>2.17</version>
320
        <configuration>
321
          <!-- Remove the skipTests line below to run TestBench tests -->
322
          <!-- <skipTests>true</skipTests> -->
323
        </configuration>
324
        <executions>
325
          <execution>
326
            <goals>
327
              <goal>integration-test</goal>
328
              <goal>verify</goal>
329
            </goals>
330
          </execution>
331
        </executions>
332
      </plugin>
333
      <plugin>
334
        <groupId>external.atlassian.jgitflow</groupId>
335
        <artifactId>jgitflow-maven-plugin</artifactId>
336
        <version>1.0-m6</version>
337
        <configuration>
338
          <pushHotfixes>true</pushHotfixes>
339
          <pushReleases>true</pushReleases>
340
          <enableSshAgent>true</enableSshAgent>
341
          <allowSnapshots>true</allowSnapshots>
342
          <allowUntracked>true</allowUntracked>
343
        </configuration>
344
        <dependencies>
345
          <!-- upgrading dependency jsch.agent.version of jgit-flow plugin 
346
            to 0.1.53 in order have ssl key exchange algorithms compatible with openssh 
347
            6.7 -->
348
          <dependency>
349
            <groupId>com.jcraft</groupId>
350
            <artifactId>jsch</artifactId>
351
            <version>0.1.53</version>
352
          </dependency>
353
        </dependencies>
354
      </plugin>
355
    </plugins>
356
    <extensions>
357
      <extension>
358
        <groupId>org.apache.maven.wagon</groupId>
359
        <artifactId>wagon-scm</artifactId>
360
        <version>1.0-beta-6</version>
361
      </extension>
362
      <extension>
363
        <groupId>org.apache.maven.wagon</groupId>
364
        <artifactId>wagon-ssh</artifactId>
365
        <version>1.0-beta-6</version>
366
      </extension>
367
      <extension>
368
        <groupId>org.apache.maven.wagon</groupId>
369
        <artifactId>wagon-ssh-external</artifactId>
370
        <version>1.0-beta-6</version>
371
      </extension>
372
      <extension>
373
        <groupId>org.apache.maven.scm</groupId>
374
        <artifactId>maven-scm-manager-plexus</artifactId>
375
        <version>1.0</version>
376
      </extension>
377
      <extension>
378
        <groupId>org.apache.maven.scm</groupId>
379
        <artifactId>maven-scm-provider-svnexe</artifactId>
380
        <version>1.0</version>
381
      </extension>
382
      <!-- WebDAV plugin to upload snapshots -->
383
      <extension>
384
        <groupId>org.apache.maven.wagon</groupId>
385
        <artifactId>wagon-webdav</artifactId>
386
        <version>1.0-beta-2</version>
387
      </extension>
388
    </extensions>
389
    <pluginManagement>
390
      <plugins>
391
        <plugin>
392
          <artifactId>maven-eclipse-plugin</artifactId>
393
          <configuration>
394
            <wtpversion>2.0</wtpversion>
395
            <additionalProjectnatures>
396
              <projectnature>com.vaadin.integration.eclipse.widgetsetNature</projectnature>
397
            </additionalProjectnatures>
398
            <additionalBuildcommands>
399
              <buildcommand>com.vaadin.integration.eclipse.widgetsetBuilder</buildcommand>
400
              <buildcommand>com.vaadin.integration.eclipse.addonStylesBuilder</buildcommand>
401
            </additionalBuildcommands>
402
          </configuration>
403
        </plugin>
404
      </plugins>
405
    </pluginManagement>
406
  </build>
407
  <dependencies>
408
    <!-- ============ Vaadin ============ -->
409
    <dependency>
410
      <groupId>com.vaadin</groupId>
411
      <artifactId>vaadin-spring</artifactId>
412
      <version>${vaadin-spring.version}</version>
413
    </dependency>
414
    <dependency>
415
      <groupId>org.vaadin.spring.addons</groupId>
416
      <artifactId>vaadin-spring-addon-eventbus</artifactId>
417
      <version>${vaadin-spring-addon-eventbus.version}</version>
418
    </dependency>
419
    <dependency>
420
      <groupId>com.vaadin</groupId>
421
      <artifactId>vaadin-server</artifactId>
422
    </dependency>
423
    <dependency>
424
      <groupId>com.vaadin</groupId>
425
      <artifactId>vaadin-client-compiled</artifactId>
426
    </dependency>
427
    <!-- Needed when using the widgetset optimizer (custom ConnectorBundleLoaderFactory). 
428
      For widgetset compilation, vaadin-client-compiler is automatically added 
429
      on the compilation classpath by vaadin-maven-plugin so normally there is 
430
      no need for an explicit dependency. -->
431
    <!-- <dependency> <groupId>com.vaadin</groupId> <artifactId>vaadin-client-compiler</artifactId> 
432
      <version>${vaadin.version}</version> <scope>provided</scope> </dependency> -->
433
    <dependency>
434
      <groupId>com.vaadin</groupId>
435
      <artifactId>vaadin-client</artifactId>
436
      <scope>test</scope>
437
      <exclusions>
438
        <exclusion>
439
          <groupId>javax.validation</groupId>
440
          <artifactId>validation-api</artifactId>
441
        </exclusion>
442
      </exclusions>
443
    </dependency>
444
    <!-- disabling push for the moment because it does not work with run-jetty-run 
445
      due to the fact that the latest (even nightly) version of run-jetty-run uses 
446
      9.0.0 M3 which is incompatible with atmoshpere. this does work with the jetty 
447
      included in this pom which is 9.2.5.xx, implying that enabling the dependency 
448
      and running the web app via 'mvn jetty:run' works fine. -->
449
    <!-- <dependency> -->
450
    <!-- <groupId>com.vaadin</groupId> -->
451
    <!-- <artifactId>vaadin-push</artifactId> -->
452
    <!-- <version>${vaadin.version}</version> -->
453
    <!-- </dependency> -->
454
    <dependency>
455
      <groupId>com.vaadin</groupId>
456
      <artifactId>vaadin-themes</artifactId>
457
    </dependency>
458
    <dependency>
459
      <groupId>com.vaadin</groupId>
460
      <artifactId>vaadin-testbench-api</artifactId>
461
      <version>RELEASE</version>
462
      <scope>test</scope>
463
    </dependency>
464
    <!-- vaadin addons / extensions -->
465
    <dependency>
466
      <groupId>org.vaadin.addons</groupId>
467
      <artifactId>contextmenu</artifactId>
468
      <version>4.5</version>
469
    </dependency>
470
    <dependency>
471
      <groupId>org.vaadin.teemu</groupId>
472
      <artifactId>switch</artifactId>
473
      <version>2.0.4-SNAPSHOT</version>
474
    </dependency>
475
    <dependency>
476
      <groupId>org.vaadin</groupId>
477
      <artifactId>viritin</artifactId>
478
      <version>1.61</version>
479
    </dependency>
480
    <dependency>
481
      <groupId>org.vaadin.addon</groupId>
482
      <artifactId>v-leaflet</artifactId>
483
      <version>1.0.3</version>
484
    </dependency>
485
    <dependency>
486
      <groupId>org.vaadin.addons.lazyquerycontainer</groupId>
487
      <artifactId>vaadin-lazyquerycontainer</artifactId>
488
      <version>7.6.1.3</version>
489
    </dependency>
490
    <dependency>
491
      <groupId>com.flowingcode.vaadin.addons</groupId>
492
      <artifactId>error-window-vaadin</artifactId>
493
      <version>1.0.0</version>
494
    </dependency>
495
    <!-- 
496
    <dependency>
497
        <groupId>org.vaadin.spring.extensions</groupId>
498
        <artifactId>vaadin-spring-ext-test</artifactId>
499
        <version>0.0.8-SNAPSHOT</version>
500
        <scope>test</scope>
501
    </dependency>
502
     -->
503
    <!--     <dependency>
504
        only in the edit repo
505
      <groupId>org.vaadin.addons</groupId>
506
      <artifactId>lazyloadwrapper</artifactId>
507
      <version>0.1-alpha</version>
508
    </dependency> -->
509
    <!-- ============ cdmlib ============ -->
510
    <dependency>
511
      <groupId>eu.etaxonomy</groupId>
512
      <artifactId>cdmlib-remote</artifactId>
513
      <scope>compile</scope>
514
    </dependency>
515
    <dependency>
516
      <groupId>eu.etaxonomy</groupId>
517
      <artifactId>cdmlib-cache</artifactId>
518
      <version>${cdmlib.version}</version>
519
    </dependency>
520
    <dependency>
521
      <groupId>eu.etaxonomy</groupId>
522
      <artifactId>cdmlib-test</artifactId>
523
      <scope>test</scope>
524
    </dependency>
525
    <dependency>
526
      <groupId>eu.etaxonomy</groupId>
527
      <artifactId>cdmlib-db</artifactId>
528
      <version>${cdmlib.version}</version>
529
      <scope>test</scope>
530
    </dependency>
531
    <!-- ============ Other ============ -->
532
    <!-- 
533
        to override version number coming with vaadin client 
534
        version is managed in cdmlib-parent
535
    -->
536
    <dependency>
537
      <groupId>javax.validation</groupId>
538
      <artifactId>validation-api</artifactId>
539
    </dependency>
540
    <dependency>
541
      <groupId>org.springmodules</groupId>
542
      <artifactId>spring-modules-cache</artifactId>
543
      <version>0.7</version>
544
      <exclusions>
545
        <exclusion>
546
          <groupId>org.springframework</groupId>
547
          <artifactId>spring</artifactId>
548
        </exclusion>
549
        <exclusion>
550
          <groupId>org.springframework</groupId>
551
          <artifactId>spring-mock</artifactId>
552
        </exclusion>
553
      </exclusions>
554
      <scope>test</scope>
555
    </dependency>
556
    <dependency>
557
      <groupId>org.springframework</groupId>
558
      <artifactId>spring-mock</artifactId>
559
      <version>2.0.8</version>
560
      <scope>test</scope>
561
    </dependency>
562
    <dependency>
563
      <groupId>org.json</groupId>
564
      <artifactId>json</artifactId>
565
    </dependency>
566
    <dependency>
567
      <groupId>javax.servlet</groupId>
568
      <artifactId>javax.servlet-api</artifactId>
569
      <scope>provided</scope>
570
    </dependency>
571
  </dependencies>
572
</project>
(3-3/3)