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/21 16:14:32 UTC

[jira] Commented: (ARCHETYPE-318) not correctly filtered

    [ https://jira.codehaus.org/browse/ARCHETYPE-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=276588#comment-276588 ] 

Herve Boutemy commented on ARCHETYPE-318:
-----------------------------------------

Tuomas,

from the description, there seems to be some improvements that could be useful
but I don't really understand your explanations ("transitive properties"?)
and the actual patch is missing tests to better show the new features

If you're ready to work with me, we can probably improve things in next Archetype plugin version

> <requiredProperty> <defaultValue> not correctly filtered
> --------------------------------------------------------
>
>                 Key: ARCHETYPE-318
>                 URL: https://jira.codehaus.org/browse/ARCHETYPE-318
>             Project: Maven Archetype
>          Issue Type: Bug
>          Components: Generator
>    Affects Versions: 2.0-alpha-5
>            Reporter: Jochen Ehret
>            Priority: Minor
>             Fix For: 2.x
>
>         Attachments: DefaultArchetypeGenerationConfigurator.patch
>
>
> In our archetype-metadata.xml we´ve defined a <requiredProperty> with a default value like this:
> {code:xml}<requiredProperty key="subArtifactId">
>     <defaultValue>${artifactId}.itest1</defaultValue>
> </requiredProperty>{code}
> When we call "archetype:generate" and enter the parameters in interactive mode everything works fine. But when we try to set the parameter "subArtifactId" on the command line (mvn archetype:generate -DsubArtifactId=xyz) or from an "archetype.properties" file, the value is ignored. In the generated pom.xml the variable ${subArtifactId} is always replaced with "${artifactId}.itest1".

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