On Wed, Apr 4, 2012 at 1:34 AM, <[email protected]> wrote: > Hello everyone > > For a project I need to create some archetypes and so far it works quite > well. The only big problem is that I need the archetype to create a flat > project structure, but the archetype-generation will always look for the > minimal POM at archetype-resource/pom.xml. > > In my case this file is located in archetype-resources/parent/pom.xml > Is there some way I can configure the generate-goal to pick up the file at > this location? > > Before any questions arise...we have to use this layout because > Rational-Team-Concert is not able to handle nested projects and this can > result in a totally wrong repository state (error-prone). The safe way for > our team-member is the flat structure.
My recollection is that the flat structure is no longer a recommended approach. To get the flat structure to work you need to specify relativePath in the parent declaration and this is a source of pain and then the parent pom needs to declare its modules as ../module_name I suspect that because of this, the archetypes don't allow you to create a flat structure. But that doesn't stop you from manually doing this. Just move the parent to be a sibling of the modules, make the changes specified above, and off you go. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
