You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mf...@apache.org on 2010/05/26 22:20:58 UTC

svn commit: r948569 [12/12] - in /myfaces/portlet-bridge/core/trunk: ./ api/src/main/java/javax/portlet/faces/component/ examples/ examples/carstore/ examples/carstore/src/ examples/carstore/src/main/ examples/carstore/src/main/java/ examples/carstore/...

Added: myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/greeting.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/greeting.jsp?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/greeting.jsp (added)
+++ myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/greeting.jsp Wed May 26 20:20:51 2010
@@ -0,0 +1,81 @@
+<%--
+ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+ 
+ Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
+ 
+ The contents of this file are subject to the terms of either the GNU
+ General Public License Version 2 only ("GPL") or the Common Development
+ and Distribution License("CDDL") (collectively, the "License").  You
+ may not use this file except in compliance with the License. You can obtain
+ a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
+ or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific
+ language governing permissions and limitations under the License.
+ 
+ When distributing the software, include this License Header Notice in each
+ file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
+ Sun designates this particular file as subject to the "Classpath" exception
+ as provided by Sun in the GPL Version 2 section of the License file that
+ accompanied this code.  If applicable, add the following below the License
+ Header, with the fields enclosed by brackets [] replaced by your own
+ identifying information: "Portions Copyrighted [year]
+ [name of copyright owner]"
+ 
+ Contributor(s):
+ 
+ If you wish your version of this file to be governed by only the CDDL or
+ only the GPL Version 2, indicate your decision by adding "[Contributor]
+ elects to include this software in this distribution under the [CDDL or GPL
+ Version 2] license."  If you don't indicate a single choice of license, a
+ recipient has the option to distribute your version of this file under
+ either the CDDL, the GPL Version 2 or to extend the choice of license to
+ its licensees as provided above.  However, if you add GPL Version 2 code
+ and therefore, elected the GPL Version 2 license, then the option applies
+ only if the new code is made subject to such option by the copyright
+ holder.
+--%>
+
+<!--
+ The contents of this file are subject to the terms
+ of the Common Development and Distribution License
+ (the License). You may not use this file except in
+ compliance with the License.
+ 
+ You can obtain a copy of the License at
+ https://javaserverfaces.dev.java.net/CDDL.html or
+ legal/CDDLv1.0.txt. 
+ See the License for the specific language governing
+ permission and limitations under the License.
+ 
+ When distributing Covered Code, include this CDDL
+ Header Notice in each file and include the License file
+ at legal/CDDLv1.0.txt.    
+ If applicable, add the following below the CDDL Header,
+ with the fields enclosed by brackets [] replaced by
+ your own identifying information:
+ "Portions Copyrighted [year] [name of copyright owner]"
+ 
+ [Name of File] [ver.__] [Date]
+ 
+ Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+-->
+
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<h2>
+	My name is Duke. What is yours?
+</h2>
+
+<%-- Do not use 'useBean' with the bridge, configure it into faces-config.xml instead --%>
+<%-- jsp:useBean id="UserNameBean" class="helloDuke.UserNameBean" scope="session" /> --%>
+
+	
+<f:view>
+	<h:form id="helloForm">
+		<h:graphicImage id="waveImg" url="/helloDuke/wave.med.gif" />
+		<h:inputText id="username" value="#{userNameBean.userName}" />
+		<h:commandButton id="submit" action="response" value="Submit"
+			type="submit" />
+	</h:form>
+</f:view>
\ No newline at end of file

Added: myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/index.html
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/index.html?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/index.html (added)
+++ myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/index.html Wed May 26 20:20:51 2010
@@ -0,0 +1,11 @@
+
+&nbsp;
+<br>&nbsp;
+
+
+<P>Click&nbsp; <a href="faces/greeting.jsp">here</a>&nbsp;
+to say hello to Duke. </P>
+
+<br>
+<hr WIDTH="100%">
+

Added: myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/response.jsp
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/response.jsp?rev=948569&view=auto
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/response.jsp (added)
+++ myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/response.jsp Wed May 26 20:20:51 2010
@@ -0,0 +1,75 @@
+<%--
+ DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
+ 
+ Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
+ 
+ The contents of this file are subject to the terms of either the GNU
+ General Public License Version 2 only ("GPL") or the Common Development
+ and Distribution License("CDDL") (collectively, the "License").  You
+ may not use this file except in compliance with the License. You can obtain
+ a copy of the License at https://glassfish.dev.java.net/public/CDDL+GPL.html
+ or glassfish/bootstrap/legal/LICENSE.txt.  See the License for the specific
+ language governing permissions and limitations under the License.
+ 
+ When distributing the software, include this License Header Notice in each
+ file and include the License file at glassfish/bootstrap/legal/LICENSE.txt.
+ Sun designates this particular file as subject to the "Classpath" exception
+ as provided by Sun in the GPL Version 2 section of the License file that
+ accompanied this code.  If applicable, add the following below the License
+ Header, with the fields enclosed by brackets [] replaced by your own
+ identifying information: "Portions Copyrighted [year]
+ [name of copyright owner]"
+ 
+ Contributor(s):
+ 
+ If you wish your version of this file to be governed by only the CDDL or
+ only the GPL Version 2, indicate your decision by adding "[Contributor]
+ elects to include this software in this distribution under the [CDDL or GPL
+ Version 2] license."  If you don't indicate a single choice of license, a
+ recipient has the option to distribute your version of this file under
+ either the CDDL, the GPL Version 2 or to extend the choice of license to
+ its licensees as provided above.  However, if you add GPL Version 2 code
+ and therefore, elected the GPL Version 2 license, then the option applies
+ only if the new code is made subject to such option by the copyright
+ holder.
+--%>
+
+<!--
+ The contents of this file are subject to the terms
+ of the Common Development and Distribution License
+ (the License). You may not use this file except in
+ compliance with the License.
+ 
+ You can obtain a copy of the License at
+ https://javaserverfaces.dev.java.net/CDDL.html or
+ legal/CDDLv1.0.txt. 
+ See the License for the specific language governing
+ permission and limitations under the License.
+ 
+ When distributing Covered Code, include this CDDL
+ Header Notice in each file and include the License file
+ at legal/CDDLv1.0.txt.    
+ If applicable, add the following below the CDDL Header,
+ with the fields enclosed by brackets [] replaced by
+ your own identifying information:
+ "Portions Copyrighted [year] [name of copyright owner]"
+ 
+ [Name of File] [ver.__] [Date]
+ 
+ Copyright 2005 Sun Microsystems Inc. All Rights Reserved
+-->
+
+<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
+<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
+
+<f:view>
+	<h:form id="responseform">
+		<h:graphicImage id="waveImg" url="/helloDuke/wave.med.gif" />
+		<h2>
+			Hi,
+			<h:outputText id="userLabel" value="#{userNameBean.userName}" />
+		</h2>
+		<h:commandButton id="back" value="Back" action="greeting" />
+		<p>
+	</h:form>
+</f:view>
\ No newline at end of file

Added: myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/wave.med.gif
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/wave.med.gif?rev=948569&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/portlet-bridge/core/trunk/examples/helloDuke/src/main/webapp/helloDuke/wave.med.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: myfaces/portlet-bridge/core/trunk/examples/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/examples/pom.xml?rev=948569&r1=948568&r2=948569&view=diff
==============================================================================
--- myfaces/portlet-bridge/core/trunk/examples/pom.xml (original)
+++ myfaces/portlet-bridge/core/trunk/examples/pom.xml Wed May 26 20:20:51 2010
@@ -1,73 +1,77 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Copyright 2006 The Apache Software Foundation.
-
-  Licensed 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 Examples</name>
-  <artifactId>portlet-bridge-examples</artifactId>
-  <packaging>pom</packaging>
-
-  <parent>
-    <groupId>org.apache.myfaces.portlet-bridge</groupId>
-    <artifactId>portlet-bridge</artifactId>
-    <version>1.0.0-SNAPSHOT</version>
-  </parent>
-
-  <repositories>
-    <repository>
-      <releases>
-        <enabled>false</enabled>
-      </releases>
-      <snapshots>
-        <enabled>true</enabled>
-      </snapshots>
-      <id>apache-maven-snapshots</id>
-      <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
-    </repository>
-  </repositories>
-
-  <modules>
-    <module>blank</module>
-    <module>demo</module>
-  </modules>
-  
-  <profiles>
-    <profile>
-      <id>prepare-release</id>
-      <activation>
-        <property>
-          <name>prepareRelease</name>
-        </property>
-      </activation>
-      <modules>
-        <module>assembly</module>
-      </modules>
-    </profile>
-
-    <profile>
-      <id>perform-release</id>
-      <activation>
-        <property>
-          <name>performRelease</name>
-          <value>true</value>
-        </property>
-      </activation>
-      <modules>
-        <module>assembly</module>
-      </modules>
-    </profile>
-  </profiles>
-</project> 
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 2006 The Apache Software Foundation.
+
+  Licensed 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 Examples</name>
+  <artifactId>portlet-bridge-examples</artifactId>
+  <packaging>pom</packaging>
+
+  <parent>
+    <groupId>org.apache.myfaces.portlet-bridge</groupId>
+    <artifactId>portlet-bridge</artifactId>
+    <version>1.0.0-SNAPSHOT</version>
+  </parent>
+
+  <repositories>
+    <repository>
+      <releases>
+        <enabled>false</enabled>
+      </releases>
+      <snapshots>
+        <enabled>true</enabled>
+      </snapshots>
+      <id>apache-maven-snapshots</id>
+      <url>http://people.apache.org/repo/m2-snapshot-repository/</url>
+    </repository>
+  </repositories>
+
+  <modules>
+    <module>helloDuke</module>
+    <module>guessNumber</module>
+    <module>facelets-guess</module>
+    <module>carstore</module>
+    <module>guessNumberMojarraFilter</module>
+    <module>guessNumberMyFacesFilter</module>
+  </modules>
+  
+  <profiles>
+    <profile>
+      <id>prepare-release</id>
+      <activation>
+        <property>
+          <name>prepareRelease</name>
+        </property>
+      </activation>
+      <modules>
+        <module>assembly</module>
+      </modules>
+    </profile>
+
+    <profile>
+      <id>perform-release</id>
+      <activation>
+        <property>
+          <name>performRelease</name>
+          <value>true</value>
+        </property>
+      </activation>
+      <modules>
+        <module>assembly</module>
+      </modules>
+    </profile>
+  </profiles>
+</project> 

Modified: myfaces/portlet-bridge/core/trunk/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/portlet-bridge/core/trunk/pom.xml?rev=948569&r1=948568&r2=948569&view=diff
==============================================================================
--- myfaces/portlet-bridge/core/trunk/pom.xml (original)
+++ myfaces/portlet-bridge/core/trunk/pom.xml Wed May 26 20:20:51 2010
@@ -1,298 +1,325 @@
-<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>org.apache.myfaces.portlet-bridge</groupId>
-  <artifactId>portlet-bridge</artifactId>
-  <packaging>pom</packaging>
-  <name>MyFaces Portlet Bridge</name>
-  <version>1.0.0-SNAPSHOT</version>	 
-  <inceptionYear>2007</inceptionYear>  
-  <description>
-  Portlet Bridge for JavaServer Faces is a subproject of Apache MyFaces which provides an
-  implementation of the standardized Portlet Bridge as outlined by JSR-301 and subsequent
-  specifications.  This project will work with MyFaces as well as the R.I. and intended to
-  be used to develop the Portlet Bridge Reference Implementation.
-  </description>
-  
-  <url>http://myfaces.apache.org/portlet-bridge/1.0</url>
-  
-  <parent>
-    <artifactId>portlet-bridge-master-pom</artifactId>
-    <groupId>org.apache.myfaces.portlet-bridge</groupId>
-    <version>3</version>
-  </parent>
-
-  <properties>
-    <latestRelease>1.0.0-beta-2</latestRelease>
-    <portletSpecVersion>1.0</portletSpecVersion>
-    <jsfSpecVersion>1.2</jsfSpecVersion>
-    <specVersion>1.0</specVersion>
-    <jsrNumber>301</jsrNumber>
-    <specLink>http://www.jcp.org/en/jsr/detail?id=${jsrNumber}</specLink>
-    <specName>Portlet ${portletSpecVersion} Bridge for JavaServer Faces ${jsfSpecVersion}</specName>
-    <projectSeries>1.x</projectSeries>
-    <jetty-plugin.version>6.1.16</jetty-plugin.version>
-    <pluto-distribution.version>1.1.6</pluto-distribution.version>
-    <pluto-embedded.version>1.0.1</pluto-embedded.version>
-    <jsf.version>1.2_03</jsf.version>
-  </properties>
-  
-  <!-- issueManagement is in parent -->
-  <!-- ciManagement are in parent -->
-  <!-- mailingLists are in parent -->
-  <!-- developers are in parent -->
-  <!-- contributors are in parent -->
-
-  <scm>
-    <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/portlet-bridge/core/trunk/</connection>
-    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/portlet-bridge/core/trunk/</developerConnection>
-    <url>http://svn.apache.org/viewcvs.cgi/myfaces/portlet-bridge/core/trunk/</url>
-  </scm>
-
-  <distributionManagement>
-    <site>
-      <id>apache-site</id>
-      <url>scpexe://minotaur.apache.org/www/myfaces.apache.org/portlet-bridge/1.0</url>
-    </site>
-  </distributionManagement>
-
-  <modules>
-    <module>api</module>
-    <module>impl</module>
-    <module>examples</module>
-  </modules>
-
-  <!-- Versions and scope of dependencies -->
-  <dependencyManagement>
-    <dependencies>
-        <!-- Portlet API -->
-        <dependency>
-          <groupId>portlet-api</groupId>
-          <artifactId>portlet-api</artifactId>
-          <version>1.0</version>
-          <scope>provided</scope>
-        </dependency>
-
-        <!-- Servlet API -->
-        <dependency>
-          <groupId>javax.servlet</groupId>
-          <artifactId>servlet-api</artifactId>
-          <version>2.4</version>
-          <scope>provided</scope>
-        </dependency>
-
-        <!-- JSP API -->
-        <dependency>
-          <groupId>javax.servlet.jsp</groupId>
-          <artifactId>jsp-api</artifactId>
-          <version>2.1</version>
-          <scope>provided</scope>
-        </dependency>
-
-        <!-- J2EE Annotations -->
-        <dependency>
-          <groupId>org.apache.geronimo.specs</groupId>
-          <artifactId>geronimo-annotation_1.0_spec</artifactId>
-          <version>1.0</version>
-          <scope>provided</scope>
-        </dependency>
-
-        <!-- MyFaces API -->
-        <dependency>
-          <groupId>org.apache.myfaces.core</groupId>
-          <artifactId>myfaces-api</artifactId>
-          <version>1.2.2</version>
-        </dependency>
-        
-        <dependency>
-          <groupId>org.apache.myfaces.core</groupId>
-          <artifactId>myfaces-impl</artifactId>
-          <version>1.2.2</version>
-          <scope>runtime</scope>
-        </dependency>
-        
-       <!-- JSF R.I. API -->
-        <dependency>
-          <groupId>javax.faces</groupId>
-          <artifactId>jsf-api</artifactId>
-          <!-- As per spec, 1.2_03 is the minimum R.I. for version 1.0 bridge -->
-          <version>${jsf.version}</version>
-          <scope>provided</scope>
-        </dependency>
-                
-        <!-- Jetty Pluto Plugin -->        
-        <dependency>
-          <groupId>com.bekk.boss</groupId>
-          <artifactId>maven-jetty-pluto-embedded</artifactId>
-          <version>${pluto-embedded.version}</version>
-        </dependency>
-      
-        <dependency>
-          <groupId>javax.activation</groupId>
-          <artifactId>activation</artifactId>
-          <version>1.1</version>
-        </dependency>
-
-        <!-- JSF Portlet Bridge API -->
-        <dependency>
-          <groupId>${pom.groupId}</groupId>
-          <artifactId>portlet-bridge-api</artifactId>
-          <version>${project.version}</version>
-        </dependency>
-
-        <!-- JSF Portlet Bridge Impl -->
-        <dependency>
-          <groupId>${pom.groupId}</groupId>
-          <artifactId>portlet-bridge-impl</artifactId>
-          <version>${project.version}</version>
-        </dependency>
-      </dependencies>
-  </dependencyManagement>
-  
-  <build>
-    <plugins>
-      <plugin>
-        <artifactId>maven-remote-resources-plugin</artifactId>
-        <version>1.0-alpha-6</version>
-        <executions>
-          <execution>
-            <goals>
-              <goal>process</goal>
-            </goals>
-            <configuration>
-              <resourceBundles>
-                <resourceBundle>org.apache:apache-jar-resource-bundle:1.3</resourceBundle>
-              </resourceBundles>
-              <properties>
-                <addLicense>true</addLicense>
-              </properties>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-      
-      <!-- Generates the Javadocs for the Website.  Wagon will transport it -->
-      <plugin>
-        <artifactId>maven-javadoc-plugin</artifactId>
-        <configuration>
-          <aggregate>false</aggregate>
-          <linksource>true</linksource>
-          <breakiterator>true</breakiterator>
-          <quiet>true</quiet>
-          <verbose>false</verbose>
-          <source>${jdk.version}</source>
-          <charset>UTF-8</charset>
-          <links>
-            <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
-            <link>http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/api</link>
-            <link>http://portals.apache.org/pluto/portlet-1.0-apidocs/</link>
-          </links>
-        </configuration>
-      </plugin>
-
-      <plugin>
-        <artifactId>maven-jar-plugin</artifactId>
-        <configuration>
-          <archive>
-            <manifestEntries>
-              <Specification-Title>${specName}</Specification-Title>
-              <Specification-Version>${specVersion}</Specification-Version>
-              <Specification-Vendor>Java Community (JSR-301)</Specification-Vendor>
-            </manifestEntries>
-          </archive>
-        </configuration>
-      </plugin>
-    </plugins>
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <groupId>org.mortbay.jetty</groupId>
-          <artifactId>maven-jetty-plugin</artifactId>
-          <version>${jetty-plugin.version}</version>
-        </plugin>
-        
-        <plugin>
-          <groupId>org.apache.pluto</groupId>
-          <artifactId>maven-pluto-plugin</artifactId>
-          <version>${pluto-distribution.version}</version>
-          <executions>  
-            <execution>  
-              <phase>generate-resources</phase>  
-              <goals>  
-                <goal>assemble</goal>  
-              </goals>  
-            </execution>  
-          </executions>  
-        </plugin>  
-      </plugins>
-    </pluginManagement>
-  </build>
-  
-  <profiles>  
-    <!-- This profile is invoked by -DprepareRelease=true.  This allows mvn release:prepare to
-         run successfully on the assembly projects. -->
-    <profile>
-      <id>prepare-release</id>
-      <activation>
-        <property>
-          <name>prepareRelease</name>
-        </property>
-      </activation>
-      <modules>
-        <module>assembly</module>
-      </modules>
-      <build>
-        <plugins>
-          <plugin>
-            <artifactId>maven-release-plugin</artifactId>
-            <configuration>
-              <arguments>-DprepareRelease</arguments>
-            </configuration>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-    
-    <profile>
-      <id>perform-release</id>
-      <activation>
-        <property>
-          <name>performRelease</name>
-          <value>true</value>
-        </property>
-      </activation>
-      <modules>
-        <module>assembly</module>
-      </modules>
-      <build>
-        <plugins>
-          <plugin>
-            <artifactId>maven-javadoc-plugin</artifactId>
-            <version>2.2</version>
-            <executions>
-              <execution>
-                <id>attach-javadocs</id>
-                <goals>
-                  <goal>jar</goal>
-                </goals>
-              </execution>
-            </executions>
-          </plugin>
-          <plugin>
-            <groupId>org.apache.maven.plugins</groupId>
-            <artifactId>maven-scm-plugin</artifactId>
-            <executions>
-              <execution>
-                <phase>validate</phase>
-                <id>getting-scm.revision</id>
-                <goals>
-                  <goal>update</goal>
-                </goals>
-              </execution>
-            </executions>
-          </plugin>
-        </plugins>
-      </build>
-    </profile>
-  </profiles>      
+<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>org.apache.myfaces.portlet-bridge</groupId>
+  <artifactId>portlet-bridge</artifactId>
+  <packaging>pom</packaging>
+  <name>MyFaces Portlet Bridge</name>
+  <version>1.0.0-SNAPSHOT</version>	 
+  <inceptionYear>2007</inceptionYear>  
+  <description>
+  Portlet Bridge for JavaServer Faces is a subproject of Apache MyFaces which provides an
+  implementation of the standardized Portlet Bridge as outlined by JSR-301 and subsequent
+  specifications.  This project will work with MyFaces as well as the R.I. and intended to
+  be used to develop the Portlet Bridge Reference Implementation.
+  </description>
+  
+  <url>http://myfaces.apache.org/portlet-bridge/1.0</url>
+  
+  <parent>
+    <artifactId>portlet-bridge-master-pom</artifactId>
+    <groupId>org.apache.myfaces.portlet-bridge</groupId>
+    <version>3</version>
+  </parent>
+
+  <properties>
+    <latestRelease>1.0.0-beta-2</latestRelease>
+    <portletSpecVersion>1.0</portletSpecVersion>
+    <jsfSpecVersion>1.2</jsfSpecVersion>
+    <specVersion>1.0</specVersion>
+    <jsrNumber>301</jsrNumber>
+    <specLink>http://www.jcp.org/en/jsr/detail?id=${jsrNumber}</specLink>
+    <specName>Portlet ${portletSpecVersion} Bridge for JavaServer Faces ${jsfSpecVersion}</specName>
+    <projectSeries>1.x</projectSeries>
+    <jetty-plugin.version>6.1.16</jetty-plugin.version>
+    <pluto-distribution.version>1.1.6</pluto-distribution.version>
+    <pluto-embedded.version>1.0.1</pluto-embedded.version>
+    <mojarra.version>1.2_03</mojarra.version>
+    <myfaces.version>1.2.2</myfaces.version>
+    <facelets.version>1.1.14</facelets.version>
+    <blueprints.version>5</blueprints.version>
+  </properties>
+  
+  <!-- issueManagement is in parent -->
+  <!-- ciManagement are in parent -->
+  <!-- mailingLists are in parent -->
+  <!-- developers are in parent -->
+  <!-- contributors are in parent -->
+
+  <scm>
+    <connection>scm:svn:http://svn.apache.org/repos/asf/myfaces/portlet-bridge/core/trunk/</connection>
+    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/myfaces/portlet-bridge/core/trunk/</developerConnection>
+    <url>http://svn.apache.org/viewcvs.cgi/myfaces/portlet-bridge/core/trunk/</url>
+  </scm>
+
+  <distributionManagement>
+    <site>
+      <id>apache-site</id>
+      <url>scpexe://minotaur.apache.org/www/myfaces.apache.org/portlet-bridge/1.0</url>
+    </site>
+  </distributionManagement>
+
+  <modules>
+    <module>api</module>
+    <module>impl</module>
+    <module>examples</module>
+  </modules>
+
+  <!-- Versions and scope of dependencies -->
+  <dependencyManagement>
+    <dependencies>
+
+        <!-- Blueprints-->
+        <dependency>
+          <groupId>com.sun.javaee.blueprints</groupId>
+          <artifactId>bp-ui-simple</artifactId>
+          <version>5</version>
+        </dependency>
+
+	  <!-- Facelets -->
+        <dependency>
+          <groupId>com.sun.facelets</groupId>
+          <artifactId>jsf-facelets</artifactId>
+          <version>1.1.14</version>
+        </dependency>
+
+        <!-- Portlet API -->
+        <dependency>
+          <groupId>portlet-api</groupId>
+          <artifactId>portlet-api</artifactId>
+          <version>1.0</version>
+          <scope>provided</scope>
+        </dependency>
+
+        <!-- Servlet API -->
+        <dependency>
+          <groupId>javax.servlet</groupId>
+          <artifactId>servlet-api</artifactId>
+          <version>2.4</version>
+          <scope>provided</scope>
+        </dependency>
+
+        <!-- JSP API -->
+        <dependency>
+          <groupId>javax.servlet.jsp</groupId>
+          <artifactId>jsp-api</artifactId>
+          <version>2.1</version>
+          <scope>provided</scope>
+        </dependency>
+
+        <!-- J2EE Annotations -->
+        <dependency>
+          <groupId>org.apache.geronimo.specs</groupId>
+          <artifactId>geronimo-annotation_1.0_spec</artifactId>
+          <version>1.0</version>
+          <scope>provided</scope>
+        </dependency>
+
+        <!-- MyFaces API -->
+        <dependency>
+          <groupId>org.apache.myfaces.core</groupId>
+          <artifactId>myfaces-api</artifactId>
+          <version>${myfaces.version}</version>
+	    <!-- <scope>provided</scope> -->
+        </dependency>
+        
+        <dependency>
+          <groupId>org.apache.myfaces.core</groupId>
+          <artifactId>myfaces-impl</artifactId>
+          <version>${myfaces.version}</version>
+	    <!-- <scope>provided</scope> -->
+        </dependency>
+        
+       <!-- JSF R.I. API -->
+        <dependency>
+          <groupId>javax.faces</groupId>
+          <artifactId>jsf-api</artifactId>
+          <!-- As per spec, 1.2_03 is the minimum R.I. for version 1.0 bridge -->
+          <version>${mojarra.version}</version>
+          <scope>provided</scope>
+        </dependency>
+
+        <dependency>
+          <groupId>javax.faces</groupId>
+          <artifactId>jsf-impl</artifactId>
+          <!-- As per spec, 1.2_03 is the minimum R.I. for version 1.0 bridge -->
+          <version>${mojarra.version}</version>
+          <scope>provided</scope>
+        </dependency>
+                
+        <!-- Jetty Pluto Plugin -->        
+        <dependency>
+          <groupId>com.bekk.boss</groupId>
+          <artifactId>maven-jetty-pluto-embedded</artifactId>
+          <version>${pluto-embedded.version}</version>
+        </dependency>
+      
+        <dependency>
+          <groupId>javax.activation</groupId>
+          <artifactId>activation</artifactId>
+          <version>1.1</version>
+        </dependency>
+
+        <!-- JSF Portlet Bridge API -->
+        <dependency>
+          <groupId>${pom.groupId}</groupId>
+          <artifactId>portlet-bridge-api</artifactId>
+          <version>${project.version}</version>
+        </dependency>
+
+        <!-- JSF Portlet Bridge Impl -->
+        <dependency>
+          <groupId>${pom.groupId}</groupId>
+          <artifactId>portlet-bridge-impl</artifactId>
+          <version>${project.version}</version>
+        </dependency>
+      </dependencies>
+  </dependencyManagement>
+  
+  <build>
+    <plugins>
+      <plugin>
+        <artifactId>maven-remote-resources-plugin</artifactId>
+        <version>1.0-alpha-6</version>
+        <executions>
+          <execution>
+            <goals>
+              <goal>process</goal>
+            </goals>
+            <configuration>
+              <resourceBundles>
+                <resourceBundle>org.apache:apache-jar-resource-bundle:1.3</resourceBundle>
+              </resourceBundles>
+              <properties>
+                <addLicense>true</addLicense>
+              </properties>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+      
+      <!-- Generates the Javadocs for the Website.  Wagon will transport it -->
+      <plugin>
+        <artifactId>maven-javadoc-plugin</artifactId>
+        <configuration>
+          <aggregate>false</aggregate>
+          <linksource>true</linksource>
+          <breakiterator>true</breakiterator>
+          <quiet>true</quiet>
+          <verbose>false</verbose>
+          <source>${jdk.version}</source>
+          <charset>UTF-8</charset>
+          <links>
+            <link>http://java.sun.com/j2se/1.5.0/docs/api</link>
+            <link>http://java.sun.com/javaee/javaserverfaces/1.2_MR1/docs/api</link>
+            <link>http://portals.apache.org/pluto/portlet-1.0-apidocs/</link>
+          </links>
+        </configuration>
+      </plugin>
+
+      <plugin>
+        <artifactId>maven-jar-plugin</artifactId>
+        <configuration>
+          <archive>
+            <manifestEntries>
+              <Specification-Title>${specName}</Specification-Title>
+              <Specification-Version>${specVersion}</Specification-Version>
+              <Specification-Vendor>Java Community (JSR-301)</Specification-Vendor>
+            </manifestEntries>
+          </archive>
+        </configuration>
+      </plugin>
+    </plugins>
+    <pluginManagement>
+      <plugins>
+        <plugin>
+          <groupId>org.mortbay.jetty</groupId>
+          <artifactId>maven-jetty-plugin</artifactId>
+          <version>${jetty-plugin.version}</version>
+        </plugin>
+        
+        <plugin>
+          <groupId>org.apache.pluto</groupId>
+          <artifactId>maven-pluto-plugin</artifactId>
+          <version>${pluto-distribution.version}</version>
+          <executions>  
+            <execution>  
+              <phase>generate-resources</phase>  
+              <goals>  
+                <goal>assemble</goal>  
+              </goals>  
+            </execution>  
+          </executions>  
+        </plugin>  
+      </plugins>
+    </pluginManagement>
+  </build>
+  
+  <profiles>  
+    <!-- This profile is invoked by -DprepareRelease=true.  This allows mvn release:prepare to
+         run successfully on the assembly projects. -->
+    <profile>
+      <id>prepare-release</id>
+      <activation>
+        <property>
+          <name>prepareRelease</name>
+        </property>
+      </activation>
+      <modules>
+        <module>assembly</module>
+      </modules>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-release-plugin</artifactId>
+            <configuration>
+              <arguments>-DprepareRelease</arguments>
+            </configuration>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+    
+    <profile>
+      <id>perform-release</id>
+      <activation>
+        <property>
+          <name>performRelease</name>
+          <value>true</value>
+        </property>
+      </activation>
+      <modules>
+        <module>assembly</module>
+      </modules>
+      <build>
+        <plugins>
+          <plugin>
+            <artifactId>maven-javadoc-plugin</artifactId>
+            <version>2.2</version>
+            <executions>
+              <execution>
+                <id>attach-javadocs</id>
+                <goals>
+                  <goal>jar</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+          <plugin>
+            <groupId>org.apache.maven.plugins</groupId>
+            <artifactId>maven-scm-plugin</artifactId>
+            <executions>
+              <execution>
+                <phase>validate</phase>
+                <id>getting-scm.revision</id>
+                <goals>
+                  <goal>update</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>      
 </project>
\ No newline at end of file