Shaun created ARCHETYPE-415:
-------------------------------
Summary: inconsistent behavior in batch mode
Key: ARCHETYPE-415
URL: https://jira.codehaus.org/browse/ARCHETYPE-415
Project: Maven Archetype
Issue Type: Bug
Components: Generator
Affects Versions: 2.2
Environment: {noformat}
Apache Maven 3.0.3 (r1075438; 2011-02-28 09:31:09-0800)
Maven home: C:\Program Files\apache-maven-3.0.3\bin\..
Java version: 1.5.0_22, vendor: Sun Microsystems Inc.
Java home: C:\Program Files (x86)\Java\jdk1.5.0_22\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
{noformat}
Reporter: Shaun
Steps to reproduce:
# Create a basic archetype.
# Alter the archetype-metadata.xml (see below)
# Run the generate goal in interactive mode, the template value will get filled
in
# Run the generate goal in batch mode, the template value will not get filled in
Example default value:
{noformat}
<requiredProperty key="package">
<defaultValue>${groupId}</defaultValue>
</requiredProperty>
{noformat}
It seems to be half resolving:
{noformat}
[INFO] Parameter: groupId, Value: company.foo.site
[INFO] Parameter: artifactId, Value: ${siteName}
[INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
[INFO] Parameter: package, Value: ${groupId}
[INFO] Parameter: packageInPathFormat, Value: ${groupId}
May 30, 2012 1:01:59 PM org.apache.velocity.runtime.log.JdkLogChute log
INFO: FileResourceLoader : adding path '.'
[INFO] Parameter: package, Value: company.foo.site
[INFO] Parameter: version, Value: 1.0.0-SNAPSHOT
[INFO] Parameter: groupId, Value: company.foo.site
[INFO] Parameter: systemName, Value: System
[INFO] Parameter: siteId, Value: 1234
[INFO] Parameter: siteName, Value: My Test Site
[INFO] Parameter: artifactId, Value: My Test Site
{noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira