-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
316 lines (293 loc) · 13.3 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
<!--
Licensed to Apereo under one or more contributor license
agreements. See the NOTICE file distributed with this work
for additional information regarding copyright ownership.
Apereo licenses this file to you under the Apache 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 the following location:
http://www.apache.org/licenses/LICENSE-2.0
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.
-->
<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">
<!-- Maven Model Version -->
<modelVersion>4.0.0</modelVersion>
<!--
Parent brings in some defaults and additional plugins.
See https://github.com/Jasig/apereo-parent .
Note that JASIG has been merged into Apereo, thus the name difference.
Version can be updated to latest with `mvn versions:update-parent`.
-->
<parent>
<groupId>org.jasig.parent</groupId>
<artifactId>jasig-parent</artifactId>
<version>41</version>
<relativePath />
</parent>
<!-- Basic Information -->
<name>base-spring-portlet</name>
<description>
Starter Spring PortletMVC shell for Jasig JSR-286 Portlets.
</description>
<!-- Maven Coordinates -->
<groupId>org.jasig.portlet</groupId>
<artifactId>base-spring-portlet</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- Java Versions Targeted by Compiler -->
<project.build.sourceVersion>1.8</project.build.sourceVersion>
<project.build.targetVersion>1.8</project.build.targetVersion>
<!-- Dependency Version Properties -->
<!-- Standard Libraries -->
<!-- Servlet API depends on Tomcat version. See http://tomcat.apache.org/whichversion.html -->
<servlet-api.version>3.1.0</servlet-api.version>
<!-- Servlet API depends on Tomcat version. See http://tomcat.apache.org/whichversion.html -->
<jsp-api.version>2.3.3</jsp-api.version>
<!-- Servlet API depends on Tomcat version. See http://tomcat.apache.org/whichversion.html -->
<el-api.version>3.0.0</el-api.version>
<jstl.version>1.1.2</jstl.version>
<!-- Version depends on uPortal version that is deployed in $TOMCAT_HOME/shared/libs -->
<portlet-api.version>1.0</portlet-api.version>
<!-- Logging -->
<logback.version>1.2.3</logback.version>
<!-- Spring Framework -->
<spring.version>4.3.28.RELEASE</spring.version>
<!-- Resource Server (N.B. Brings in a few dependencies -->
<resource-server.version>1.0.44</resource-server.version>
<!-- Testing -->
<junit.version>4.13.1</junit.version>
</properties>
<dependencies>
<!-- Standard Libraries -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<!-- Version depends on Tomcat version -->
<version>${servlet-api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>javax.servlet.jsp-api</artifactId>
<!-- Version depends on Tomcat version -->
<version>${jsp-api.version}</version>
</dependency>
<dependency>
<groupId>javax.el</groupId>
<artifactId>javax.el-api</artifactId>
<!-- Version depends on Tomcat version -->
<version>${el-api.version}</version>
</dependency>
<dependency>
<groupId>taglibs</groupId>
<artifactId>standard</artifactId>
<version>${jstl.version}</version>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>${jstl.version}</version>
</dependency>
<dependency>
<groupId>org.apache.portals</groupId>
<artifactId>portlet-api_2.1.0_spec</artifactId>
<!-- Version depends on uPortal version that is deployed in $TOMCAT_HOME/shared/libs -->
<version>${portlet-api.version}</version>
<scope>provided</scope>
</dependency>
<!-- Logging -->
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>${logback.version}</version>
<scope>runtime</scope>
</dependency>
<!-- Spring Framework -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-beans</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc-portlet</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.version}</version>
</dependency>
<!-- Resource Server (N.B. Brings in a few dependencies -->
<dependency>
<groupId>org.jasig.resourceserver</groupId>
<artifactId>resource-server-content</artifactId>
<version>${resource-server.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.jasig.resourceserver</groupId>
<artifactId>resource-server-utils</artifactId>
<version>${resource-server.version}</version>
</dependency>
<!-- Testing -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<!-- Override License Plugin with additional files to exclude from files to check for License header -->
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>3.0</version>
<configuration>
<excludes>
<!-- Include additional files to exclude from license checks/generation. -->
<exclude>target/**</exclude>
<exclude>pom.xml.*</exclude>
<exclude>release.properties</exclude>
<exclude>LICENSE</exclude>
<exclude>NOTICE</exclude>
<exclude>NOTICE.template</exclude>
<exclude>bin/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<!-- configure to use Java 6 to compile (change to your JDK) -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<!-- Override parent dependency with Resource Server Content Overlay -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<warName>BaseSpringPortlet</warName>
<webXml>src/main/webapp/WEB-INF/web.xml</webXml>
<overlays>
<overlay>
<groupId>org.jasig.resourceserver</groupId>
<artifactId>resource-server-content</artifactId>
<includes>
<!-- Available includes found at
https://github.com/Jasig/resource-server/tree/master/resource-server-content/src/main/webapp/rs -->
<include>rs/jquery/1.6.1/</include>
</includes>
</overlay>
</overlays>
</configuration>
</plugin>
</plugins>
<finalName>${project.artifactId}</finalName>
</build>
<profiles>
<profile>
<id>pluto</id>
<build>
<plugins>
<plugin>
<!-- Generate a web.xml with Pluto required additions -->
<groupId>org.apache.portals.pluto</groupId>
<artifactId>maven-pluto-plugin</artifactId>
<version>${pluto.version}</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>assemble</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<!-- Add Pluto generated web.xml into WAR file -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.0.0</version>
<configuration>
<!-- Added to WAR file name -->
<classifier>pluto</classifier>
<!-- Override to set a specific name -->
<warName>${project.artifactId}</warName>
<webXml>${project.build.directory}/pluto-resources/web.xml</webXml>
<overlays>
<overlay>
<groupId>org.jasig.resourceserver</groupId>
<artifactId>resource-server-content</artifactId>
<includes>
<!-- Available includes found at
https://github.com/Jasig/resource-server/tree/master/resource-server-content/src/main/webapp/rs -->
<include>rs/jquery/1.6.1/</include>
</includes>
</overlay>
</overlays>
</configuration>
</plugin>
<plugin>
<!-- Add single command portlet deployment with the following:
mvn clean install org.jasig.portal:maven-uportal-plugin:deploy-war -Ppluto -Dmaven.tomcat.home=/path/to/my/tomcat
-->
<groupId>org.jasig.portal</groupId>
<artifactId>maven-uportal-plugin</artifactId>
<version>1.0.0-M4</version>
<configuration>
<contextName>${project.artifactId}</contextName>
<artifactId>${project.artifactId}</artifactId>
<artifactGroupId>${project.groupId}</artifactGroupId>
<artifactVersion>${project.version}</artifactVersion>
<artifactClassifier>pluto</artifactClassifier>
<removeExistingDirectories>true</removeExistingDirectories>
<extractWars>true</extractWars>
<!-- Next three entries added simply to pass IDE checks -->
<outputRootDirectory/>
<skinConfigurationFile/>
<taskId/>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>