On 12/5/06, Deluigi Marcus <[EMAIL PROTECTED]> wrote:

Is it possible to create an archetype with sub-projects?

You can imagine that I want to create nested archetypes: the end-user
should obtain a project that contains sub-projects.

Things may have changed since I last tried, but I wasn't able to do it
in a single archetype.

By adding more than one module to an archetype, I lost the ability to
insert the package name in the directory structure under
src/main/java.

What does work is running 'mvn archetype:create' more than once.  If
you run it in a directory with a pom containing <modules>, Archetype
will hook up the parent-child relationships automatically.

At the very least, the current plugin needs another layer that calls
the existing archetype:create more than once to create the
multi-module project.

I believe there's some work going on in Appfuse that might be relevant.

--
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to