You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Gael Lalire (JIRA)" <ji...@codehaus.org> on 2010/11/03 16:59:03 UTC

[jira] Created: (ARCHETYPE-346) Directory name of root generated module

Directory name of root generated module
---------------------------------------

                 Key: ARCHETYPE-346
                 URL: http://jira.codehaus.org/browse/ARCHETYPE-346
             Project: Maven Archetype
          Issue Type: Improvement
            Reporter: Gael Lalire


It seems that the root directory name have to be the ${artifactId}.
I propose an addition in archetype-metadata.xml.

{code}
<archetype-descriptor targetDirName="prefixINeed_${artifactId}">

</archetype-descriptor>
{code}

So we can also remove the ${artifactId} in the name of root directory.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (ARCHETYPE-346) Directory name of root generated module

Posted by "Fred Bricon (JIRA)" <ji...@codehaus.org>.
    [ 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

       

[jira] Commented: (ARCHETYPE-346) Directory name of root generated module

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
    [ https://jira.codehaus.org/browse/ARCHETYPE-346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=277389#comment-277389 ] 

Herve Boutemy commented on ARCHETYPE-346:
-----------------------------------------

I'm not ok with the idea of an addition to the archetype descriptor

but it might be an addition to the generate plugin, to let the user choose a different directory than the default one.

can you propose a patch?

> 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

        

[jira] Updated: (ARCHETYPE-346) Directory name of root generated module

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/ARCHETYPE-346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated ARCHETYPE-346:
------------------------------------

    Description: 
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.

  was:
It seems that the root directory name have to be the ${artifactId}.
I propose an addition in archetype-metadata.xml.

{code}
<archetype-descriptor targetDirName="prefixINeed_${artifactId}">

</archetype-descriptor>
{code}

So we can also remove the ${artifactId} in the name of root directory.


> 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
>
> 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

        

[jira] Updated: (ARCHETYPE-346) Directory name of root generated module

Posted by "Herve Boutemy (JIRA)" <ji...@codehaus.org>.
     [ https://jira.codehaus.org/browse/ARCHETYPE-346?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy updated ARCHETYPE-346:
------------------------------------

          Component/s: Generator
             Priority: Minor  (was: Major)
    Affects Version/s: 2.1

> 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