Installation

  1. Create a Cocoon webApp:
    mvn archetype:create -DarchetypeGroupId=org.apache.cocoon -DarchetypeArtifactId=cocoon-22-archetype-webapp -DarchetypeVersion=1.0.0-RC1 -DgroupId=com.mycompany -DartifactId=myFinsWebapp Due to a bug in Maven, yu may have to specify the archtype version: mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -DarchetypeGroupId=org.apache.cocoon -DarchetypeArtifactId=cocoon-22-archetype-webapp -DarchetypeVersion=1.0.0-RC1 -DgroupId=com.mycompany -DartifactId=myFinsWebapp
  2. Change dir to myFinsWebapp and edit the pom.xml file, adding:
    • The following "repositories" element (within the "project" element and after the "version" one)
      <repositories> <repository> <id>ipzs</id> <name>IPZS Maven repository</name> <url>http://www.lucamorandini.it/maven</url> </repository> </repositories>
    • The following "dependencies" element
      <dependencies> <dependency> <groupId>it.ipzs</groupId> <artifactId>fins-samples</artifactId> <version>1.1.1</version> </dependency> </dependencies>
  3. Type: mvn install from the myFinsWebApp directory.
  4. Type: mvn jetty:run from the myFinsWebApp directory.
  5. Direct your web-browser to: http://localhost:8888/fins-samples/