[ 
https://jira.codehaus.org/browse/ARCHETYPE-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=282010#comment-282010
 ] 

Fred Bricon commented on ARCHETYPE-346:
---------------------------------------

I'm interested in this feature too. I need the root directory to be named after 
some pattern, similar to modules currently are (ex : ${rootArtifactId}-parent ).

Hervé, I believe modifying the archetype descriptor might be better suited for 
tooling integration : no need to modify existing UI (I'm speaking for m2e) to 
take advantage of such feature, as opposed to the generate plugin route. 
Although we'd still need to embed the new archetype plugin.

If the proposed targetDirName were added as an optional attribute to the 
descriptor, what would be the issue?

> Directory name of root generated module
> ---------------------------------------
>
>                 Key: ARCHETYPE-346
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-346
>             Project: Maven Archetype
>          Issue Type: Improvement
>          Components: Generator
>    Affects Versions: 2.1
>            Reporter: Gael Lalire
>            Priority: Minor
>
> It seems that the root directory name have to be the ${artifactId}.
> I propose an addition in archetype-metadata.xml.
> <archetype-descriptor targetDirName="prefixINeed_${artifactId}">
> </archetype-descriptor>
> So we can also remove the ${artifactId} in the name of root directory.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to