-
Notifications
You must be signed in to change notification settings - Fork 1
/
pom.xml
438 lines (395 loc) · 13.1 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
<!-- ~ Copyright 2006-2012 The Kuali Foundation ~ ~ Licensed under the Educational
Community License, Version 2.0 (the "License"); ~ you may not use this file
except in compliance with the License. ~ You may obtain a copy of the License
at ~ ~ http://www.opensource.org/licenses/ecl2.php ~ ~ Unless required by
applicable law or agreed to in writing, software ~ distributed under the
License is distributed on an "AS IS" BASIS, ~ WITHOUT WARRANTIES OR CONDITIONS
OF ANY KIND, either express or implied. ~ See the License for the specific
language governing permissions and ~ limitations under the License. -->
<!-- Kuali Rice ArcheType Help This is the main maven build file for the
project as known as a project object model. See the comments below to understand
the major pieces of this pom. Where not commented, see the maven documentation
for more information. -->
<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/maven-v4_0_0.xsd">
<name>The kradtraining Application</name>
<modelVersion>4.0.0</modelVersion>
<groupId>org.kuali.rice</groupId>
<artifactId>kradtraining</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!--allows the supported database to be changed via parameter (ex: oracle
to mysql) -->
<database.groupId>mysql</database.groupId>
<database.artifactId>${mysql.jdbc.artifactId}</database.artifactId>
<database.version>${mysql.jdbc.version}</database.version>
<!--dependency versions -->
<jsp-api.version>2.1</jsp-api.version>
<junit.version>4.10</junit.version>
<oracle.jdbc.version>10.2.0.3.0</oracle.jdbc.version>
<oracle.jdbc.artifactId>ojdbc14</oracle.jdbc.artifactId>
<mysql.jdbc.version>5.1.18</mysql.jdbc.version>
<mysql.jdbc.artifactId>mysql-connector-java</mysql.jdbc.artifactId>
<rice.version>2.3.0</rice.version>
<servlet-api.version>2.5</servlet-api.version>
<!--plugin versions -->
<!-- It is a good idea to explicitly place plugin version numbers in a
build. This makes the build more stable and less dependant on a specific
version of maven. -->
<plugin.compiler.version>2.5.1</plugin.compiler.version>
<plugin.surefire.version>2.12.3</plugin.surefire.version>
<plugin.failsafe.version>2.12.3</plugin.failsafe.version>
<plugin.war.version>2.2</plugin.war.version>
<plugin.jetty.version>8.1.7.v20120910</plugin.jetty.version>
<!-- other properties -->
<jetty.port>8080</jetty.port>
<maven.failsafe.skip>true</maven.failsafe.skip>
<plugin.compiler.source>1.6</plugin.compiler.source>
<plugin.compiler.target>1.6</plugin.compiler.target>
<tools.jar.path>${java.home}/../lib/tools.jar</tools.jar.path>
</properties>
<build>
<!-- To help manage complex builds, the maven enforcer plugin has many
useful rules. This is not configured in this sample pom for simplicity sake.
http://maven.apache.org/plugins/maven-enforcer-plugin/ -->
<plugins>
<!-- Compiler plugin to specify Java source and target versions and encoding -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>${plugin.compiler.version}</version>
<configuration>
<source>${plugin.compiler.source}</source>
<target>${plugin.compiler.target}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
<!-- Using war overlays to extract the web content from the rice web module. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>${plugin.war.version}</version>
<configuration>
<webResources>
<resource>
<filtering>true</filtering>
<!-- this is relative to the pom.xml directory -->
<directory>src/main/webapp/</directory>
<includes>
<include>**/web.xml</include>
</includes>
</resource>
</webResources>
<overlays>
<overlay>
<groupId>${project.groupId}</groupId>
<artifactId>rice-web</artifactId>
<filtered>false</filtered>
</overlay>
</overlays>
</configuration>
</plugin>
<!-- This executes unit tests. These tests are executed by default when
the project is built. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>${plugin.surefire.version}</version>
</plugin>
<!-- This allows the application be be launched in a jetty server using
a maven command. A tomcat plugin could also be configured and used if desired. -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${plugin.jetty.version}</version>
<configuration>
<webAppConfig>
<contextPath>/kradtraining</contextPath>
</webAppConfig>
<connectors>
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>${jetty.port}</port>
</connector>
</connectors>
</configuration>
<dependencies>
<dependency>
<groupId>${database.groupId}</groupId>
<artifactId>${database.artifactId}</artifactId>
<version>${database.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<!-- This is a profile activate and enables a special build configuration
when executing integration tests. The profile is activated by setting the
property maven.failsafe.skip to false. -->
<profiles>
<profile>
<id>itests</id>
<activation>
<property>
<name>maven.failsafe.skip</name>
<value>false</value>
</property>
</activation>
<properties>
<jetty.stop.port>9999</jetty.stop.port>
</properties>
<build>
<plugins>
<!-- This executes integration tests. These tests are NOT executed by
default when the project is built. -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${plugin.failsafe.version}</version>
<executions>
<execution>
<id>integration-test</id>
<phase>integration-test</phase>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<encoding>${project.build.sourceEncoding}</encoding>
<skip>${maven.failsafe.skip}</skip>
<failIfNoTests>false</failIfNoTests>
<includes>
<include>**/*IT.java</include>
</includes>
<systemPropertyVariables>
<test.port>${jetty.port}</test.port>
</systemPropertyVariables>
</configuration>
</plugin>
<!-- This configures jetty to startup and shut down for integration
tests. This allows integration tests to call into the application using web
requests. A tomcat plugin could also be configured and used if desired. -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>${plugin.jetty.version}</version>
<configuration>
<webAppConfig>
<contextPath>/kradtraining</contextPath>
</webAppConfig>
<connectors>
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>${jetty.port}</port>
</connector>
</connectors>
<stopKey>stop_jetty</stopKey>
<stopPort>${jetty.stop.port}</stopPort>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>${database.groupId}</groupId>
<artifactId>${database.artifactId}</artifactId>
<version>${database.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<repositories>
<repository>
<id>kuali.public.nexus</id>
<name>Nexus Public Repository Manager</name>
<url>http://nexus.kuali.org/content/groups/public</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
<repository>
<id>kuali.nexus</id>
<name>Nexus Repository Manager</name>
<url>https://shrub.appspot.com/maven.kuali.org</url>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-krad-app-framework</artifactId>
<version>${rice.version}</version>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-krad-web-framework</artifactId>
<version>${rice.version}</version>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-web</artifactId>
<version>${rice.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-krad-development-tools</artifactId>
<version>${rice.version}</version>
<exclusions>
<exclusion>
<groupId>com.sun</groupId>
<artifactId>tools</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-core-api</artifactId>
<version>${rice.version}</version>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-core-framework</artifactId>
<version>${rice.version}</version>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-impl</artifactId>
<version>${rice.version}</version>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-it-krad</artifactId>
<version>${rice.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-it-internal-tools</artifactId>
<version>${rice.version}</version>
<scope>test</scope>
</dependency>
<!-- ksb -->
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-ksb-api</artifactId>
<version>${rice.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-ksb-client-impl</artifactId>
<version>${rice.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-ksb-server-impl</artifactId>
<version>${rice.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-ksb-web</artifactId>
<version>${rice.version}</version>
<scope>runtime</scope>
</dependency>
<!-- krms -->
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-krms-api</artifactId>
<version>${rice.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-krms-framework</artifactId>
<version>${rice.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-krms-impl</artifactId>
<version>${rice.version}</version>
<scope>runtime</scope>
</dependency>
<!-- edl -->
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-edl-framework</artifactId>
<version>${rice.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-edl-impl</artifactId>
<version>${rice.version}</version>
<scope>runtime</scope>
</dependency>
<!-- ken -->
<dependency>
<groupId>org.kuali.rice</groupId>
<artifactId>rice-ken-api</artifactId>
<version>${rice.version}</version>
<scope>runtime</scope>
</dependency>
<!-- third party libraries -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>${servlet-api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>${jsp-api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>${database.groupId}</groupId>
<artifactId>${database.artifactId}</artifactId>
<version>${database.version}</version>
<scope>runtime</scope>
</dependency>
</dependencies>
</project>