portlet-bridge-helloDukeCoordination
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.apache.myfaces.portlet-bridge</groupId> <artifactId>portlet-bridge-helloDukeCoordination</artifactId> <version>3.0.0-alpha</version> </dependency>
<?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>MyFaces Portlet Bridge HelloDuke Coordination Demo</name> <artifactId>portlet-bridge-helloDukeCoordination</artifactId> <packaging>war</packaging> <parent> <groupId>org.apache.myfaces.portlet-bridge</groupId> <artifactId>portlet-bridge-examples</artifactId> <version>3.0.0-alpha</version> </parent> <dependencies> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </dependency> <dependency> <groupId>javax.servlet.jsp</groupId> <artifactId>jsp-api</artifactId> </dependency> <dependency> <groupId>javax.portlet</groupId> <artifactId>portlet-api</artifactId> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>portlet-bridge-api</artifactId> </dependency> <dependency> <groupId>${pom.groupId}</groupId> <artifactId>portlet-bridge-impl</artifactId> </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> <profile> <id>pluto-assemble</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <warName>${pom.artifactId}-pluto-${pom.version}</warName> <outputDirectory>${project.build.directory}/../../assembly/target/webapp</outputDirectory> </configuration> </plugin> </plugins> </build> </profile> <!-- sets up the webapp for deployment to pluto 2.0 "mvn clean install -Ppluto" --> <profile> <id>pluto</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webXml>${project.build.directory}/pluto-resources/web.xml</webXml> </configuration> </plugin> <plugin> <groupId>org.apache.portals.pluto</groupId> <artifactId>maven-pluto-plugin</artifactId> <version>2.0.0</version> <executions> <execution> <phase>generate-resources</phase> <goals> <goal>assemble</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <!-- sets up the webapp for deployment to pluto 2.0 (this is included as its the command in 1.0 for building to 2 - i.e. backwards compat) "mvn clean install -Ppluto2" --> <profile> <id>pluto2</id> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webXml>${project.build.directory}/pluto-resources/web.xml</webXml> </configuration> </plugin> <plugin> <groupId>org.apache.portals.pluto</groupId> <artifactId>maven-pluto-plugin</artifactId> <version>2.0.0</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> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>maven-jetty-plugin</artifactId> <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.portletIds</name> <value>portlet-bridge-helloDukeCoordination</value> </systemProperty> </systemProperties> </configuration> </plugin> <plugin> <groupId>org.apache.pluto</groupId> <artifactId>maven-pluto-plugin</artifactId> </plugin> </plugins> </build> </profile> <!-- By default the war examples uses mojarra and packages for a nonjavaee environment (includes the Faces jars)! :) --> <!-- If you are running in a nonJavaEE environment (i.e. Faces isn't already deployed) and hence need to have Mojarra packaged in the war: --> <profile> <id>mojarra-nonjavaee</id> <activation> <property> <name>!jsf</name> </property> </activation> <dependencies> <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-api</artifactId> <version>${mojarra.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-impl</artifactId> <version>${mojarra.version}</version> <scope>runtime</scope> </dependency> </dependencies> <properties> <jsf_implementation>JSF-RI</jsf_implementation> </properties> </profile> <!-- If you are running in a JavaEE environment (i.e. Faces is already deployed) and hence don't need to have Mojarra packaged in the war: --> <!-- mvn install -Djsf=mojarra-javaee --> <profile> <id>mojarra-javaee</id> <activation> <property> <name>jsf</name> <value>mojarra-javaee</value> </property> </activation> <dependencies> <dependency> <groupId>com.sun.faces</groupId> <artifactId>jsf-api</artifactId> </dependency> </dependencies> <properties> <jsf_implementation>JSF-RI</jsf_implementation> </properties> </profile> <!-- To use this examples using the MyFacesImplementation: mvn clean install -Djsf=myfaces-javaee --> <!-- Note: currently carstore doesn't work properly in a myfaces environment --> <profile> <id>myfaces-javaee</id> <activation> <property> <name>jsf</name> <value>myfaces-javaee</value> </property> </activation> <dependencies> <dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-impl</artifactId> <scope>provided</scope> </dependency> </dependencies> </profile> <!-- If you are running in a nonJavaEE environment (i.e. Faces isn't already deployed) and hence need to have MyFaces packaged in the war: --> <!-- mvn install -Djsf=myfaces-nonjavaee --> <!-- Note: currently carstore doesn't work properly in a myfaces environment --> <profile> <id>myfaces-nonjavaee</id> <activation> <property> <name>jsf</name> <value>myfaces-nonjavaee</value> </property> </activation> <dependencies> <dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-api</artifactId> <version>${myfaces.version}</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.myfaces.core</groupId> <artifactId>myfaces-impl</artifactId> <version>${myfaces.version}</version> <scope>runtime</scope> </dependency> </dependencies> </profile> </profiles> </project>