cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@cocoon.apache.org
Subject [Cocoon Wiki] Updated: HowToBuildAndDeployCocoonWithMaven
Date Thu, 27 Jan 2005 18:09:22 GMT
   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 =
 

Mime
View raw message