Sample code for blog entry.
Java
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cms
conf
content
site
src/main/assembly
BUILD
README.txt
hippo-cms7-release-pom.xml
pom.xml

README.txt

Running locally
===============

This project uses the Maven Cargo plugin to run the CMS and site locally in Tomcat.
From the project root folder, execute:

  $ mvn clean install
  $ mvn -P cargo.run

Access the CMS at http://localhost:8080/cms, and the site at http://localhost:8080/site
Logs are located in target/tomcat6x/logs

Building distribution
=====================

To build a Tomcat distribution tarball containing only deployable artifacts:

  $ mvn clean install
  $ mvn -P dist

See also src/main/assembly/distribution.xml if you need to customize the distribution

Using JRebel
============

Set the environment variable REBEL_HOME to the directory containing jrebel.jar.
Build with:

  $ mvn -Djrebel

or add -Djrebel to your MAVEN_OPTS environment variable:

  $ export MAVEN_OPTS="$MAVEN_OPTS -Djrebel"

Note: the latter *always* enables JRebel. To disable temporarily (e.g. when building/deploying a release) use

  $ mvn -P -jrebel

Do *not* activate JRebel using "mvn -P jrebel", as it then deactivates the "default" profile.

Hot deploy
==========

To hot deploy, redeploy or undeploy the CMS or site:

  $ cd cms (or site)
  $ mvn cargo:redeploy (or cargo:undeploy, or cargo:deploy)