View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-documentation/hst_docs/tags/Release-HSTTWODOCS-v1_01_20/site/pom.xml
Revision: 20222
Committed: Thu Oct 22 10:36:37 2009 UTC (10 years ago) by rbijlsma
Content type: text/xml
Original Path: hippo-documentation/hst_docs/trunk/site/pom.xml
File size: 20800 byte(s)
Log Message:
HSTTWODOCS-123:prepare release Release-HSTTWODOCS-v1_01_05

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