Hi, I am not sure to well understand what you meant. Here comes what i have understood, plesae correct me if i am wrong: - you did mvn archetype:create -DarchetypeArtifactId=java6archetype -DartifactId=TestLayer - you obtained the TestLayer folder in the directory you executed the mvn comand - that folder contains the TestLayer project created from the choosen Java6 archetype - you changed directory to that folder - you then did archetype:create -DarchetypeArtifactId=Junit4achetype -DartifactId=TestLayer - you obtained a modification of the TestLayer project's pom and file structure.
What i am not sure to understand is what you expected to have instead of what you got. Regards, Raphaël Piéroni 2007/8/30, Andrew Leer <[EMAIL PROTECTED]>: > > I am certain that I have misinterpreted the meaning of this piece of > documentation: > > Guide to Creating Archetypes > - (http://maven.apache.org/guides/mini/guide-creating-archetypes.html) > | - 2. Create the archetype descriptor > > An optional <allowPartial>true</allowPartial> tag makes it > possible to run the > archetype:create even on existing projects. > > I thought that this meant that I could create several of my own > archetypes and than generate a single project; running the > archtype:create command over the generated project several times until > the accumulated properties of each archetype were all added to that > single project. > > ****Begin Example**** > > If I have the following Archetypes installed in M2_REPO: > - Java6Archetype > - JUnit4Archetype > > And I create a project called TestLayered Project using the > Java6Archetype above and the archetype:create command. > > I should then be able to run the JUnit4Archetype with the > archetype:create command over top of the existing TestLayered Project > resulting in a blending of the two archetypes within the TestLayered > Project. > > ****End Example**** > > This is what I believed the documentation meant by: > > "An optional <allowPartial>true</allowPartial> tag makes it > possible to run the > archetype:create even on existing projects." > > I now realize that this is wrong. Is there anyway to implement this > sort of "mixing" and "matching" or "layering" of Archtypes in a single > project? > > Also, what did the documentation mean by the statement above? I read > elsewhere that it has something to do with modular builds. > > Thank you, > Andrew J. Leer > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
