Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Auto Closed
-
2.2
-
None
-
None
-
{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}{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}
Description
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:
<requiredProperty key="package"> <defaultValue>${groupId}</defaultValue> </requiredProperty>
It seems to be half resolving:
[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