I'd like to hand-craft an archetype that consists of a single pom.xml and pulls it's sources from other modules/directories in my project. Is that possible?
In case anyone needs a more detailed explanation why, here goes... I'm working on AppFuse, which contains many different archetypes and "stacks" of frameworks. In the 2.0.x form, we used WARs and overlays and have found it difficult for users to understand. Rather than pulling in WARs (and reading their classpaths with the warpath plugin), I'd rather include all the WAR source in an archetype. This evening, using the war-plugin and Jetty's support for multiple source directories, I was able to modify things so all the web/** projects can pull files from web/common/** and build their WARs as normal, without needing to copy common files to all the modules. If I want to use a similar setup with archetypes, I need to create a pom.xml and an archetype descriptor, then slurp in all the files from web/common and web/framework. If it's not possible to use ../.. notation in an archetype descriptor, what's the best way to include these common files for new users? Thanks, Matt P.S. I also tried using mvn archetype:create-from-project, but that doesn't work b/c it 1) keeps the hierarchy of parent pom, which most users probably won't like and 2) there's no way to automate the building/deploying of these generated archetypes. -- View this message in context: http://www.nabble.com/Is-it-possible-to-add-files-to-an-archetype-from-other-directories--tp23212840p23212840.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org