You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/08/06 18:08:05 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14660220#comment-14660220 ]
ASF GitHub Bot commented on ARCHETYPE-480:
------------------------------------------
Github user ptahchiev closed the pull request at:
https://github.com/apache/maven-archetype/pull/5
> 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
>
> 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)