A document has been updated:
http://cocoon.zones.apache.org/daisy/documentation/756.html
Document ID: 756
Branch: main
Language: default
Name: Cocoon and Maven2 (aka "Mavenization of Cocoon" aka "M10") (previously
M10N)
Document Type: Cocoon Document (unchanged)
Updated on: 1/11/06 4:01:08 PM
Updated by: Jorg Heymans
A new version has been created, state: publish
Parts
=====
Content
-------
This part has been updated.
Mime type: text/xml (unchanged)
File name: (unchanged)
Size: 12484 bytes (previous version: 11492 bytes)
Content diff:
(197 equal lines skipped)
throws an exception or corrupts the binary file. The substitution engine
also
garbles special chars like ©, this happens currently in
core-archetype/welcome.xslt, making the xslt processor barf.
--- (<a
href="http://jira.codehaus.org/browse/ARCHETYPE-3">http://jira.codehaus.org/browse/ARCHETYPE-3</a>)
+++ (<a
href="http://jira.codehaus.org/browse/ARCHETYPE-3">http://jira.codehaus.org/browse/ARCHETYPE-3</a>)
</li>
<li>It is impossible to use archetypes unless they are published on ibiblio
(<a
href="http://jira.codehaus.org/browse/MNG-1670">http://jira.codehaus.org/browse/MNG-1670</a>)
(10 equal lines skipped)
<a href="http://svn.apache.org/repos/asf/maven/archetype/trunk/">maven
repo</a>
for examples.</p>
+++ <h2>Cocoon archetypes</h2>
+++
+++ <p>At the moment there is only one archetype :
archetypes/cocoon-core-archetype.
+++ </p>
+++
+++ <p>The archetype descriptor is located in
+++ <tt>src/main/resources/META-INF/archetype.xml</tt> . This descriptor
describes
+++ the files that make up the archetype.</p>
+++
+++ <p>A perl script is available to generate this file automatically. If you
need
+++ to regenerate the file after an svn update just run <tt>perl
makeDescriptor.pl
+++ > META-INF/archetype.xml</tt> from <tt>src/main/resources</tt>.</p>
+++
+++ <p>For testing the archetype, first do <tt>mvn install</tt> from
+++ cocoon-core-archetype to install it in your local repository. Then run
:</p>
+++
+++ <p><tt>mvn archetype:create
+++ -DarchetypeGroupId=org.apache.cocoon.maven.archetypes
+++ -DarchetypeArtifactId=cocoon-archetype-core -DartifactId=testartifact
+++ -DarchetypeVersion=1.0-SNAPSHOT -DgroupId=testgroup<br/>
+++ </tt><br/>
+++ You should then have a working prototype of a cocoon webapp only containing
+++ core, similar to what is in cocoon-webapp.</p>
+++
<h2>How to add a new dependency to an existing module</h2>
<p>There are two possibilities here : the new dependency is already using
maven,
(64 equal lines skipped)
Fields
======
no changes
Links
=====
no changes
Custom Fields
=============
no changes
Collections
===========
no changes