| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| |
| $Id$ |
| --> |
| <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"> |
| <modelVersion>4.0.0</modelVersion> |
| |
| <parent> |
| <groupId>org.apache.taglibs</groupId> |
| <artifactId>taglibs-rdc-parent</artifactId> |
| <version>1.1-SNAPSHOT</version> |
| </parent> |
| |
| <artifactId>taglibs-rdc-examples</artifactId> |
| <packaging>war</packaging> |
| |
| <name>Reusable Dialog Components (RDC) Taglib Examples Application</name> |
| <description> |
| A sample application for demonstrating the features of the |
| Apache Jakarta Reusable Dialog Components (RDC) Taglib. Includes: |
| * Samples for each of the simple and composite component tags |
| * Samples demonstrating the dialog management capabilities |
| (directed dialogs, rule-based dialogs, SCXML-driven dialogs, subdialogs) |
| * A mortgage application |
| * An Amazon music store application |
| </description> |
| |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.taglibs</groupId> |
| <artifactId>taglibs-rdc</artifactId> |
| <version>${version}</version> |
| </dependency> |
| <dependency> |
| <groupId>commons-logging</groupId> |
| <artifactId>commons-logging</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-beanutils</groupId> |
| <artifactId>commons-beanutils</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-digester</groupId> |
| <artifactId>commons-digester</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-el</groupId> |
| <artifactId>commons-el</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>commons-scxml</groupId> |
| <artifactId>commons-scxml</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>struts</groupId> |
| <artifactId>struts</artifactId> |
| <exclusions> |
| <exclusion> |
| <groupId>antlr</groupId> |
| <artifactId>antlr</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-fileupload</groupId> |
| <artifactId>commons-fileupload</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>commons-validator</groupId> |
| <artifactId>commons-validator</artifactId> |
| </exclusion> |
| <exclusion> |
| <groupId>oro</groupId> |
| <artifactId>oro</artifactId> |
| </exclusion> |
| </exclusions> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>jsp-api</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>jstl</artifactId> |
| </dependency> |
| <dependency> |
| <groupId>taglibs</groupId> |
| <artifactId>standard</artifactId> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-war-plugin</artifactId> |
| <configuration> |
| <webResources> |
| <!-- These resources should be included by default, but are not --> |
| <resource> |
| <directory>src/main/resources</directory> |
| <targetPath>WEB-INF/classes</targetPath> |
| </resource> |
| <resource> |
| <directory>.</directory> |
| <targetPath>META-INF</targetPath> |
| <includes> |
| <include>LICENSE.txt</include> |
| <include>NOTICE.txt</include> |
| </includes> |
| </resource> |
| </webResources> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <dependencies> |
| <dependency> |
| <groupId>ant</groupId> |
| <artifactId>ant-trax</artifactId> |
| <version>1.6.5</version> |
| </dependency> |
| </dependencies> |
| <executions> |
| <execution> |
| <id>generatehtml</id> |
| <phase>generate-resources</phase> |
| <configuration> |
| <tasks> |
| <!-- Copy the .jsp files as .text files --> |
| <copy todir="src/main/webapp" > |
| <fileset dir="src/main/webapp" includes="**/*.jsp" excludes="index.jsp"/> |
| <mapper type="glob" from="*.jsp" to="*.text"/> |
| </copy> |
| <!-- Now escape the .text files --> |
| <replace dir="src/main/webapp"> |
| <include name="**/*.text"/> |
| <replacetoken><![CDATA[&]]></replacetoken> |
| <replacevalue><![CDATA[&]]></replacevalue> |
| </replace> |
| <replace dir="src/main/webapp"> |
| <include name="**/*.text"/> |
| <replacetoken><![CDATA[<]]></replacetoken> |
| <replacevalue><![CDATA[<]]></replacevalue> |
| </replace> |
| <replace dir="src/main/webapp"> |
| <include name="**/*.text"/> |
| <replacetoken><![CDATA[>]]></replacetoken> |
| <replacevalue><![CDATA[>]]></replacevalue> |
| </replace> |
| <replace dir="src/main/webapp"> |
| <include name="**/*.text"/> |
| <replacetoken><![CDATA[<!--Example:Start-->]]></replacetoken> |
| <replacevalue><![CDATA[<?xml version="1.0" ?> |
| <document> |
| ]]></replacevalue> |
| </replace> |
| <replace dir="src/main/webapp"> |
| <include name="**/*.text"/> |
| <replacetoken><![CDATA[<!--Example:End-->]]></replacetoken> |
| <replacevalue><![CDATA[</document>]]></replacevalue> |
| </replace> |
| <!-- Then style the .text files as .html files --> |
| <xslt basedir="src/main/webapp" |
| destdir="src/main/webapp" |
| includes="**/*.text" |
| style="src/util/examples.xsl"/> |
| <!-- Finally delete the temporary text files --> |
| <delete> |
| <fileset dir="src/main/webapp" includes="**/*.text"/> |
| </delete> |
| </tasks> |
| </configuration> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| </project> |