Project

General

Profile

Download (8.79 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.13.0-SNAPSHOT</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/trunk/cdmlib/cdmlib-remote/
23
    </connection>
24
    <developerConnection>
25
      scm:svn:https://dev.e-taxonomy.eu/svn/trunk/cdmlib/cdmlib-remote/
26
    </developerConnection>
27
    <url>
28
      http://dev.e-taxonomy.eu/trac/browser/trunk/cdmlib/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
      <exclusions>
62
        <!-- 
63
            exclude all jdbc drivers from the war. 
64
            Jdbc drivers must only be added to {APPLICATION_CONTAINER}/lib
65
            see http://dev.e-taxonomy.eu/trac/ticket/4955 
66
            and http://stackoverflow.com/questions/6981564/why-must-the-jdbc-driver-be-put-in-tomcat-home-lib-folder
67
         -->
68
        <exclusion>
69
          <artifactId>postgresql</artifactId>
70
          <groupId>postgresql</groupId>
71
        </exclusion>
72
        <exclusion>
73
          <artifactId>mysql-connector-java</artifactId>
74
          <groupId>mysql</groupId>
75
        </exclusion>
76
        <exclusion>
77
          <artifactId>c3p0</artifactId>
78
          <groupId>com.mchange</groupId>
79
        </exclusion>
80
        <exclusion>
81
            <groupId>oracle</groupId>
82
            <artifactId>ojdbc14</artifactId>
83
        </exclusion>
84
        <exclusion>
85
            <groupId>net.sourceforge.jtds</groupId>
86
            <artifactId>jtds</artifactId>         
87
        </exclusion>
88
      </exclusions>
89
    </dependency>
90
    <dependency>
91
      <!-- TODO this is also offered by cdmlib-remote, can it be removed?
92
        What does provided mean? -->
93
      <groupId>javax.servlet</groupId>
94
      <artifactId>javax.servlet-api</artifactId>
95
      <scope>provided</scope>
96
    </dependency>
97

    
98
    <dependency>
99
      <groupId>xmlunit</groupId>
100
      <artifactId>xmlunit</artifactId>
101
    </dependency>
102

    
103
    <dependency>
104
      <groupId>commons-io</groupId>
105
      <artifactId>commons-io</artifactId>
106
    </dependency>
107
    <!-- JsonView -->
108
    <dependency>
109
      <!-- TODO can this be removed, it already exists in cdmlib-remote -->
110
      <groupId>net.sf.json-lib</groupId>
111
      <artifactId>json-lib</artifactId>
112
      <classifier>jdk15</classifier>
113
    </dependency>
114

    
115
    <!-- Profiling -->
116
    <dependency>
117
      <groupId>org.springframework</groupId>
118
      <artifactId>org.springframework.oxm</artifactId>
119
      <version>${spring.version}</version>
120
    </dependency>
121

    
122
    <!-- XmlView -->
123
    <dependency>
124
      <groupId>com.thoughtworks.xstream</groupId>
125
      <artifactId>xstream</artifactId>
126
    </dependency>
127
    <dependency>
128
      <groupId>xpp3</groupId>
129
      <artifactId>xpp3</artifactId>
130
    </dependency>
131
    <dependency>
132
      <groupId>stax</groupId>
133
      <artifactId>stax</artifactId>
134
    </dependency>
135

    
136
    <!-- JSP TAG LIBS -->
137
    <dependency>
138
      <groupId>taglibs</groupId>
139
      <artifactId>standard</artifactId>
140
      <version>1.1.2</version>
141
    </dependency>
142
    <dependency>
143
      <groupId>taglibs</groupId>
144
      <artifactId>x</artifactId>
145
      <version>1.1.2</version>
146
      <type>tld</type>
147
    </dependency>
148
    <!-- swagger -->
149
    <dependency>
150
      <groupId>com.mangofactory</groupId>
151
      <artifactId>swagger-springmvc</artifactId>
152
    </dependency>
153
    <!-- dependencies for swagger-springmvc, added explicitely -->
154
    <dependency>
155
      <groupId>com.fasterxml.jackson.core</groupId>
156
      <artifactId>jackson-databind</artifactId>
157
    </dependency>
158
    <dependency>
159
      <groupId>com.fasterxml.jackson.core</groupId>
160
      <artifactId>jackson-core</artifactId>
161
    </dependency>
162
    <dependency>
163
      <groupId>com.fasterxml.jackson.core</groupId>
164
      <artifactId>jackson-annotations</artifactId>
165
    </dependency>
166
    <!-- END of dependencies for swagger-springmvc, added explicitely -->
167
    <!-- testing -->
168
  <dependency>
169
      <groupId>junit</groupId>
170
      <artifactId>junit</artifactId>
171
      <scope>test</scope>
172
    </dependency>
173
    <dependency>
174
      <groupId>com.yourkit</groupId>
175
      <artifactId>yjp-controller-api-redist</artifactId>
176
      <scope>test</scope>
177
    </dependency>
178
    <!-- Connection Pooling and jdbc -->
179
    <dependency>
180
      <groupId>org.hibernate</groupId>
181
      <artifactId>hibernate-c3p0</artifactId>
182
      <scope>test</scope>
183
    </dependency>
184
    <dependency>
185
        <artifactId>c3p0</artifactId>
186
        <groupId>com.mchange</groupId>
187
    </dependency>
188
  </dependencies>
189

    
190
  <build>
191
    <resources>
192
      <!-- ${basedir}/src/test/resources -->
193
      <resource>
194
        <!-- replace the place holders like ${...} in datasources.xml -->
195
        <targetPath>${project.build.directory}/test-classes</targetPath>
196
        <filtering>true</filtering>
197
        <directory>${basedir}/src/test/resources</directory>
198
        <includes>
199
          <include>datasources.xml</include>
200
        </includes>
201
      </resource>
202
      <resource>
203
        <!-- all other test resources without filtering -->
204
        <targetPath>test-classes</targetPath>
205
        <directory>${basedir}/src/test/resources</directory>
206
        <excludes>
207
          <exclude>datasources.xml</exclude>
208
        </excludes>
209
      </resource>
210
      <resource>
211
        <!-- all main resources without filtering -->
212
        <targetPath>classes</targetPath>
213
        <directory>${basedir}/src/test/resources</directory>
214
      </resource>
215
    </resources>
216
    <plugins>
217
      <plugin>
218
        <artifactId>maven-failsafe-plugin</artifactId>
219
        <version>2.16</version>
220
        <configuration>
221
          <forkCount>3</forkCount>
222
          <reuseForks>true</reuseForks>
223
        </configuration>
224
        <executions>
225
          <execution>
226
            <goals>
227
              <goal>integration-test</goal>
228
              <goal>verify</goal>
229
            </goals>
230
          </execution>
231
        </executions>
232
      </plugin>
233
      <plugin>
234
        <groupId>org.eclipse.jetty</groupId>
235
        <artifactId>jetty-maven-plugin</artifactId>
236
        <version>9.1.3.v20140225</version>
237
        <configuration>
238
          <stopKey>stop</stopKey>
239
          <stopPort>9199</stopPort>
240
          <scanIntervalSeconds>10</scanIntervalSeconds>
241
          <jettyXml>${basedir}/src/test/resources/etc/jetty/jetty.xml,${basedir}/src/test/resources/etc/jetty/jetty-http.xml</jettyXml>
242
          <!-- <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> -->
243
          <systemProperties>
244
            <systemProperty>
245
              <name>cdm.datasource</name>
246
              <value>h2_cdmTest</value>
247
            </systemProperty>
248
            <systemProperty>
249
              <!-- datasources.xml is prepared by <plugins><resources>..</resources>
250
                above -->
251
              <name>cdm.beanDefinitionFile</name>
252
              <value>${project.build.directory}/test-classes/datasources.xml</value>
253
            </systemProperty>
254
          </systemProperties>
255
        </configuration>
256
        <executions>
257
          <execution>
258
            <id>start-jetty</id>
259
            <phase>pre-integration-test</phase>
260
            <goals>
261
              <goal>start</goal>
262
            </goals>
263
            <configuration>
264
              <scanIntervalSeconds>0</scanIntervalSeconds>
265
              <daemon>true</daemon>
266
            </configuration>
267
          </execution>
268
          <execution>
269
            <id>stop-jetty</id>
270
            <phase>post-integration-test</phase>
271
            <goals>
272
              <goal>stop</goal>
273
            </goals>
274
          </execution>
275
        </executions>
276
      </plugin>
277
    </plugins>
278
  </build>
279
</project>
(4-4/4)