Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-415

inconsistent behavior in batch mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 2.2
    • None
    • Generator
    • None

    Description

      Steps to reproduce:

      1. Create a basic archetype.
      2. Alter the archetype-metadata.xml (see below)
      3. Run the generate goal in interactive mode, the template value will get filled in
      4. 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
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            selliott@paml.com Shaun
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: