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/04/28 02:06:10 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=14515980#comment-14515980 ]
ASF GitHub Bot commented on ARCHETYPE-480:
------------------------------------------
GitHub user paranoiabla opened a pull request:
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. This is a pull-request for https://issues.apache.org/jira/browse/ARCHETYPE-480
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/paranoiabla/maven-archetype ARCHETYPE-480
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/maven-archetype/pull/5.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #5
----
commit 3db45b04878de50b57c37cad40793bb5f35757d4
Author: Petar Tahchiev <pa...@gmail.com>
Date: 2015-04-28T00:02:09Z
Allow generated pom.name, pom.description and pom.url to include custom properties when using create-archetype-from-project
----
> 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)