View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-cms7/site-toolkit/trunk/demosuite/site/pom.xml
Revision: 19059
Committed: Wed Jul 29 07:40:10 2009 UTC (10 years, 10 months ago) by wko
Content type: text/plain
Original Path: ecm/site-toolkit/trunk/demosuite/site/pom.xml
File size: 20663 byte(s)
Log Message:
HSTTWO-755: Adding server-side dependencies project.

File Contents

# Content
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 -->
17 <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">
18 <modelVersion>4.0.0</modelVersion>
19
20 <parent>
21 <groupId>org.onehippo.ecm.hst</groupId>
22 <artifactId>demosuite</artifactId>
23 <version>2.03.10-SNAPSHOT</version>
24 </parent>
25
26 <name>Hippo Site Toolkit Demo Suite SITE Application</name>
27 <description>Hippo Site Toolkit Demo Suite SITE Application</description>
28 <groupId>org.onehippo.ecm.hst.demosuite</groupId>
29 <artifactId>hst-demosuite-site</artifactId>
30 <packaging>war</packaging>
31
32 <properties>
33 <site.log.dir.name>${site.webapp.root}/WEB-INF/logs</site.log.dir.name>
34 </properties>
35
36 <dependencies>
37 <dependency>
38 <groupId>org.apache.geronimo.specs</groupId>
39 <artifactId>geronimo-jta_1.1_spec</artifactId>
40 <scope>provided</scope>
41 </dependency>
42 <dependency>
43 <groupId>javax.jcr</groupId>
44 <artifactId>jcr</artifactId>
45 <scope>compile</scope>
46 </dependency>
47 <dependency>
48 <groupId>javax.servlet</groupId>
49 <artifactId>servlet-api</artifactId>
50 <scope>provided</scope>
51 </dependency>
52 <dependency>
53 <groupId>javax.portlet</groupId>
54 <artifactId>portlet-api</artifactId>
55 <scope>provided</scope>
56 </dependency>
57 <dependency>
58 <groupId>javax.servlet</groupId>
59 <artifactId>jstl</artifactId>
60 <scope>runtime</scope>
61 </dependency>
62 <dependency>
63 <groupId>taglibs</groupId>
64 <artifactId>standard</artifactId>
65 <scope>runtime</scope>
66 </dependency>
67 <dependency>
68 <groupId>xml-apis</groupId>
69 <artifactId>xml-apis</artifactId>
70 <scope>runtime</scope>
71 </dependency>
72 <dependency>
73 <groupId>xerces</groupId>
74 <artifactId>xercesImpl</artifactId>
75 <scope>runtime</scope>
76 </dependency>
77 <dependency>
78 <groupId>xerces</groupId>
79 <artifactId>xerces</artifactId>
80 <scope>runtime</scope>
81 </dependency>
82 <dependency>
83 <groupId>xalan</groupId>
84 <artifactId>xalan</artifactId>
85 <scope>runtime</scope>
86 </dependency>
87 <dependency>
88 <groupId>javax.mail</groupId>
89 <artifactId>mail</artifactId>
90 </dependency>
91 <dependency>
92 <groupId>org.slf4j</groupId>
93 <artifactId>slf4j-api</artifactId>
94 </dependency>
95 <dependency>
96 <groupId>org.slf4j</groupId>
97 <artifactId>jcl-over-slf4j</artifactId>
98 </dependency>
99 <dependency>
100 <groupId>org.slf4j</groupId>
101 <artifactId>slf4j-log4j12</artifactId>
102 <scope>runtime</scope>
103 </dependency>
104 <dependency>
105 <groupId>log4j</groupId>
106 <artifactId>log4j</artifactId>
107 <scope>runtime</scope>
108 </dependency>
109 <dependency>
110 <groupId>commons-fileupload</groupId>
111 <artifactId>commons-fileupload</artifactId>
112 </dependency>
113 <dependency>
114 <groupId>commons-io</groupId>
115 <artifactId>commons-io</artifactId>
116 <scope>runtime</scope>
117 </dependency>
118 <dependency>
119 <groupId>org.springframework</groupId>
120 <artifactId>spring-core</artifactId>
121 </dependency>
122 <dependency>
123 <groupId>org.springframework</groupId>
124 <artifactId>spring-web</artifactId>
125 </dependency>
126 <dependency>
127 <groupId>org.springframework</groupId>
128 <artifactId>spring-webmvc</artifactId>
129 </dependency>
130 <dependency>
131 <groupId>org.springframework</groupId>
132 <artifactId>spring-aop</artifactId>
133 </dependency>
134 <dependency>
135 <groupId>org.onehippo.ecm.hst</groupId>
136 <artifactId>hst-api</artifactId>
137 <version>${project.version}</version>
138 </dependency>
139 <dependency>
140 <groupId>org.onehippo.ecm.hst</groupId>
141 <artifactId>hst-commons</artifactId>
142 <version>${project.version}</version>
143 </dependency>
144 <dependency>
145 <groupId>org.onehippo.ecm.hst</groupId>
146 <artifactId>hst-ocm</artifactId>
147 <version>${project.version}</version>
148 </dependency>
149 <dependency>
150 <groupId>org.onehippo.ecm.hst.components</groupId>
151 <artifactId>hst-core</artifactId>
152 <version>${project.version}</version>
153 <scope>runtime</scope>
154 </dependency>
155 <dependency>
156 <groupId>org.onehippo.ecm.hst</groupId>
157 <artifactId>hst-client</artifactId>
158 <version>${project.version}</version>
159 </dependency>
160 <!-- temporarily added as long as in sandbox -->
161 <dependency>
162 <groupId>org.onehippo.ecm.hst.testsuite.sandbox</groupId>
163 <artifactId>hst-sandbox-persistency</artifactId>
164 <version>${project.version}</version>
165 </dependency>
166 </dependencies>
167
168 <build>
169 <defaultGoal>package</defaultGoal>
170 <finalName>site</finalName>
171 <plugins>
172 <plugin>
173 <groupId>org.mortbay.jetty</groupId>
174 <artifactId>maven-jetty-plugin</artifactId>
175 <version>6.1.18</version>
176 <configuration>
177 <scanIntervalSeconds>5</scanIntervalSeconds>
178 <webAppConfig>
179 <contextPath>/site</contextPath>
180 <baseResource implementation="org.mortbay.resource.ResourceCollection">
181 <resourcesAsCSV>src/main/webapp, ${project.build.directory}/${project.build.finalName}</resourcesAsCSV>
182 </baseResource>
183 <tempDirectory>${project.build.directory}/work</tempDirectory>
184 </webAppConfig>
185 <connectors>
186 <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
187 <port>8085</port>
188 </connector>
189 </connectors>
190 </configuration>
191 <dependencies>
192 <!-- atomikos dependecies for running jetty:run[-war|-exploded] -->
193 <dependency>
194 <groupId>com.atomikos</groupId>
195 <artifactId>transactions-api</artifactId>
196 <version>3.1.4</version>
197 <scope>runtime</scope>
198 </dependency>
199 <dependency>
200 <groupId>com.atomikos</groupId>
201 <artifactId>transactions-jta</artifactId>
202 <version>3.1.4</version>
203 <scope>runtime</scope>
204 </dependency>
205 <dependency>
206 <groupId>com.atomikos</groupId>
207 <artifactId>transactions</artifactId>
208 <version>3.1.4</version>
209 <scope>runtime</scope>
210 </dependency>
211 <dependency>
212 <groupId>com.atomikos</groupId>
213 <artifactId>atomikos-util</artifactId>
214 <version>3.1.4</version>
215 <scope>runtime</scope>
216 </dependency>
217
218 <!-- Shared Libraries
219 The followings will be located in shared lib folder in the servlet container. -->
220 <dependency>
221 <groupId>org.apache.geronimo.specs</groupId>
222 <artifactId>geronimo-jta_1.1_spec</artifactId>
223 <version>${jta.version}</version>
224 <scope>runtime</scope>
225 </dependency>
226
227 </dependencies>
228 </plugin>
229 <plugin>
230 <inherited>true</inherited>
231 <artifactId>maven-compiler-plugin</artifactId>
232 <configuration>
233 <target>1.5</target>
234 <source>1.5</source>
235 </configuration>
236 </plugin>
237
238 <!-- Include DOJO Library -->
239 <plugin>
240 <groupId>org.apache.maven.plugins</groupId>
241 <artifactId>maven-dependency-plugin</artifactId>
242 <executions>
243 <execution>
244 <id>unpack</id>
245 <phase>process-resources</phase>
246 <goals>
247 <goal>unpack</goal>
248 </goals>
249 <configuration>
250 <artifactItems>
251 <artifactItem>
252 <groupId>org.dojotoolkit</groupId>
253 <artifactId>dojo</artifactId>
254 <version>1.3.0</version>
255 <type>zip</type>
256 <overWrite>false</overWrite>
257 <outputDirectory>${project.build.directory}/${project.build.finalName}/javascript</outputDirectory>
258 <includes>**/*</includes>
259 </artifactItem>
260 </artifactItems>
261 </configuration>
262 </execution>
263 </executions>
264 </plugin>
265
266 </plugins>
267
268 <resources>
269 <resource>
270 <directory>src/main/resources</directory>
271 <filtering>true</filtering>
272 </resource>
273 </resources>
274
275 </build>
276
277 <profiles>
278
279 <profile>
280 <id>tomcat</id>
281 <build>
282 <plugins>
283 <plugin>
284 <groupId>org.codehaus.mojo</groupId>
285 <artifactId>properties-maven-plugin</artifactId>
286 <version>1.0-alpha-1</version>
287 <executions>
288 <execution>
289 <phase>initialize</phase>
290 <goals>
291 <goal>read-project-properties</goal>
292 </goals>
293 <configuration>
294 <quiet>true</quiet>
295 <files>
296 <file>../../build.properties</file>
297 </files>
298 </configuration>
299 </execution>
300 </executions>
301 </plugin>
302 <plugin>
303 <groupId>org.apache.maven.plugins</groupId>
304 <artifactId>maven-dependency-plugin</artifactId>
305 <executions>
306 <execution>
307 <id>copy-shared-libs</id>
308 <phase>install</phase>
309 <goals>
310 <goal>copy</goal>
311 </goals>
312 <configuration>
313 <artifactItems>
314 <artifactItem>
315 <groupId>org.apache.geronimo.specs</groupId>
316 <artifactId>geronimo-jta_1.1_spec</artifactId>
317 <outputDirectory>${tomcat.hst.shared.lib}</outputDirectory>
318 </artifactItem>
319 </artifactItems>
320 </configuration>
321 </execution>
322 </executions>
323 </plugin>
324 <plugin>
325 <groupId>org.apache.maven.plugins</groupId>
326 <artifactId>maven-antrun-plugin</artifactId>
327 <version>1.2</version>
328 <executions>
329 <execution>
330 <id>deploy-to-tomcat</id>
331 <phase>install</phase>
332 <configuration>
333 <tasks>
334
335 <echo>Replacing cms web application into tomcat.</echo>
336 <delete dir="${tomcat.hst.cms.webapp}" />
337 <mkdir dir="${tomcat.hst.cms.webapp}" />
338 <unwar src="../cms/target/cms.war" dest="${tomcat.hst.cms.webapp}" overwrite="true" />
339
340 <echo>Replacing site web application into tomcat.</echo>
341 <delete dir="${tomcat.server.home}/webapps/${project.build.finalName}.war" />
342 <delete dir="${tomcat.server.home}/webapps/${project.build.finalName}" />
343 <copy file="${project.build.directory}/${project.build.finalName}.war" tofile="${tomcat.server.home}/webapps/${project.build.finalName}.war" overwrite="true" />
344
345 </tasks>
346 </configuration>
347 <goals>
348 <goal>run</goal>
349 </goals>
350 </execution>
351 </executions>
352 <dependencies>
353 <dependency>
354 <groupId>javax.jcr</groupId>
355 <artifactId>jcr</artifactId>
356 <version>${javax.jcr.version}</version>
357 </dependency>
358 <dependency>
359 <groupId>org.apache.geronimo.specs</groupId>
360 <artifactId>geronimo-jta_1.1_spec</artifactId>
361 <version>${jta.version}</version>
362 <scope>runtime</scope>
363 </dependency>
364 </dependencies>
365 </plugin>
366 </plugins>
367 </build>
368 </profile>
369
370 <profile>
371 <id>jetspeed</id>
372
373 <properties>
374 <site.log.dir.name>${org.apache.portals.logdir}</site.log.dir.name>
375 </properties>
376
377 <dependencies>
378 <dependency>
379 <groupId>javax.jcr</groupId>
380 <artifactId>jcr</artifactId>
381 <scope>provided</scope>
382 </dependency>
383 <dependency>
384 <groupId>org.onehippo.ecm.hst</groupId>
385 <artifactId>hst-api</artifactId>
386 <version>${project.version}</version>
387 <scope>provided</scope>
388 </dependency>
389 <dependency>
390 <groupId>org.onehippo.ecm.hst</groupId>
391 <artifactId>hst-commons</artifactId>
392 <version>${project.version}</version>
393 <scope>provided</scope>
394 </dependency>
395 </dependencies>
396
397 <build>
398 <plugins>
399 <plugin>
400 <groupId>org.codehaus.mojo</groupId>
401 <artifactId>properties-maven-plugin</artifactId>
402 <version>1.0-alpha-1</version>
403 <executions>
404 <execution>
405 <phase>initialize</phase>
406 <goals>
407 <goal>read-project-properties</goal>
408 </goals>
409 <configuration>
410 <quiet>true</quiet>
411 <files>
412 <file>../../build.properties</file>
413 </files>
414 </configuration>
415 </execution>
416 </executions>
417 </plugin>
418 <plugin>
419 <groupId>org.apache.maven.plugins</groupId>
420 <artifactId>maven-war-plugin</artifactId>
421 <version>2.0</version>
422 <configuration>
423 <webXml>src/main/webapp/WEB-INF/pa-web.xml</webXml>
424 </configuration>
425 </plugin>
426 <plugin>
427 <groupId>org.apache.maven.plugins</groupId>
428 <artifactId>maven-dependency-plugin</artifactId>
429 <executions>
430 <execution>
431 <id>copy-shared-libs</id>
432 <phase>install</phase>
433 <goals>
434 <goal>copy</goal>
435 </goals>
436 <configuration>
437 <artifactItems>
438 <artifactItem>
439 <groupId>org.apache.geronimo.specs</groupId>
440 <artifactId>geronimo-jta_1.1_spec</artifactId>
441 <outputDirectory>${jetspeed.hst.shared.lib}</outputDirectory>
442 </artifactItem>
443 <artifactItem>
444 <groupId>javax.jcr</groupId>
445 <artifactId>jcr</artifactId>
446 <outputDirectory>${jetspeed.hst.shared.lib}</outputDirectory>
447 </artifactItem>
448 <artifactItem>
449 <groupId>org.onehippo.ecm.hst</groupId>
450 <artifactId>hst-api</artifactId>
451 <outputDirectory>${jetspeed.hst.shared.lib}</outputDirectory>
452 </artifactItem>
453 <artifactItem>
454 <groupId>org.onehippo.ecm.hst</groupId>
455 <artifactId>hst-commons</artifactId>
456 <outputDirectory>${jetspeed.hst.shared.lib}</outputDirectory>
457 </artifactItem>
458 </artifactItems>
459 </configuration>
460 </execution>
461 </executions>
462 </plugin>
463 <plugin>
464 <groupId>org.apache.maven.plugins</groupId>
465 <artifactId>maven-antrun-plugin</artifactId>
466 <version>1.2</version>
467 <executions>
468 <execution>
469 <id>deploy-to-jetspeed</id>
470 <phase>install</phase>
471 <configuration>
472 <tasks>
473
474 <echo>Replacing cms web application into jetspeed.</echo>
475 <delete dir="${jetspeed.hst.cms.webapp}" />
476 <mkdir dir="${jetspeed.hst.cms.webapp}" />
477 <unwar src="../cms/target/cms.war" dest="${jetspeed.hst.cms.webapp}" overwrite="true" />
478
479 <echo>Replacing site portlet application into jetspeed.</echo>
480 <delete dir="${jetspeed.server.home}/webapps/${project.build.finalName}" />
481 <delete file="${jetspeed.server.home}/webapps/${project.build.finalName}.war" />
482 <delete file="${jetspeed.portal.webapp}/WEB-INF/deploy/${project.build.finalName}.war" />
483 <copy file="${project.build.directory}/${project.build.finalName}.war" tofile="${jetspeed.portal.webapp}/WEB-INF/deploy/${project.build.finalName}.war" overwrite="true" />
484
485 <echo>Copy core libaries into jetspeed</echo>
486 <copy todir="${jetspeed.portal.webapp}/WEB-INF/lib" overwrite="true">
487 <fileset dir="${project.build.directory}/${project.build.finalName}/WEB-INF/lib">
488 <include name="commons-proxy-*.jar" />
489 </fileset>
490 <fileset dir="${project.build.directory}/${project.build.finalName}/WEB-INF/lib">
491 <exclude name="commons-*.jar" />
492 <exclude name="hst-client-*.jar" />
493 <exclude name="jstl-*.jar" />
494 <exclude name="slf4j-*.jar" />
495 <exclude name="log4j-*.jar" />
496 <exclude name="standard-*.jar" />
497 <exclude name="spring-*.jar" />
498 <exclude name="xml-apis-*.jar" />
499 <exclude name="xercesImpl-*.jar" />
500 <exclude name="xalan-*.jar" />
501 <exclude name="jdo2-*.jar" />
502 <exclude name="jpox-*.jar" />
503 <exclude name="wicket-*.jar" />
504 </fileset>
505 </copy>
506
507 <echo>Copy hst configuration into jetspeed</echo>
508 <copy todir="${jetspeed.portal.webapp}/WEB-INF" overwrite="true">
509 <fileset dir="${project.build.directory}/${project.build.finalName}/WEB-INF">
510 <include name="hst*.properties" />
511 <include name="hst*.xml" />
512 </fileset>
513 </copy>
514
515 <echo>Copy example psml page into jetspeed</echo>
516 <copy todir="${jetspeed.portal.webapp}/WEB-INF/pages" overwrite="true">
517 <fileset dir="src/main/webapp/WEB-INF/portal-pages">
518 <include name="**/*.psml" />
519 </fileset>
520 </copy>
521
522 <echo><![CDATA[
523 ========================================================================
524 [Notice]
525
526 Thank you for trying jetspeed profile.
527
528 Deploying artifacts are done, but you need to the web.xml file in jetspeed.
529
530 Add the following servlet definition in /jetspeed/WEB-INF/web.xml
531
532 <servlet>
533 <servlet-name>HstSiteConfigServlet</servlet-name>
534 <servlet-class>org.hippoecm.hst.site.container.HstSiteConfigServlet</servlet-class>
535 <init-param>
536 <param-name>forceful.reinit</param-name>
537 <param-value>true</param-value>
538 </init-param>
539 <load-on-startup>1</load-on-startup>
540 </servlet>
541
542 Restart your Jetspeed and visit the following page:
543
544 http://localhost:8080/jetspeed/portal/
545
546 And, click `HST-2 Demo' menu!
547
548 ========================================================================
549 ]]></echo>
550
551 </tasks>
552 </configuration>
553 <goals>
554 <goal>run</goal>
555 </goals>
556 </execution>
557 </executions>
558 </plugin>
559 </plugins>
560 </build>
561 </profile>
562
563 </profiles>
564
565
566 </project>

Properties

Name Value
svn:eol-style native
svn:keywords Id
svn:mime-type text/plain