JBoss Portal SVN: r13985 - in examples/trunk/JSFHelloUser: src/main/webapp/WEB-INF and 1 other directory.
by portal-commits@lists.jboss.org
Author: thomas.heute(a)jboss.com
Date: 2011-01-13 04:25:09 -0500 (Thu, 13 Jan 2011)
New Revision: 13985
Added:
examples/trunk/JSFHelloUser/README.txt
Modified:
examples/trunk/JSFHelloUser/pom.xml
examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/web.xml
Log:
Using the EPP_HOME trick
Added: examples/trunk/JSFHelloUser/README.txt
===================================================================
--- examples/trunk/JSFHelloUser/README.txt (rev 0)
+++ examples/trunk/JSFHelloUser/README.txt 2011-01-13 09:25:09 UTC (rev 13985)
@@ -0,0 +1,13 @@
+===========
+JSF example
+===========
+
+To compile and package the example use:
+mvn -DEPP_HOME=/full/path/to/EPP/installation clean install
+
+If you forget to set EPP_HOME the following error message will be shown by Maven:
+ [0] For dependency Dependency {groupId=org.jboss.portletbridge, artifactId=portletbridge-api, version=epp, type=jar}: system-scoped dependency must specify an absolute path systemPath.
+ [1] For dependency Dependency {groupId=org.jboss.portletbridge, artifactId=portletbridge-impl, version=epp, type=jar}: system-scoped dependency must specify an absolute path systemPath.
+
+
+
Modified: examples/trunk/JSFHelloUser/pom.xml
===================================================================
--- examples/trunk/JSFHelloUser/pom.xml 2011-01-13 07:58:12 UTC (rev 13984)
+++ examples/trunk/JSFHelloUser/pom.xml 2011-01-13 09:25:09 UTC (rev 13985)
@@ -7,9 +7,13 @@
<artifactId>JSFHelloUser</artifactId>
<packaging>war</packaging>
<name />
- <version>0.0.5</version>
+ <version>0.0.6</version>
<description />
+ <properties>
+ <portletBridge.home>${EPP_HOME}/jboss-as/server/default/deploy/jboss-portal.sar/portal-admin.sar/portal-admin.war/WEB-INF/lib</portletBridge.home>
+ <portletBridge.version>2.0.x.FINAL.EPP43CPxx</portletBridge.version>
+ </properties>
<build>
<finalName>JSFHelloUser</finalName>
@@ -23,6 +27,23 @@
<target>1.5</target>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <version>2.1.1</version>
+ <configuration>
+ <webResources>
+ <resource>
+ <directory>${portletBridge.home}</directory>
+ <includes>
+ <include>portletbridge-api.jar</include>
+ <include>portletbridge-impl.jar</include>
+ </includes>
+ <targetPath>WEB-INF/lib</targetPath>
+ </resource>
+ </webResources>
+ </configuration>
+ </plugin>
</plugins>
</build>
@@ -36,22 +57,21 @@
<scope>provided</scope>
</dependency>
+ <!-- Portlet bridge -->
<dependency>
<groupId>org.jboss.portletbridge</groupId>
<artifactId>portletbridge-api</artifactId>
- <version>1.0.0.CR1</version>
+ <version>${portletBridge.version}</version>
+ <scope>system</scope>
+ <systemPath>${portletBridge.home}/portletbridge-api.jar</systemPath>
</dependency>
-
+
<dependency>
<groupId>org.jboss.portletbridge</groupId>
<artifactId>portletbridge-impl</artifactId>
- <version>1.0.0.CR1</version>
- <exclusions>
- <exclusion>
- <groupId>org.richfaces.ui</groupId>
- <artifactId>richfaces-ui</artifactId>
- </exclusion>
- </exclusions>
+ <version>${portletBridge.version}</version>
+ <scope>system</scope>
+ <systemPath>${portletBridge.home}/portletbridge-impl.jar</systemPath>
</dependency>
</dependencies>
Modified: examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/web.xml
===================================================================
--- examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/web.xml 2011-01-13 07:58:12 UTC (rev 13984)
+++ examples/trunk/JSFHelloUser/src/main/webapp/WEB-INF/web.xml 2011-01-13 09:25:09 UTC (rev 13985)
@@ -15,7 +15,7 @@
</context-param>
<context-param>
- <param-name>javax.portlet.faces.renderPolicy</param-name>
+ <param-name>javax.portlet.faces.RENDER_POLICY</param-name>
<param-value>NEVER_DELEGATE</param-value>
</context-param>