On 03/03/2008, Peter Neubauer <[EMAIL PROTECTED]> wrote: > > Nino, > I think Alin and Stuart are the best folks to talk to, considering the > PaxConstruct magic. Not sure they have time to look at this, but check > out http://www.ops4j.org/projects/pax/construct/ and the code under > http://scm.ops4j.org/browse/OPS4J/projects/pax/construct and look for > the M2 archetypes.
( sorry for the delay in replying ... been busy sorting out a release ) FYI, the approach used in Pax Construct is based on using maven archetypes, along with a plugin to 'massage' the generated project structure and attach parent poms to sub-projects as necessary. Since Pax-Construct started there's been a brand new release of the maven-archetype-plugin that fixes several of the limitations in the original release, so ideally you should read up on this first: http://maven.apache.org/plugins/maven-archetype-plugin Unfortunately, in the grand tradition of maven plugins, the docs are incomplete and there are a few non-working / missing links :( but it does support creation of archetypes from existing projects, which isn't perfect but is enough to get you started - caveat: you often need to edit the generated archetype... http://maven.apache.org/plugins/maven-archetype-plugin/create-from-project-mojo.html mvn archetype:create-from-project -DpackageName=<...> look at the "archetype-metadata.xml" file, which is the new model for archetypes - this lets you define multi-module archetypes such as in your original example. http://maven.apache.org/plugins/maven-archetype-plugin/specification/archetype-metadata.html HTH > > /peter > > > On Fri, Feb 29, 2008 at 2:51 PM, Nino Saturnino Martinez Vazquez Wael > <[EMAIL PROTECTED]> wrote: > > Hi > > > > I've heard that some of you guys knows about this.. So how could I > > create a maven archetype which generates a project with this structure: > > > > Project Folder > > | > > |-- domain Folder (project that will contain a dummy domain class > > annotated with JPA, plus the pom.xml) > > |---pom.xml > > |---src > > |-- web Folder (will contain the simple web application) > > |---pom.xml > > |---src > > |-pom.xml > > > > I've only seen examples on howto create a single folder/project at a > time.. > > > > As you've might have guessed this is for the comming > > wicket-spring-jpa-hibernate maven archetypes... > > > > regards Nino > > > > _______________________________________________ > > general mailing list > > [email protected] > > http://lists.ops4j.org/mailman/listinfo/general > > > > > > > > > -- > GTalk: neubauer.peter > Skype peter.neubauer > ICQ 18762544 > GTalk neubauer.peter > Phone +46704 106975 > Mail [EMAIL PROTECTED] > LinkedIn http://www.linkedin.com/in/neubauer > > http://www.neo4j.org - New Energy for Data - the Netbase. > http://www.ops4j.org - New Energy for OSS Communities - Open > Participation Software. > http://www.qi4j.org - New Energy for Java - Domain Driven > Development. > > > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general > -- Cheers, Stuart
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
