cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Refondini <patrick.refond...@pobox.com>
Subject Re: Testing release artifacts from trunk (cocoon-core-2.2.0-M2 and others)
Date Thu, 14 Dec 2006 22:17:27 GMT

Positive experience with cocoon-core-2.2.0-M2 and others:

Rebuilt trunk and used the different artifacts to do basic tests:

Plateform:
MacOSX 10.4.6 (PPC G5)

JDK
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-112)
Java HotSpot(TM) Client VM (build 1.5.0_06-64, mixed mode, sharing)

Maven version: 2.0.4


Following procedure completed successfully:

mvn archetype:create \
     -DarchetypeGroupId=org.apache.cocoon \
     -DarchetypeArtifactId=cocoon-22-archetype-block \
     -DarchetypeVersion=1.0.0-M5-SNAPSHOT \
     -DgroupId=ch.extentis \
     -DartifactId=testblock

mvn archetype:create \
     -DarchetypeGroupId=org.apache.cocoon \
     -DarchetypeArtifactId=cocoon-22-archetype-block \
     -DarchetypeVersion=1.0.0-M5-SNAPSHOT \
     -DgroupId=ch.extentis \
     -DartifactId=testroot

Modify:

src/main/resources/META-INF/cocoon/spring/block.xml

From:
     <property name="mountPath" value="/testroot" />

To:
     <property name="mountPath" value="/" />


mvn archetype:create \
     -DarchetypeGroupId=org.apache.cocoon \
     -DarchetypeArtifactId=cocoon-22-archetype-webapp \
     -DarchetypeVersion=1.0.0-M2-SNAPSHOT \
     -DgroupId=ch.extentis \
     -DartifactId=testwebapp

Add dependency to testwebapp pom.xml

<dependency>
   <groupId>ch.extentis</groupId>
   <artifactId>testblock</artifactId>
   <version>1.0-SNAPSHOT</version>
</dependency>

<dependency>
   <groupId>ch.extentis</groupId>
   <artifactId>testroot</artifactId>
   <version>1.0-SNAPSHOT</version>
</dependency>

Than in testwebapp directory:
mvn package jetty:run

Gives access to:
testroot block using to http://localhost:8888/
testblock block using to http://localhost:8888/testblock/


Patrick

Mime
View raw message