View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-documentation/hst_docs/trunk/site/pom.xml
(Generate patch)

Comparing hippo-documentation/hst_docs/trunk/site/pom.xml (file contents):
Revision 20423 by rbijlsma, Wed Oct 28 15:14:55 2009 UTC vs.
Revision 20424 by bvdschans, Thu Oct 29 13:57:59 2009 UTC

46 </dependency> 46 </dependency>
47 <dependency> 47 <dependency>
48 <groupId>taglibs</groupId> 48 <groupId>taglibs</groupId>
49 <artifactId>standard</artifactId> 49 <artifactId>standard</artifactId>
50 <scope>runtime</scope> 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> 51 </dependency>
68 <dependency> 52 <dependency>
69 <groupId>org.slf4j</groupId> 53 <groupId>org.slf4j</groupId>
70 <artifactId>slf4j-api</artifactId> 54 <artifactId>slf4j-api</artifactId>
71 </dependency> 55 </dependency>
220 <resource> 204 <resource>
221 <directory>src/main/resources</directory> 205 <directory>src/main/resources</directory>
222 <filtering>true</filtering> 206 <filtering>true</filtering>
223 </resource> 207 </resource>
224 </resources> 208 </resources>
225
226 </build> 209 </build>
227 210
228 <profiles> 211 <profiles>
229
230 <profile> 212 <profile>
231 <id>default</id> 213 <id>default</id>
232 <activation> 214 <activation>
233 <activeByDefault>true</activeByDefault> 215 <activeByDefault>true</activeByDefault>
234 </activation> 216 </activation>
247 <dependency> 229 <dependency>
248 <groupId>org.onehippo.ecm.hst.dependencies</groupId> 230 <groupId>org.onehippo.ecm.hst.dependencies</groupId>
249 <artifactId>hst-server-dependencies</artifactId> 231 <artifactId>hst-server-dependencies</artifactId>
250 <version>${hst.version}</version> 232 <version>${hst.version}</version>
251 <type>pom</type> 233 <type>pom</type>
234 <exclusions>
235 <exclusion>
236 <groupId>javax.jdo</groupId>
237 <artifactId>jdo2-api</artifactId>
238 </exclusion>
239 <exclusion>
240 <groupId>jpox</groupId>
241 <artifactId>jpox-core</artifactId>
242 </exclusion>
243 <exclusion>
244 <groupId>org.hippoecm</groupId>
245 <artifactId>hippo-ecm-addon-builtin-common</artifactId>
246 </exclusion>
247 <exclusion>
248 <groupId>org.hippoecm</groupId>
249 <artifactId>hippo-ecm-addon-reviewed-action-common</artifactId>
250 </exclusion>
251 </exclusions>
252 </dependency> 252 </dependency>
253 <dependency> 253 <dependency>
254 <groupId>org.onehippo.ecm.hst.dependencies</groupId> 254 <groupId>org.onehippo.ecm.hst.dependencies</groupId>
255 <artifactId>hst-client-dependencies</artifactId> 255 <artifactId>hst-client-dependencies</artifactId>
256 <version>${hst.version}</version> 256 <version>${hst.version}</version>
257 <type>pom</type> 257 <type>pom</type>
258 </dependency> 258 </dependency>
259 </dependencies> 259 </dependencies>
260 </profile> 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
547Thank you for trying jetspeed profile.
548
549Deploying artifacts are done, but you need to the web.xml file in jetspeed.
550
551Add 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
563Restart your Jetspeed and visit the following page:
564
565http://localhost:8080/jetspeed/portal/
566
567And, 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> 261 </profiles>
583</project> 262</project>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines