Project

General

Profile

Download (9.73 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/xsd/maven-4.0.0.xsd">
3
  <modelVersion>4.0.0</modelVersion>
4
  <parent>
5
    <artifactId>cdmlib-parent</artifactId>
6
    <groupId>eu.etaxonomy</groupId>
7
    <version>3.5.0</version>
8
    <relativePath>../pom.xml</relativePath>
9
  </parent>
10

    
11
  <groupId>eu.etaxonomy</groupId>
12
  <artifactId>cdmlib-remote-webapp</artifactId>
13
  <name>CDM Remote Webapp</name>
14
  <packaging>war</packaging>
15

    
16
  <properties>
17
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
18
  </properties>
19

    
20
  <scm>
21
    <connection>
22
      scm:svn:http://dev.e-taxonomy.eu/svn/tags/cdmlib/cdmlib-parent-3.5.0/cdmlib-remote
23
    </connection>
24
    <developerConnection>
25
      scm:svn:http://dev.e-taxonomy.eu/svn/tags/cdmlib/cdmlib-parent-3.5.0/cdmlib-remote
26
    </developerConnection>
27
    <url>
28
      scm:svn:http://dev.e-taxonomy.eu/svn/tags/cdmlib/cdmlib-parent-3.5.0/cdmlib-remote
29
    </url>
30
  </scm>
31

    
32
  <profiles>
33
    <profile>
34
      <id>local-repository</id>
35
      <activation>
36
        <property>
37
          <name>localrepo</name>
38
        </property>
39
      </activation>
40
      <repositories>
41
        <repository>
42
          <id>EditLocalRepository</id>
43
          <url>file://${localrepo}/eu/etaxonomy/</url>
44
          <releases>
45
            <enabled>false</enabled>
46
            <updatePolicy>always</updatePolicy>
47
          </releases>
48
          <snapshots>
49
            <enabled>true</enabled>
50
            <updatePolicy>always</updatePolicy>
51
          </snapshots>
52
        </repository>
53
      </repositories>
54
    </profile>
55
  </profiles>
56

    
57
  <dependencies>
58
    <dependency>
59
      <groupId>eu.etaxonomy</groupId>
60
      <artifactId>cdmlib-remote</artifactId>
61
    </dependency>
62
    <dependency>
63
      <!-- TODO this is also offered by cdmlib-remote, can it be removed?
64
        What does provided mean? -->
65
      <groupId>javax.servlet</groupId>
66
      <artifactId>javax.servlet-api</artifactId>
67
      <scope>provided</scope>
68
    </dependency>
69

    
70
    <dependency>
71
      <groupId>org.easymock</groupId>
72
      <artifactId>easymock</artifactId>
73
    </dependency>
74
    <dependency>
75
      <groupId>xmlunit</groupId>
76
      <artifactId>xmlunit</artifactId>
77
    </dependency>
78

    
79
    <dependency>
80
      <groupId>commons-io</groupId>
81
      <artifactId>commons-io</artifactId>
82
    </dependency>
83
    <!-- JsonView -->
84
    <dependency>
85
      <!-- TODO can this be removed, it already exists in cdmlib-remote -->
86
      <groupId>net.sf.json-lib</groupId>
87
      <artifactId>json-lib</artifactId>
88
      <classifier>jdk15</classifier>
89
    </dependency>
90

    
91
    <!-- Profiling -->
92
    <dependency>
93
      <groupId>org.springframework</groupId>
94
      <artifactId>org.springframework.oxm</artifactId>
95
      <version>${spring.version}</version>
96
    </dependency>
97

    
98
    <!-- XmlView -->
99
    <dependency>
100
      <groupId>com.thoughtworks.xstream</groupId>
101
      <artifactId>xstream</artifactId>
102
    </dependency>
103
    <dependency>
104
      <groupId>xpp3</groupId>
105
      <artifactId>xpp3</artifactId>
106
    </dependency>
107
    <dependency>
108
      <groupId>stax</groupId>
109
      <artifactId>stax</artifactId>
110
    </dependency>
111

    
112
    <!-- JSP TAG LIBS -->
113
    <dependency>
114
      <groupId>taglibs</groupId>
115
      <artifactId>standard</artifactId>
116
      <version>1.1.2</version>
117
    </dependency>
118
    <dependency>
119
      <groupId>taglibs</groupId>
120
      <artifactId>x</artifactId>
121
      <version>1.1.2</version>
122
      <type>tld</type>
123
    </dependency>
124
    <!-- Connection Pooling -->
125
    <dependency>
126
      <groupId>org.hibernate</groupId>
127
      <artifactId>hibernate-c3p0</artifactId>
128
    </dependency>
129
    <!-- swagger -->
130
    <dependency>
131
      <groupId>com.mangofactory</groupId>
132
      <artifactId>swagger-springmvc</artifactId>
133
      <version>0.8.5</version>
134
    </dependency>
135
    <!-- dependencies for swagger-springmvc, added explicitely -->
136
    <dependency>
137
      <groupId>com.fasterxml.jackson.core</groupId>
138
      <artifactId>jackson-databind</artifactId>
139
    </dependency>
140
    <dependency>
141
      <groupId>com.fasterxml.jackson.core</groupId>
142
      <artifactId>jackson-core</artifactId>
143
    </dependency>
144
    <dependency>
145
      <groupId>com.fasterxml.jackson.core</groupId>
146
      <artifactId>jackson-annotations</artifactId>
147
    </dependency>
148
    <!-- END of dependencies for swagger-springmvc, added explicitely -->
149
    <!-- testing -->
150
  <dependency>
151
      <groupId>junit</groupId>
152
      <artifactId>junit</artifactId>
153
      <scope>test</scope>
154
    </dependency>
155
    <dependency>
156
      <groupId>com.yourkit</groupId>
157
      <artifactId>yjp-controller-api-redist</artifactId>
158
      <scope>test</scope>
159
    </dependency>
160
  </dependencies>
161

    
162
  <build>
163
    <resources>
164
      <!-- ${basedir}/src/test/resources -->
165
      <resource>
166
        <!-- replace the place holders like ${...} in datasources.xml -->
167
        <targetPath>${project.build.directory}/test-classes</targetPath>
168
        <filtering>true</filtering>
169
        <directory>${basedir}/src/test/resources</directory>
170
        <includes>
171
          <include>datasources.xml</include>
172
        </includes>
173
      </resource>
174
      <resource>
175
        <!-- all other test resources without filtering -->
176
        <targetPath>${project.build.directory}/test-classes</targetPath>
177
        <directory>${basedir}/src/test/resources</directory>
178
        <excludes>
179
          <exclude>datasources.xml</exclude>
180
        </excludes>
181
      </resource>
182
      <resource>
183
        <!-- all main resources without filtering -->
184
        <targetPath>${project.build.directory}/classes</targetPath>
185
        <directory>${basedir}/src/main/resources</directory>
186
      </resource>
187
    </resources>
188
    <plugins>
189
      <plugin>
190
        <groupId>org.apache.maven.plugins</groupId>
191
        <artifactId>maven-war-plugin</artifactId>
192
        <version>2.3</version>
193
        <configuration>
194
          <webResources>
195
            <resource>
196
              <!-- this is relative to the pom.xml directory -->
197
              <directory>${project.build.directory}/cdm-vaadin</directory>
198
            </resource>
199
          </webResources>
200
        </configuration>
201
      </plugin>
202
      <plugin>
203
        <artifactId>maven-failsafe-plugin</artifactId>
204
        <version>2.16</version>
205
        <configuration>
206
          <forkCount>3</forkCount>
207
          <reuseForks>true</reuseForks>
208
        </configuration>
209
        <executions>
210
          <execution>
211
            <goals>
212
              <goal>integration-test</goal>
213
              <goal>verify</goal>
214
            </goals>
215
          </execution>
216
        </executions>
217
      </plugin>
218
      <plugin>
219
        <groupId>org.eclipse.jetty</groupId>
220
        <artifactId>jetty-maven-plugin</artifactId>
221
        <version>9.1.3.v20140225</version>
222
        <configuration>
223
          <stopKey>stop</stopKey>
224
          <stopPort>9199</stopPort>
225
          <scanIntervalSeconds>10</scanIntervalSeconds>
226
          <jettyXml>${basedir}/src/test/resources/etc/jetty/jetty.xml,${basedir}/src/test/resources/etc/jetty/jetty-http.xml</jettyXml>
227
          <!-- <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> -->
228
          <systemProperties>
229
            <systemProperty>
230
              <name>cdm.datasource</name>
231
              <value>h2_cdmTest</value>
232
            </systemProperty>
233
            <systemProperty>
234
              <!-- datasources.xml is prepared by <plugins><resources>..</resources>
235
                above -->
236
              <name>cdm.beanDefinitionFile</name>
237
              <value>${project.build.directory}/test-classes/datasources.xml</value>
238
            </systemProperty>
239
          </systemProperties>
240
        </configuration>
241
        <executions>
242
          <execution>
243
            <id>start-jetty</id>
244
            <phase>pre-integration-test</phase>
245
            <goals>
246
              <goal>start</goal>
247
            </goals>
248
            <configuration>
249
              <scanIntervalSeconds>0</scanIntervalSeconds>
250
              <daemon>true</daemon>
251
            </configuration>
252
          </execution>
253
          <execution>
254
            <id>stop-jetty</id>
255
            <phase>post-integration-test</phase>
256
            <goals>
257
              <goal>stop</goal>
258
            </goals>
259
          </execution>
260
        </executions>
261
      </plugin>
262
      <plugin>
263
        <groupId>org.apache.maven.plugins</groupId>
264
        <artifactId>maven-dependency-plugin</artifactId>
265
        <version>2.9</version>
266
        <executions>
267
          <execution>
268
            <id>unpack</id>
269
            <phase>prepare-package</phase>
270
            <goals>
271
              <goal>unpack</goal>
272
            </goals>
273
            <configuration>
274
              <artifactItems>
275
                <artifactItem>
276
                  <groupId>eu.etaxonomy</groupId>
277
                  <artifactId>cdm-vaadin</artifactId>
278
                  <version>${cdm-vaadin.version}</version>
279
                  <type>war</type>
280
                  <overWrite>true</overWrite>
281
                  <outputDirectory>${project.build.directory}/cdm-vaadin</outputDirectory>
282
                  <!-- <destFileName>optional-new-name.jar</destFileName> -->
283
                  <!-- <includes>**/*.class,**/*.xml</includes> -->
284
                  <excludes>META-INF/**</excludes>
285
                </artifactItem>
286
              </artifactItems>
287
              <!-- <includes>**/*.java</includes> -->
288
              <!-- <excludes>**/*.properties</excludes> -->
289
              <!-- <outputDirectory>${project.build.directory}/wars</outputDirectory> -->
290
              <overWriteReleases>false</overWriteReleases>
291
              <overWriteSnapshots>true</overWriteSnapshots>
292
            </configuration>
293
          </execution>
294
        </executions>
295
      </plugin>
296
    </plugins>
297
  </build>
298
</project>
(3-3/3)