Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

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

History | View | Annotate | Download (9.96 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>4.14.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
  <scm>
20
    <connection>scm:git:https://dev.e-taxonomy.eu/git/cdmlib-remote-webapp.git</connection>
21
    <developerConnection>scm:git:ssh://git@dev.e-taxonomy.eu/var/git/cdmlib-remote-webapp.git</developerConnection>
22
    <url>https://dev.e-taxonomy.eu/gitweb/cdmlib.git/tree/HEAD:/cdmlib-remote-webapp/</url>
23
  </scm>
24

    
25
  <profiles>
26
    <profile>
27
      <id>local-repository</id>
28
      <activation>
29
        <property>
30
          <name>localrepo</name>
31
        </property>
32
      </activation>
33
      <repositories>
34
        <repository>
35
          <id>EditLocalRepository</id>
36
          <url>file://${localrepo}/eu/etaxonomy/</url>
37
          <releases>
38
            <enabled>false</enabled>
39
            <updatePolicy>always</updatePolicy>
40
          </releases>
41
          <snapshots>
42
            <enabled>true</enabled>
43
            <updatePolicy>always</updatePolicy>
44
          </snapshots>
45
        </repository>
46
      </repositories>
47
    </profile>
48
  </profiles>
49

    
50
  <dependencies>
51
    <dependency>
52
      <groupId>eu.etaxonomy</groupId>
53
      <artifactId>cdmlib-remote</artifactId>
54
      <exclusions>
55
        <!-- 
56
            exclude all jdbc drivers from the war. 
57
            Jdbc drivers must only be added to {APPLICATION_CONTAINER}/lib
58
            see http://dev.e-taxonomy.eu/trac/ticket/4955 
59
            and http://stackoverflow.com/questions/6981564/why-must-the-jdbc-driver-be-put-in-tomcat-home-lib-folder
60
         -->
61
        <exclusion>
62
            <groupId>eu.etaxonomy</groupId>
63
            <artifactId>cdmlib-db</artifactId>
64
        </exclusion>
65
      </exclusions>
66
    </dependency>
67
    <dependency>
68
      <groupId>commons-io</groupId>
69
      <artifactId>commons-io</artifactId>
70
    </dependency>
71
    <dependency>
72
        <groupId>eu.etaxonomy</groupId>
73
        <artifactId>cdmlib-test</artifactId>      
74
        <scope>test</scope>
75
    </dependency>
76
    <dependency>
77
      <!-- TODO this is also offered by cdmlib-remote, can it be removed?
78
        What does provided mean? -->
79
      <groupId>javax.servlet</groupId>
80
      <artifactId>javax.servlet-api</artifactId>
81
      <scope>provided</scope>
82
    </dependency>
83

    
84
    <dependency>
85
      <groupId>xmlunit</groupId>
86
      <artifactId>xmlunit</artifactId>
87
    </dependency>
88
    <!-- JsonView -->
89
    <!-- 
90
     -->
91
    <dependency>
92
      <groupId>org.springframework</groupId>
93
      <artifactId>spring-oxm</artifactId>
94
    </dependency>
95

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

    
111
    <!-- JSP TAG LIBS -->
112
    <dependency>
113
      <groupId>taglibs</groupId>
114
      <artifactId>standard</artifactId>
115
      <version>1.1.2</version>
116
    </dependency>
117
    <dependency>
118
      <groupId>taglibs</groupId>
119
      <artifactId>x</artifactId>
120
      <version>1.1.2</version>
121
      <type>tld</type>
122
    </dependency>
123
    <!-- swagger -->
124
    <dependency>
125
      <groupId>io.springfox</groupId>
126
      <artifactId>springfox-swagger2</artifactId>
127
      <scope>test</scope>
128
    </dependency>
129
    <!-- 
130
        dependencies for springfox-swagger2, added explicitly to pin the version
131
        these dependencies are also required by the cdmlib!  
132
    -->
133
    <dependency>
134
      <groupId>com.fasterxml.jackson.core</groupId>
135
      <artifactId>jackson-databind</artifactId>
136
    </dependency>
137
    <dependency>
138
      <groupId>com.fasterxml.jackson.core</groupId>
139
      <artifactId>jackson-core</artifactId>
140
    </dependency>
141
    <dependency>
142
      <groupId>com.fasterxml.jackson.core</groupId>
143
      <artifactId>jackson-annotations</artifactId>
144
    </dependency>
145
    <!-- END of dependencies for swagger-springmvc, added explicitely -->
146
    
147
    <!-- testing -->
148
    <dependency>
149
      <groupId>junit</groupId>
150
      <artifactId>junit</artifactId>
151
      <scope>test</scope>
152
    </dependency>
153

    
154
    <!-- Connection Pooling and jdbc -->
155
    <dependency>
156
      <groupId>org.hibernate</groupId>
157
      <artifactId>hibernate-c3p0</artifactId>
158
      <scope>test</scope>
159
    </dependency>
160
<!--     <dependency> -->
161
<!--         <groupId>com.mchange</groupId> -->
162
<!--         <artifactId>c3p0</artifactId> -->
163
<!--         <scope>test</scope> -->
164
<!--     </dependency> -->
165
      <!-- Profiling -->
166
      <dependency>
167
      <groupId>com.yourkit</groupId>
168
      <artifactId>yjp-controller-api-redist</artifactId>
169
      <scope>test</scope>
170
    </dependency>
171
  </dependencies>
172

    
173
  <build>
174
    <resources>
175
      <resource>
176
        <!-- replace the place holders like ${...} in datasources.xml -->
177
        <filtering>true</filtering>
178
                <directory>src/test/resources</directory>
179
        <targetPath>../test-classes</targetPath>
180
        <includes>
181
          <include>datasources.xml</include>
182
        </includes>
183
      </resource>
184
      <resource>
185
        <!-- all other test resources without filtering -->
186
        <directory>src/test/resources</directory>
187
        <targetPath>../test-classes</targetPath>
188
        <excludes>
189
          <exclude>datasources.xml</exclude>
190
        </excludes>
191
      </resource>
192
      <resource>
193
        <!-- all main resources without filtering -->
194
        <directory>src/main/resources</directory>
195
      </resource>
196
    </resources>
197
    <plugins>
198
      <plugin>
199
        <artifactId>maven-failsafe-plugin</artifactId>
200
        <version>2.16</version>
201
        <configuration>
202
          <forkCount>3</forkCount>
203
          <reuseForks>true</reuseForks>
204
        </configuration>
205
        <executions>
206
          <execution>
207
            <goals>
208
              <goal>integration-test</goal>
209
              <goal>verify</goal>
210
            </goals>
211
          </execution>
212
        </executions>
213
      </plugin>
214
      <plugin>
215
        <groupId>org.eclipse.jetty</groupId>
216
        <artifactId>jetty-maven-plugin</artifactId>
217
        <version>9.4.1.v20170120</version>
218
        <configuration>
219
          <stopKey>stop</stopKey>
220
          <stopPort>9199</stopPort>
221
          <scanIntervalSeconds>10</scanIntervalSeconds>
222
          <useTestScope>true</useTestScope>
223
          <jettyXml>${basedir}/src/test/resources/etc/jetty/jetty.xml,${basedir}/src/test/resources/etc/jetty/jetty-http.xml</jettyXml>
224
          <!-- <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> -->
225
          <systemProperties>
226
            <force>true</force>
227
            <systemProperty>
228
              <name>cdm.datasource</name>
229
              <value>h2_cdmTest</value>
230
            </systemProperty>
231
            <systemProperty>
232
              <!-- 
233
                The lucene index should be placed into the target folder,
234
                so user.home needs to be set to this folder.
235
                user.home needs to be overriden since it already 
236
                exists, thus the force option is turned on above 
237
              -->
238
              <name>user.home</name>
239
              <value>${basedir}/target/</value>
240
            </systemProperty>            
241
            <systemProperty>
242
              <!-- datasources.xml is prepared by <plugins><resources>..</resources>
243
                above -->
244
              <name>cdm.beanDefinitionFile</name>
245
              <value>${project.build.directory}/test-classes/datasources.xml</value>
246
            </systemProperty>
247
            <systemProperty>
248
                <!--
249
                    start with swagger profile so that the swagger doc 
250
                    can be generated 
251
                 -->
252
                <name>spring.profiles.active</name>
253
                <value>swagger</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
      <plugin>
279
        <groupId>org.apache.maven.plugins</groupId>
280
        <artifactId>maven-war-plugin</artifactId>
281
        <version>2.6</version>
282
        <executions>
283
            <execution>
284
                <!-- 
285
                    The war must be created after running the integration-tests,
286
                    since the SwaggerGroupsIT test populates the classes/api-docs-static/
287
                    folder with static swagger doc files. The are otherwise not packed
288
                     into the war file.
289
                  -->
290
                <phase>verify</phase>
291
                <goals>
292
                  <goal>war</goal>
293
                </goals>
294
            </execution>
295
        </executions>
296
      </plugin>
297
          <plugin>
298
            <artifactId>maven-resources-plugin</artifactId>
299
            <version>2.7</version>
300
            <configuration>
301
                <escapeWindowsPaths>false</escapeWindowsPaths>
302
            </configuration>
303
        </plugin>
304

    
305
    </plugins>
306
  </build>
307
</project>
Add picture from clipboard (Maximum size: 40 MB)