blob: b04e333da3f4c26597bdee54558b3d65a4651492 [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>
<parent>
<groupId>org.apache.myfaces.tobago</groupId>
<artifactId>tobago</artifactId>
<version>2.0.0-beta-3</version>
</parent>
<packaging>pom</packaging>
<name>Tobago Examples</name>
<artifactId>tobago-example</artifactId>
<build>
<!-- NOTE The addressbook run only with mvn jetty:run-exploded.
For the other examples mvn jetty:run should work.
For Debugging with jetty set following options
MAVEN_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
-->
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<!--
<webApp>
<contextPath>/example</contextPath>
</webApp>
-->
<!-- use this to change the port-->
<!--
<connectors>
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>7080</port>
</connector>
</connectors>
-->
</configuration>
</plugin>
<plugin>
<!-- usage: mvn clean package tomee:run -Djsf=provided -->
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<tomeeVersion>1.5.0</tomeeVersion>
<tomeeClassifier>plus</tomeeClassifier>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>7.6.12.v20130726</version>
<!--
<version>8.1.14.v20131031</version>
This only works with modifications,
see http://jsflive.wordpress.com/2012/08/19/jsf-2-on-jetty-8/
or Tobago 3.0.x
-->
<configuration>
<scanIntervalSeconds>5</scanIntervalSeconds>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
<profiles>
<profile>
<id>default-modules</id>
<activation>
<property>
<name>!non-default-modules</name>
</property>
</activation>
<modules>
<module>tobago-example-addressbook</module>
<module>tobago-example-addressbook-cdi</module>
<module>tobago-example-blank</module>
<module>tobago-example-data</module>
<module>tobago-example-demo</module>
<module>tobago-example-experimental</module>
<module>tobago-example-test</module>
</modules>
</profile>
<profile>
<id>all-modules</id>
<modules>
<module>tobago-example-addressbook</module>
<module>tobago-example-addressbook-cdi</module>
<module>tobago-example-blank</module>
<module>tobago-example-data</module>
<module>tobago-example-demo</module>
<module>tobago-example-portlet</module>
<module>tobago-example-sandbox</module>
<module>tobago-example-security</module>
<module>tobago-example-experimental</module>
<module>tobago-example-test</module>
<module>tobago-example-assembly</module>
<module>tobago-theme-example</module>
</modules>
</profile>
<profile>
<id>apache-release</id>
<modules>
<module>tobago-example-blank</module>
<module>tobago-example-data</module>
<module>tobago-example-demo</module>
</modules>
</profile>
<profile>
<id>generate-assembly</id>
<modules>
<module>tobago-example-blank</module>
<module>tobago-example-data</module>
<module>tobago-example-demo</module>
<module>tobago-example-assembly</module>
</modules>
</profile>
<profile>
<id>ssl</id>
<!--
Use
mvn -P ssl jetty:run
to run the jetty using https, this should work in every example. But need to have the parent example folder
checked out.
-->
<build>
<plugins>
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<configuration>
<connectors>
<connector implementation="org.eclipse.jetty.server.ssl.SslSocketConnector">
<port>1443</port>
<maxIdleTime>30000</maxIdleTime>
<keystore>../src/test/resources/jettykeystore</keystore>
<password>xxxxxx</password>
<keyPassword>xxxxxx</keyPassword>
</connector>
</connectors>
<stopKey>stopKey</stopKey>
<stopPort>9999</stopPort>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>jsf-provided</id>
<activation>
<property>
<name>jsf</name>
<value>provided</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<version>${myfaces20.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>${myfaces20.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>myfaces-2.0</id>
<activation>
<property>
<name>!jsf</name>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<version>${myfaces20.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>${myfaces20.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>myfaces-2.1</id>
<activation>
<property>
<name>jsf</name>
<value>myfaces-2.1</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<version>${myfaces21.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>${myfaces21.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>myfaces-2.2</id>
<activation>
<property>
<name>jsf</name>
<value>myfaces-2.2</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-api</artifactId>
<version>${myfaces22.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.myfaces.core</groupId>
<artifactId>myfaces-impl</artifactId>
<version>${myfaces22.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>mojarra-2.0</id>
<activation>
<property>
<name>jsf</name>
<value>mojarra-2.0</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>${mojarra20.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>${mojarra20.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>mojarra-2.1</id>
<activation>
<property>
<name>jsf</name>
<value>mojarra-2.1</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>${mojarra21.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>${mojarra21.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>mojarra-2.2</id>
<activation>
<property>
<name>jsf</name>
<value>mojarra-2.2</value>
</property>
</activation>
<dependencies>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-api</artifactId>
<version>${mojarra22.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.sun.faces</groupId>
<artifactId>jsf-impl</artifactId>
<version>${mojarra22.version}</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<scope>runtime</scope>
</dependency>
</dependencies>
</profile>
<profile>
<id>liberty</id>
<build>
<plugins>
<plugin>
<!-- The usage is documented in the FAQ -->
<groupId>com.ibm.websphere.wlp.maven.plugins</groupId>
<artifactId>liberty-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<serverHome>${wlp.directory}/wlp</serverHome>
<appArchive>${project.build.directory}/${project.build.finalName}.war</appArchive>
<serverName>tobago</serverName>
<!-- default debugging port is 7777 -->
<!--<debug>true</debug>-->
</configuration>
</plugin>
</plugins>
</build>
<pluginRepositories>
<pluginRepository>
<!-- For IBM Websphere Liberty Profile (WLP) -->
<id>Liberty</id>
<name>Liberty Repository</name>
<url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url>
<layout>default</layout>
<snapshots>
<enabled>false</enabled>
</snapshots>
<releases>
<enabled>true</enabled>
</releases>
</pluginRepository>
</pluginRepositories>
</profile>
<profile>
<id>jboss</id>
<build>
<plugins>
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
<version>7.3.Final</version>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>