1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<!-- |
3 |
Copyright 2008 Hippo |
4 |
|
5 |
Licensed under the Apache License, Version 2.0 (the "License"); |
6 |
you may not use this file except in compliance with the License. |
7 |
You may obtain a copy of the License at |
8 |
|
9 |
http://www.apache.org/licenses/LICENSE-2.0 |
10 |
|
11 |
Unless required by applicable law or agreed to in writing, software |
12 |
distributed under the License is distributed on an "AS IS" |
13 |
BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
14 |
See the License for the specific language governing permissions and |
15 |
limitations under the License. |
16 |
--><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"> |
17 |
<modelVersion>4.0.0</modelVersion> |
18 |
|
19 |
<parent> |
20 |
<groupId>org.onehippo.ecm</groupId> |
21 |
<artifactId>hst_docs</artifactId> |
22 |
<version>0.01.00-SNAPSHOT</version> |
23 |
<relativePath>../pom.xml</relativePath> |
24 |
</parent> |
25 |
|
26 |
<name>My Hippo Site Toolkit Project website</name> |
27 |
<description>My Hippo Site Toolkit Project website</description> |
28 |
<artifactId>hst_docs-site</artifactId> |
29 |
<groupId>org.onehippo.ecm</groupId> |
30 |
<packaging>war</packaging> |
31 |
|
32 |
<dependencies> |
33 |
<!-- Dependencies needed to be able to send mail --> |
34 |
<dependency> |
35 |
<groupId>javax.mail</groupId> |
36 |
<artifactId>mail</artifactId> |
37 |
<version>1.4</version> |
38 |
<scope>provided</scope> |
39 |
</dependency> |
40 |
<dependency> |
41 |
<groupId>javax.activation</groupId> |
42 |
<artifactId>activation</artifactId> |
43 |
<version>1.1</version> |
44 |
<scope>provided</scope> |
45 |
</dependency> |
46 |
<dependency> |
47 |
<groupId>javax.servlet</groupId> |
48 |
<artifactId>servlet-api</artifactId> |
49 |
<scope>provided</scope> |
50 |
<version>${servlet-api.version}</version> |
51 |
</dependency> |
52 |
<dependency> |
53 |
<groupId>javax.servlet</groupId> |
54 |
<artifactId>jstl</artifactId> |
55 |
<scope>runtime</scope> |
56 |
<version>${jstl.version}</version> |
57 |
</dependency> |
58 |
<dependency> |
59 |
<groupId>taglibs</groupId> |
60 |
<artifactId>standard</artifactId> |
61 |
<scope>runtime</scope> |
62 |
<version>${taglibs.version}</version> |
63 |
</dependency> |
64 |
<dependency> |
65 |
<groupId>org.onehippo.forge.simpleEmail</groupId> |
66 |
<artifactId>SimpleEmail</artifactId> |
67 |
<version>0.0.1-SNAPSHOT</version> |
68 |
</dependency> |
69 |
<dependency> |
70 |
<groupId>xml-apis</groupId> |
71 |
<artifactId>xml-apis</artifactId> |
72 |
<version>${xml-apis.version}</version> |
73 |
</dependency> |
74 |
<dependency> |
75 |
<groupId>xerces</groupId> |
76 |
<artifactId>xercesImpl</artifactId> |
77 |
<version>${xerces.version}</version> |
78 |
</dependency> |
79 |
<dependency> |
80 |
<groupId>xerces</groupId> |
81 |
<artifactId>xerces</artifactId> |
82 |
<version>${xerces.version}</version> |
83 |
</dependency> |
84 |
<dependency> |
85 |
<groupId>xalan</groupId> |
86 |
<artifactId>xalan</artifactId> |
87 |
<version>${xalan.version}</version> |
88 |
</dependency> |
89 |
<dependency> |
90 |
<groupId>org.slf4j</groupId> |
91 |
<artifactId>slf4j-api</artifactId> |
92 |
<version>1.4.3</version> |
93 |
</dependency> |
94 |
<dependency> |
95 |
<groupId>org.slf4j</groupId> |
96 |
<artifactId>slf4j-log4j12</artifactId> |
97 |
<version>1.4.3</version> |
98 |
<scope>runtime</scope> |
99 |
</dependency> |
100 |
<dependency> |
101 |
<groupId>log4j</groupId> |
102 |
<artifactId>log4j</artifactId> |
103 |
<version>1.2.13</version> |
104 |
<scope>runtime</scope> |
105 |
</dependency> |
106 |
<dependency> |
107 |
<groupId>org.springframework</groupId> |
108 |
<artifactId>spring-core</artifactId> |
109 |
<version>${spring.version}</version> |
110 |
</dependency> |
111 |
<dependency> |
112 |
<groupId>org.springframework</groupId> |
113 |
<artifactId>spring-web</artifactId> |
114 |
<version>${spring.version}</version> |
115 |
</dependency> |
116 |
<dependency> |
117 |
<groupId>org.onehippo.ecm.hst</groupId> |
118 |
<artifactId>hst-api</artifactId> |
119 |
<version>${hst.version}</version> |
120 |
<!-- |
121 |
<scope>provided</scope> |
122 |
--> |
123 |
</dependency> |
124 |
<dependency> |
125 |
<groupId>org.onehippo.ecm.hst</groupId> |
126 |
<artifactId>hst-commons</artifactId> |
127 |
<version>${hst.version}</version> |
128 |
<!-- |
129 |
<scope>provided</scope> |
130 |
--> |
131 |
</dependency> |
132 |
<dependency> |
133 |
<groupId>org.onehippo.ecm.hst.components</groupId> |
134 |
<artifactId>hst-core</artifactId> |
135 |
<version>${hst.version}</version> |
136 |
</dependency> |
137 |
<dependency> |
138 |
<groupId>org.onehippo.ecm.hst</groupId> |
139 |
<artifactId>hst-client</artifactId> |
140 |
<version>${hst.version}</version> |
141 |
</dependency> |
142 |
|
143 |
<dependency> |
144 |
<groupId>org.onehippo.ecm.hst</groupId> |
145 |
<artifactId>hst-ocm</artifactId> |
146 |
<version>${hst.version}</version> |
147 |
</dependency> |
148 |
|
149 |
<dependency> |
150 |
<groupId>org.apache.geronimo.specs</groupId> |
151 |
<artifactId>geronimo-jta_1.1_spec</artifactId> |
152 |
<scope>provided</scope> |
153 |
<version>1.1</version> |
154 |
</dependency> |
155 |
|
156 |
</dependencies> |
157 |
|
158 |
|
159 |
|
160 |
<build> |
161 |
<defaultGoal>package</defaultGoal> |
162 |
<plugins> |
163 |
<plugin> |
164 |
<groupId>org.mortbay.jetty</groupId> |
165 |
<artifactId>maven-jetty-plugin</artifactId> |
166 |
<version>6.1.10</version> |
167 |
<configuration> |
168 |
<scanIntervalSeconds>5</scanIntervalSeconds> |
169 |
<webAppConfig> |
170 |
<contextPath>/site</contextPath> |
171 |
<tempDirectory>${project.build.directory}/work</tempDirectory> |
172 |
</webAppConfig> |
173 |
<connectors> |
174 |
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> |
175 |
<port>8085</port> |
176 |
</connector> |
177 |
</connectors> |
178 |
</configuration> |
179 |
<dependencies> |
180 |
<!-- atomikos dependecies for running jetty:run[-war|-exploded] --> |
181 |
<dependency> |
182 |
<groupId>com.atomikos</groupId> |
183 |
<artifactId>transactions-api</artifactId> |
184 |
<version>3.1.4</version> |
185 |
<scope>runtime</scope> |
186 |
</dependency> |
187 |
<dependency> |
188 |
<groupId>com.atomikos</groupId> |
189 |
<artifactId>transactions-jta</artifactId> |
190 |
<version>3.1.4</version> |
191 |
<scope>runtime</scope> |
192 |
</dependency> |
193 |
<dependency> |
194 |
<groupId>com.atomikos</groupId> |
195 |
<artifactId>transactions</artifactId> |
196 |
<version>3.1.4</version> |
197 |
<scope>runtime</scope> |
198 |
</dependency> |
199 |
<dependency> |
200 |
<groupId>com.atomikos</groupId> |
201 |
<artifactId>atomikos-util</artifactId> |
202 |
<version>3.1.4</version> |
203 |
<scope>runtime</scope> |
204 |
</dependency> |
205 |
</dependencies> |
206 |
</plugin> |
207 |
<plugin> |
208 |
<inherited>true</inherited> |
209 |
<artifactId>maven-compiler-plugin</artifactId> |
210 |
<configuration> |
211 |
<target>1.5</target> |
212 |
<source>1.5</source> |
213 |
</configuration> |
214 |
</plugin> |
215 |
<plugin> |
216 |
<artifactId>maven-eclipse-plugin</artifactId> |
217 |
<configuration> |
218 |
<downloadSources>true</downloadSources> |
219 |
<wtpversion>1.5</wtpversion> |
220 |
</configuration> |
221 |
</plugin> |
222 |
</plugins> |
223 |
</build> |
224 |
|
225 |
<profiles> |
226 |
|
227 |
<profile> |
228 |
<id>tomcat</id> |
229 |
<build> |
230 |
<plugins> |
231 |
<plugin> |
232 |
<groupId>org.codehaus.mojo</groupId> |
233 |
<artifactId>properties-maven-plugin</artifactId> |
234 |
<version>1.0-alpha-1</version> |
235 |
<executions> |
236 |
<execution> |
237 |
<phase>initialize</phase> |
238 |
<goals> |
239 |
<goal>read-project-properties</goal> |
240 |
</goals> |
241 |
<configuration> |
242 |
<quiet>true</quiet> |
243 |
<files> |
244 |
<file>build.properties</file> |
245 |
</files> |
246 |
</configuration> |
247 |
</execution> |
248 |
</executions> |
249 |
</plugin> |
250 |
<plugin> |
251 |
<groupId>org.apache.maven.plugins</groupId> |
252 |
<artifactId>maven-antrun-plugin</artifactId> |
253 |
<version>1.2</version> |
254 |
<executions> |
255 |
<execution> |
256 |
<id>deploy-to-tomcat</id> |
257 |
<phase>install</phase> |
258 |
<configuration> |
259 |
<tasks> |
260 |
|
261 |
<echo>Replacing HST Shared Libraries.</echo> |
262 |
<copy file="${settings.localRepository}/javax/jcr/jcr/1.0/jcr-1.0.jar" tofile="${tomcat.hst.shared.lib}/jcr-1.0.jar" /> |
263 |
<copy file="${settings.localRepository}/org/apache/geronimo/specs/geronimo-jta_1.1_spec/1.1/geronimo-jta_1.1_spec-1.1.jar" tofile="${tomcat.hst.shared.lib}/geronimo-jta_1.1_spec-1.1.jar" /> |
264 |
<copy file="../../api/target/hst-api-${project.version}.jar" tofile="${tomcat.hst.shared.lib}/hst-api-${project.version}.jar" /> |
265 |
<copy file="../../commons/target/hst-commons-${project.version}.jar" tofile="${tomcat.hst.shared.lib}/hst-commons-${project.version}.jar" /> |
266 |
|
267 |
<echo>Replacing cms web application into tomcat.</echo> |
268 |
<delete dir="${tomcat.hst.cms.webapp}" /> |
269 |
<mkdir dir="${tomcat.hst.cms.webapp}" /> |
270 |
<unwar src="../../maven/archetype/target/gettingstarted/cms/target/gettingstarted-cms-1.00.01.war" dest="${tomcat.hst.cms.webapp}" /> |
271 |
|
272 |
<echo>Replacing site web application into tomcat.</echo> |
273 |
<delete dir="${tomcat.server.home}/webapps/${project.artifactId}" /> |
274 |
<mkdir dir="${tomcat.server.home}/webapps/${project.artifactId}" /> |
275 |
<unwar src="${project.build.directory}/${project.artifactId}-${project.version}.war" dest="${tomcat.server.home}/webapps/${project.artifactId}" /> |
276 |
<delete> |
277 |
<fileset dir="${tomcat.server.home}/webapps/${project.artifactId}/WEB-INF/lib"> |
278 |
<include name="jcr-*.jar" /> |
279 |
<include name="hst-api-*.jar" /> |
280 |
<include name="hst-commons-*.jar" /> |
281 |
</fileset> |
282 |
</delete> |
283 |
|
284 |
</tasks> |
285 |
</configuration> |
286 |
<goals> |
287 |
<goal>run</goal> |
288 |
</goals> |
289 |
</execution> |
290 |
</executions> |
291 |
<dependencies> |
292 |
<dependency> |
293 |
<groupId>javax.jcr</groupId> |
294 |
<artifactId>jcr</artifactId> |
295 |
<version>1.0</version> |
296 |
</dependency> |
297 |
<dependency> |
298 |
<groupId>org.apache.geronimo.specs</groupId> |
299 |
<artifactId>geronimo-jta_1.1_spec</artifactId> |
300 |
<version>1.1</version> |
301 |
</dependency> |
302 |
</dependencies> |
303 |
</plugin> |
304 |
</plugins> |
305 |
</build> |
306 |
</profile> |
307 |
</profiles> |
308 |
</project> |