/
pom.xml
203 lines (190 loc) · 8.7 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
<?xml version="1.0" encoding="UTF-8"?>
<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">
<parent>
<groupId>org.jasig.portal.portlets-overlay</groupId>
<artifactId>uportal-portlets-overlay</artifactId>
<version>4.1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>CalendarPortlet</artifactId>
<packaging>war</packaging>
<name>Calendar Portlet</name>
<description>Overlay on Calendar Portlet.</description>
<dependencies>
<!-- ===== Compile Time Dependencies ============================== -->
<dependency>
<groupId>org.jasig.portlet</groupId>
<artifactId>CalendarPortlet</artifactId>
<version>${CalendarPortlet.version}</version>
<type>war</type>
</dependency>
<dependency>
<groupId>org.jasig.portlet</groupId>
<artifactId>CalendarPortlet</artifactId>
<version>${CalendarPortlet.version}</version>
<classifier>classes</classifier>
<type>jar</type>
<scope>provided</scope>
<exclusions>
<exclusion>
<groupId>xalan</groupId>
<artifactId>serializer</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>javax.portlet</groupId>
<artifactId>portlet-api</artifactId>
<version>2.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jasig.portal</groupId>
<artifactId>uportal-db</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<filters>
<filter>../../${filters.file}</filter>
</filters>
<resources>
<resource>
<filtering>false</filtering>
<directory>src/main/resources</directory>
<excludes>
<!-- This list needs to be identical to the one below... -->
<exclude>*.properties</exclude>
<exclude>logback.xml</exclude>
</excludes>
</resource>
<resource>
<filtering>true</filtering>
<directory>src/main/resources</directory>
<includes>
<!-- List files or patterns to be filtered here. Restrict the list to avoid accidentally
substituting maven or other environmental tokens in other files.-->
<include>*.properties</include>
<include>logback.xml</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
<!-- Remove the dependent war's hsqldb jar so we can use the jdbc artifact configured above as a dependency.
A side effect of this exclude is we'll retain META-INF/context.xml (META-INF is excluded by default).
Context.xml is important because it allows the ResourceUrl to 'see' the ResourceServingWebapp
to determine if a resource is available there, which allows for browser caching of common
libraries -->
<dependentWarExcludes>
WEB-INF/lib/hsqldb-*.jar
</dependentWarExcludes>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.portals.pluto</groupId>
<artifactId>maven-pluto-plugin</artifactId>
</plugin>
<!-- To drop and recreate the calendar db tables, use mvn db-init -->
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>hibernate3-maven-plugin</artifactId>
<version>2.2</version>
<executions>
<execution>
<phase>db-init</phase>
<goals>
<goal>hbm2ddl</goal>
</goals>
<configuration>
<componentProperties>
<propertyfile>${project.build.directory}/classes/datasource.properties</propertyfile>
<drop>true</drop>
</componentProperties>
</configuration>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.jasig.portal</groupId>
<artifactId>uportal-db</artifactId>
<version>${project.version}</version>
<type>pom</type>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jasig.portlet</groupId>
<artifactId>CalendarPortlet</artifactId>
<version>${CalendarPortlet.version}</version>
<classifier>classes</classifier>
<type>jar</type>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>xalan</groupId>
<artifactId>serializer</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</plugin>
<!-- To import the calendar db tables, use mvn [-Ddir=dir] data-import -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>data-import</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>rhino</groupId>
<artifactId>js</artifactId>
<version>1.7R1</version>
</dependency>
<dependency>
<groupId>org.jasig.portlet</groupId>
<artifactId>CalendarPortlet</artifactId>
<version>${CalendarPortlet.version}</version>
<classifier>classes</classifier>
<type>jar</type>
<scope>compile</scope>
<exclusions>
<exclusion>
<groupId>xalan</groupId>
<artifactId>serializer</artifactId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
<configuration>
<tasks>
<!-- Set default value of data location if it is not set -->
<property name="dir" value="${basedir}/src/main/data" />
<property name="runtime_classpath" refid="maven.runtime.classpath" />
<property name="plugin_classpath" refid="maven.plugin.classpath" />
<java failonerror="true" classname="org.danann.cernunnos.runtime.Main">
<sysproperty key="log4j.configuration" value="command-line.log4j.properties" />
<classpath>
<pathelement path="${project.build.directory}/${project.artifactId}/WEB-INF" />
<pathelement path="${runtime_classpath}" />
<pathelement path="${plugin_classpath}" />
<pathelement location="${servlet.jar}" />
</classpath>
<arg value="classpath://org/jasig/portlet/calendar/io/import.crn.xml" />
<arg value="${dir}" />
<arg value="classpath://context/importExportContext.xml" />
</java>
</tasks>
</configuration>
</plugin>
</plugins>
</build>
</project>