maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ceki Gulcu (JIRA)" <>
Subject [jira] Commented: (ARCHETYPE-55) Maven archetype plugin ignores system properties
Date Wed, 06 Sep 2006 20:34:02 GMT
    [ ] 
Ceki Gulcu commented on ARCHETYPE-55:

The change should be made within the execute method:

    public void execute()
        throws MojoExecutionException
        // TODO: prompt for missing values
        // TODO: configurable license


        // TODO: context mojo more appropriate?
        Map map = new HashMap();

       // new line

> Maven archetype plugin ignores system properties
> ------------------------------------------------
>                 Key: ARCHETYPE-55
>                 URL:
>             Project: Maven Archetype
>          Issue Type: New Feature
>          Components: Plugin
>    Affects Versions: 1.0-alpha-4
>            Reporter: Ceki Gulcu
>            Priority: Critical
> When it passes a property map to velocity context, the archetype plugin passes the values
of the properties basedir, package,
> packageName, groupId, artifactId, and version ignoring other properties, in particular
system properties. In the context of our
> project, we would like the archetype plugin to substitute the values of system properties
during the file generation based on templates.
> It would take very little effort to add the system properties to the map passed to Velocity
> Moreover, only a single file, namely in maven-archetype-plugin/src/main/java/org/apache/maven/plugin/archetype/
> need to be modified.
> As far as I understand it, the change can be accomplished with a single line of code:
>    map.putAll(System.getProperties());
> Would you consider adding the above line to
> Many thanks in advance,

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message