You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by do...@cocoon.apache.org on 2005/01/27 19:09:22 UTC
[Cocoon Wiki] Updated: HowToBuildAndDeployCocoonWithMaven
Date: 2005-01-27T10:09:22
Editor: AycaniRiCAN
Wiki: Cocoon Wiki
Page: HowToBuildAndDeployCocoonWithMaven
URL: http://wiki.apache.org/cocoon/HowToBuildAndDeployCocoonWithMaven
no comment
Change Log:
------------------------------------------------------------------------------
@@ -71,6 +71,43 @@
* The provided examples are known to work with Cocoon 2.1.6;
* If you use the Tomcat plug-in, start Tomcat then type ''maven tomcat:deploy''.
+'''Note''' <!>
+ * if you use the cocoon-war-2.1.6.war from ibibilio, you may want to use:
+{{{
+<dependencies>
+ <dependency>
+ <groupId>cocoon</groupId>
+ <artifactId>cocoon-war</artifactId>
+ <version>2.1.6</version>
+ <type>war</type>
+ </dependency>
+ </dependencies>
+}}}
+
+you may want to use the maven.xml below:
+{{{
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<project default="war"
+ xmlns:jelly="jelly:core">
+
+ <preGoal name="war:webapp">
+ <jelly:forEach var="dependency" items="${pom.dependencies}">
+ <jelly:if test="${dependency.getArtifactId().equals('cocoon-war')}">
+ <jelly:if test="${dependency.getType().equals('war')}">
+ <jelly:set var="cocoonWar"
+ value="cocoon-war-${dependency.getVersion()}.war"/>
+ <unwar src="${maven.repo.local}/cocoon/wars/${cocoonWar}"
+ dest="${maven.build.dir}/${pom.artifactId}">
+ <echo>Extracting ${cocoonWar}</echo>
+ </unwar>
+ </jelly:if>
+ </jelly:if>
+ </jelly:forEach>
+ </preGoal>
+
+</project>
+}}}
= Useful links =