[
http://jira.codehaus.org/browse/ARCHETYPE-318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=237528#action_237528
]
Krzysztof Cislo commented on ARCHETYPE-318:
-------------------------------------------
It would be perfect if we can used not only pure variable but also other
Velocity syntax (as far as archetype is somehow based on Velocity).
E.g.: I want to set module name to generate exampled module with a class. I set
property wit h value "test" which is used for package name but for class name I
have to set "Test" so first letter has to be changed to upper case. Of course I
can use two properties but it is much easier for somebody who use my archetype
to set only one.
> <requiredProperty> <defaultValue> not correctly filtered
> --------------------------------------------------------
>
> Key: ARCHETYPE-318
> URL: http://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
>
> In our archetype-metadata.xml we´ve defined a <requiredProperty> with a
> default value like this:
> <requiredProperty key="subArtifactId">
> <defaultValue>${artifactId}.itest1</defaultValue>
> </requiredProperty>
> 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.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira