blob: d7322a114aaa3ed038e636169b2187e6651b8967 [file] [log] [blame]
<?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.
-->
<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>
<name>Apache MyFaces Trinidad Examples</name>
<description>Parent project for the Trinidad Example Projects</description>
<parent>
<groupId>org.apache.myfaces.trinidad</groupId>
<artifactId>trinidad</artifactId>
<version>1.2.15</version>
</parent>
<artifactId>trinidad-example</artifactId>
<packaging>pom</packaging>
<properties>
<portlet.version>1.0</portlet.version>
</properties>
<!-- Project dependencies -->
<dependencies>
<!-- Apache Trinidad -->
<dependency>
<groupId>org.apache.myfaces.trinidad</groupId>
<artifactId>trinidad-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.myfaces.trinidad</groupId>
<artifactId>trinidad-impl</artifactId>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
<dependency>
<groupId>org.apache.myfaces.portlet-bridge</groupId>
<artifactId>portlet-bridge-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.myfaces.portlet-bridge</groupId>
<artifactId>portlet-bridge-impl</artifactId>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>javax.portlet</groupId>
<artifactId>portlet-api</artifactId>
</dependency>
</dependencies>
<modules>
<module>trinidad-blank</module>
<module>trinidad-demo</module>
<module>trinidad-components-showcase</module>
</modules>
<profiles>
<!--
This profile is for preparing a release. Execute this profile like this:
mvn release:prepare -Papache-releae
-->
<profile>
<id>apache-release</id>
<modules>
<module>trinidad-example-assembly</module>
</modules>
</profile>
<profile>
<id>jettyConfig</id>
<dependencyManagement>
<dependencies>
<!--dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
<scope>runtime</scope>
</dependency-->
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</dependencyManagement>
</profile>
<!--
This profile activates MyFaces as the release to use for these demos. By default
MyFaces is used when these examples are run in Jetty and/or used with the -PincludeJSF
flag. To invoke this profile, simply do not include a -Djsf= property on your maven
command line. Execute this profile like this:
mvn -PjettyConfig jetty:run
-->
<profile>
<id>myfaces</id>
<activation>
<property>
<name>!jsf</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
</dependency>
</dependencies>
</profile>
<!--
This profile activates the JSF RI as the release to use for these demos. When activated
the JSF RI is used when these examples are run in Jetty and/or used with the
-PincludeJSF flag. To invoke this profile, simply do include a -Djsf=ri property on
your maven command line. Execute this profile like this:
mvn -PjettyConfig -Djsf=ri jetty:run
-->
<profile>
<id>jsfri</id>
<activation>
<property>
<name>jsf</name>
<value>ri</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-api</artifactId>
</dependency>
<dependency>
<groupId>javax.faces</groupId>
<artifactId>jsf-impl</artifactId>
</dependency>
</dependencies>
</profile>
<!-- JSF2 (SUN RI)
mvn -PjettyConfig -Djsf=ri2 jetty:run
-->
<profile>
<id>jsfri2</id>
<activation>
<property>
<name>jsf</name>
<value>ri2</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
</dependency>
</dependencies>
</profile>
<!-- JSF2 (Apache MyFaces)
mvn -PjettyConfig -Djsf=myfaces2 jetty:run
-->
<profile>
<id>myfaces2</id>
<activation>
<property>
<name>jsf</name>
<value>myfaces2</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<version>${myfaces2.version}</version>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>${myfaces2.version}</version>
</dependency>
<dependency>
<groupId>com.sun.facelets</groupId>
<artifactId>jsf-facelets</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
</project>