You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Petar Tahchiev (JIRA)" <ji...@apache.org> on 2015/08/09 16:10:45 UTC

[jira] [Resolved] (ARCHETYPE-480) Allow generated pom.name, pom.description and pom.url to include custom properties when using create-archetype-from-project

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

Petar Tahchiev resolved ARCHETYPE-480.
--------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.4

> Allow generated pom.name, pom.description and pom.url to include custom properties when using create-archetype-from-project
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ARCHETYPE-480
>                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-480
>             Project: Maven Archetype
>          Issue Type: Improvement
>            Reporter: Petar Tahchiev
>             Fix For: 2.4
>
>
> It would be nice to allow the pom's name, description and url to include custom properties when I create an archetype from project. For instance I may want to declare a property in `archetype.properties`:
> {code}
> projectname=MySampleProjectname
> {code}
> and then in my `pom.xml`:
> {code}
>   <name>MySampleProjectname</name>
>   <description>MySampleProjectname parent application</description>
> {code}
> So when I invoke `mvn archetype:create-from-project` the result would be:
> {code}
>   <name>${projectname}</name>
>   <description>${projectname} parent application</description>
> {code}
> which will then be replaced with whatever is specified in the command line during project creation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)