Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

cdmlib / cdmlib-remote-webapp / pom.xml @ a2d9b7ba

History | View | Annotate | Download (8.87 KB)

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.8.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
      <version>0.8.5</version>
153
    </dependency>
154
    <!-- dependencies for swagger-springmvc, added explicitely -->
155
    <dependency>
156
      <groupId>com.fasterxml.jackson.core</groupId>
157
      <artifactId>jackson-databind</artifactId>
158
    </dependency>
159
    <dependency>
160
      <groupId>com.fasterxml.jackson.core</groupId>
161
      <artifactId>jackson-core</artifactId>
162
    </dependency>
163
    <dependency>
164
      <groupId>com.fasterxml.jackson.core</groupId>
165
      <artifactId>jackson-annotations</artifactId>
166
    </dependency>
167
    <!-- END of dependencies for swagger-springmvc, added explicitely -->
168
    <!-- testing -->
169
  <dependency>
170
      <groupId>junit</groupId>
171
      <artifactId>junit</artifactId>
172
      <scope>test</scope>
173
    </dependency>
174
    <dependency>
175
      <groupId>com.yourkit</groupId>
176
      <artifactId>yjp-controller-api-redist</artifactId>
177
      <scope>test</scope>
178
    </dependency>
179
    <!-- Connection Pooling and jdbc -->
180
    <dependency>
181
      <groupId>org.hibernate</groupId>
182
      <artifactId>hibernate-c3p0</artifactId>
183
      <scope>test</scope>
184
    </dependency>
185
    <dependency>
186
        <artifactId>c3p0</artifactId>
187
        <groupId>com.mchange</groupId>
188
    </dependency>
189
  </dependencies>
190

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