| <?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> |
| <groupId>${groupId}</groupId> |
| <artifactId>${artifactId}</artifactId> |
| <packaging>war</packaging> |
| <version>${version}</version> |
| <name>A custom project using myfaces</name> |
| <url>http://www.myorganization.org</url> |
| |
| <properties> |
| <jsf-myfaces.version>1.2.7</jsf-myfaces.version> |
| <jsf-ri.version>1.2_13</jsf-ri.version> |
| <maven.jetty.plugin.version>6.1.16</maven.jetty.plugin.version> |
| <log4j.version>1.2.13</log4j.version> |
| <portlet-bridge.version>1.0.0-beta</portlet-bridge.version> |
| </properties> |
| |
| <dependencies> |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>servlet-api</artifactId> |
| <version>2.4</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.servlet.jsp</groupId> |
| <artifactId>jsp-api</artifactId> |
| <version>2.1</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>javax.servlet</groupId> |
| <artifactId>jstl</artifactId> |
| <version>1.2</version> |
| <scope>runtime</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>portlet-api</groupId> |
| <artifactId>portlet-api</artifactId> |
| <version>1.0</version> |
| <scope>provided</scope> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.myfaces.portlet-bridge</groupId> |
| <artifactId>portlet-bridge-api</artifactId> |
| <version>${portlet-bridge.version}</version> |
| </dependency> |
| |
| <dependency> |
| <groupId>org.apache.myfaces.portlet-bridge</groupId> |
| <artifactId>portlet-bridge-impl</artifactId> |
| <version>${portlet-bridge.version}</version> |
| </dependency> |
| </dependencies> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-jdev-plugin</artifactId> |
| <groupId>org.apache.myfaces.trinidadbuild</groupId> |
| <configuration> |
| <libraries> |
| <library>JSP Runtime</library> |
| </libraries> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <profiles> |
| <!-- sets up the webapp for deployment to pluto "mvn clean install -Ppluto" --> |
| <profile> |
| <id>pluto</id> |
| <build> |
| <plugins> |
| <!-- configure maven-war-plugin to use updated web.xml --> |
| <plugin> |
| <artifactId>maven-war-plugin</artifactId> |
| <configuration> |
| <webXml> |
| ${project.build.directory}/pluto-resources/web.xml |
| </webXml> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.apache.pluto</groupId> |
| <artifactId>maven-pluto-plugin</artifactId> |
| <version>1.1.4</version> |
| <executions> |
| <execution> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>assemble</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <!-- To run jetty, issue "mvn clean -PjettyConfig jetty:run" --> |
| <profile> |
| <id>jettyConfig</id> |
| <dependencies> |
| <dependency> |
| <groupId>com.bekk.boss</groupId> |
| <artifactId>maven-jetty-pluto-embedded</artifactId> |
| <version>1.0</version> |
| </dependency> |
| <dependency> |
| <groupId>log4j</groupId> |
| <artifactId>log4j</artifactId> |
| <version>${log4j.version}</version> |
| <type>jar</type> |
| </dependency> |
| </dependencies> |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| </resource> |
| <resource> |
| <directory>src/main/log4j</directory> |
| </resource> |
| </resources> |
| <plugins> |
| <plugin> |
| <groupId>org.mortbay.jetty</groupId> |
| <artifactId>maven-jetty-plugin</artifactId> |
| <version>${maven.jetty.plugin.version}</version> |
| <configuration> |
| <webXml>${project.build.directory}/pluto-resources/web.xml</webXml> |
| <webDefaultXml>src/main/webapp/WEB-INF/jetty-pluto-web-default.xml</webDefaultXml> |
| <systemProperties> |
| <systemProperty> |
| <name>org.apache.pluto.embedded.portletId</name> |
| <value>${artifactId}</value> |
| </systemProperty> |
| <systemProperty> |
| <name>org.apache.commons.logging.Log</name> |
| <value>org.apache.commons.logging.impl.Log4JLogger</value> |
| </systemProperty> |
| </systemProperties> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.apache.pluto</groupId> |
| <artifactId>maven-pluto-plugin</artifactId> |
| <version>1.1.4</version> |
| <executions> |
| <execution> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>assemble</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <!-- By default the war examples use myfaces! :) --> |
| <profile> |
| <id>myfaces</id> |
| <activation> |
| <property> |
| <name>!jsf</name> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>org.apache.myfaces.core</groupId> |
| <artifactId>myfaces-api</artifactId> |
| <version>${jsf-myfaces.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| <dependency> |
| <groupId>org.apache.myfaces.core</groupId> |
| <artifactId>myfaces-impl</artifactId> |
| <version>${jsf-myfaces.version}</version> |
| <scope>compile</scope> |
| </dependency> |
| </dependencies> |
| </profile> |
| <profile> |
| <!-- Active adding -Djsf=ri when execute maven goals. --> |
| <id>jsf-ri</id> |
| <activation> |
| <property> |
| <name>jsf</name> |
| <value>ri</value> |
| </property> |
| </activation> |
| <dependencies> |
| <dependency> |
| <groupId>javax.faces</groupId> |
| <artifactId>jsf-api</artifactId> |
| <version>${jsf-ri.version}</version> |
| </dependency> |
| <dependency> |
| <groupId>javax.faces</groupId> |
| <artifactId>jsf-impl</artifactId> |
| <version>${jsf-ri.version}</version> |
| </dependency> |
| </dependencies> |
| </profile> |
| </profiles> |
| </project> |