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