JBoss.org Community Documentation

1.3.1. Running the Examples

JSF 1.2 Basic, RichFaces Basic, and the Seam Booking Demo

Each example application is configured to download the latest versions of JBoss Portal bundled with JBoss Application Server. After running the archetype Section 1.3, “Maven Archetypes” or downloading the source code for the example application that you're interested in, you can run one of the following Maven profiles to save time and get everything up and running with only 2 commands.

JBoss Portal 2.6.5.SP1 + JBoss AS 4.2.2 (Bundled)
mvn install cargo:start -Premote-portal -Dportal-2.6.5.SP1
mvn cargo:deploy -Premote-portal -Dportal-2.6.5.SP1
            
JBoss Portlet Container 2.0 + JBoss AS 4.2.2 (Bundled)
mvn install cargo:start -Premote-portal -Dpc20
mvn cargo:deploy -Premote-portal -Dpc20
            
To use a locally configured server bundled with portal, use the following command line parameters. The variable for JBOSS_HOME_DIR is related to how you zip the server directory. If you zip the files under JBOSS_HOME/* then it will only be the name of your archive. But if you zip the actual folder JBOSS_HOME then JBOSS_HOME_DIR must be defined as 'zip file name/JBOSS_HOME folder name'.


JBoss Portal 2.6.5.SP1
mvn install cargo:start -Plocal-portal -DJBOSS_ZIP_HOME=/path_to_bundle_zip/jboss-portal-2.6.5.SP1-bundled.zip -DJBOSS_HOME_DIR=jboss-portal-2.6.5.SP1-bundled/jboss-portal-2.6.5.SP1
mvn cargo:deploy -Plocal-portal -DJBOSS_ZIP_HOME=/path_to_bundle_zip/jboss-portal-2.6.5.SP1-bundled.zip -DJBOSS_HOME_DIR=jboss-portal-2.6.5.SP1-bundled/jboss-portal-2.6.5.SP1
            
PortletContainer 2.0
mvn install cargo:start -Plocal-portal -DJBOSS_ZIP_HOME=/path_to_bundle_zip/Jboss-4.2.2-PC20.zip -DJBOSS_HOME_DIR=Jboss-4.2.2-PC20
mvn cargo:deploy -Plocal-portal -DJBOSS_ZIP_HOME=/path_to_bundle_zip/Jboss-4.2.2-PC20.zip -DJBOSS_HOME_DIR=Jboss-4.2.2-PC20