Hi John,
This feature is provided by the 2.0-alpha-3 version
of the Archetype plugin. This version is not yet released.
But you can try the last snapshot by adding a repository
to apache snapshot [1].
1. The goal to call from the project directory (or parent in
case of a multi module) is 'mvn archetype:create-from-project'.
2. Then go to the target/generated-sources/archetype directory
and see if the generated archetype is correct.
install the archetype in your local repository by calling
'mvn install' as usual.
3. Then go to a fresh directory and call
'mvn archetype:generate -DarchetypeCatalog=local'.
Step 3 may don't work because repositories defined
in profiles in the settings.xml file are recognised only
when maven is called in a project's directory. One may
try to use the apache's snapshot repository as mirror of
central (not tested).
Another workaround i see is compiling the plugin from the
sources.
Please share your experience of using the plugin afterward.
Thanks,
Raphaël
[1]: in settings.xml :
<profile>
<id>apache-snapshots</id>
<repositories>
<repository>
<id>apache-snapshot</id>
<name>Apache Snapshots</name>
<releases>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<url>http://people.apache.org/maven-snapshot-repository/</url>
<layout>default</layout>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache-snapshot</id>
<name>Apache Snapshots</name>
<releases>
<enabled>false</enabled>
<updatePolicy>never</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</releases>
<snapshots>
<updatePolicy>always</updatePolicy>
<checksumPolicy>warn</checksumPolicy>
</snapshots>
<url>http://people.apache.org/maven-snapshot-repository/</url>
<layout>default</layout>
</pluginRepository>
</pluginRepositories>
</profile>
2008/3/28, Prystash,John <[EMAIL PROTECTED]>:
>
> I'm stepping into my first foray into creating archeyptes. In general,
> is there support for creating an archetype for a multi-module project?
> Or is better to build a project with multiple archetypes? My first
> thought would be I'd have problem injecting the parent project name into
> the directory structure?
>
> MyService
> MyService-core
> MyService-container
>
> Thanks
>