I guess the create-from-project is just a kickstart. After that, you can copy the target/generated-sources/archetype/ to your main directory and keep that up to date (and maybe even adding some examples or such) and check that in alongside your project. That way you can add it to your parent pom as a module and it would be build automatically alongside your project.
Hth, Nick Stolwijk ~Java Developer~ Iprofs BV. Claus Sluterweg 125 2012 WS Haarlem www.iprofs.nl On Wed, Aug 20, 2008 at 3:54 PM, rmatthews <[EMAIL PROTECTED]> wrote: > > Is there any way of combining the multiple steps of creating an archetype > from a project so that the archetype is automatically installed/deployed to > the repository. > > The website suggests the following to create and install a new archetype:- > > $ mvn archetype:create-from-project > $ cd target/generated-sources/archetype/ > $ mvn install > > I would like to keep an example project in our code repository alongside our > framework code. When the whole project is built it would be good if Maven > were to create an archetype from the example and then install that archetype > artifact into the m2 repository. That is, to combine the three commands > listed above into one. > > Any ideas, or have I missed the point. > > Regards > > Robert Matthews > Naked Objects Group > -- > View this message in context: > http://www.nabble.com/Installing-new-archetype-from-create-from-project-tp19069899p19069899.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
