You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2011/08/30 21:11:34 UTC

[jira] Closed: (ARCHETYPE-255) custom variable filtered in created resources

     [ https://jira.codehaus.org/browse/ARCHETYPE-255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed ARCHETYPE-255.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0-alpha-4

this is a feature of Maven Archetype Plugin 2.x (apparently not available in 1.x)

see requiredProperties in the [descriptor reference|http://maven.apache.org/archetype/archetype-models/archetype-descriptor/archetype-descriptor.html]

> custom variable filtered in created resources
> ---------------------------------------------
>
>                 Key: ARCHETYPE-255
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-255
>             Project: Maven Archetype
>          Issue Type: Wish
>          Components: Creator, Generator
>         Environment: Any
>            Reporter: Lorand Somogyi
>             Fix For: 2.0-alpha-4
>
>
> It would be nice to be able to define a custom variable that would be filtered for created resources just like artifactId or gourpId. 
> Example
> ------------
> Command line: mvn archetype:create ... -DartifactId=my-foo -DmyVar=myValue
> Usage, in archetype-resources pom for example:
> <scm>
>   <developersConnection>https://example.com/foo/${myVar}/${artifactId}/trunk
> Which would translate to:
> <scm>
>   <developersConnection>https://example.com/foo/myValue/my-foo/trunk

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