Grek,

The only missing thing is the actual archetype catalog XML file. David, would you like to prepare own? I'm not sure how archetype plug-in supports this file generation but even if support is bad you could always prepare the catalog by hand (fortunately enough, the list is not long for us).

I've generated the archetype catalog. I've attached it to this email. It wasn't too difficult... just had to run "mvn archetype:crawl" and it placed the new file in my local repository ([MAVEN_REPO]/.m2/repository/archetype-catalog.xml). I then edited this manually to change the order of the archetypes listed from simplest to most complex and added some human understandable descriptions. I've confirmed that the following command works with a local copy of the catalog: -

mvn archetype:generate -DarchetypeCatalog=file://c:\temp\archetype-catalog.xml

and generates the following interactive questions: -

 [INFO] Scanning for projects...
 [INFO] Searching repository for plugin with prefix: 'archetype'.
 ...
 [INFO] [archetype:generate]
 [INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart (org.apache.maven.
 archetypes:maven-archetype-quickstart:1.0)
 Choose archetype:
1: local -> cocoon-22-archetype-block-plain (Creates an empty Cocoon block)
 2: local -> cocoon-22-archetype-block (Creates a minimal Cocoon block)
3: local -> cocoon-22-archetype-webapp (Creates a web application Cocoon block)
 Choose a number:  (1/2/3): Choose archetype:

There is a caveat though. I noticed on the Maven bug list [3] that some earlier versions of the plugin didn't handle local or remote catalog files. However this seems to have been fixed in the 2.0 alpha-3 version.

So if someone would place this file on the site and update the documentation page we should be good to go. I registered on the Cocoon documentation site [2] to see if I could update the pages myself but quickly discovered this doesn't let me actually create or edit the documentation :-(

Of course this file will have to be updated from time to time.

I have a feeling that Reinhard Pötz is our man for this ;-) He authored the Maven archetype plugin list [2]. This page isn't easy to find so there should at least be a link to it from the tutorial pages.

Regards,
David Legg

[1] http://cocoon.zones.apache.org/daisy/
[2] http://cocoon.apache.org/2.2/maven-plugins/
[3] http://jira.codehaus.org/browse/ARCHETYPE-124
<?xml version="1.0" encoding="UTF-8"?>
<archetype-catalog>
  <archetypes>
    <archetype>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-22-archetype-block-plain</artifactId>
      <version>1.1.0-SNAPSHOT</version>
      <description>Creates an empty Cocoon block</description>
    </archetype>
    <archetype>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-22-archetype-block</artifactId>
      <version>1.1.0-SNAPSHOT</version>
      <description>Creates a minimal Cocoon block</description>
    </archetype>
    <archetype>
      <groupId>org.apache.cocoon</groupId>
      <artifactId>cocoon-22-archetype-webapp</artifactId>
      <version>1.1.0-SNAPSHOT</version>
      <description>Creates a web application Cocoon block</description>
    </archetype>
  </archetypes>
</archetype-catalog>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to