Giovanni van der Schelde created ARCHETYPE-675:
--------------------------------------------------

             Summary: Use property default value when running tests
                 Key: ARCHETYPE-675
                 URL: https://issues.apache.org/jira/browse/ARCHETYPE-675
             Project: Maven Archetype
          Issue Type: Improvement
    Affects Versions: 3.2.1
            Reporter: Giovanni van der Schelde
         Attachments: demo-archetype-test.zip

Given an archetype descriptor with:
{code:java}
<requiredProperties>
    <requiredProperty key="example-prop">
      <defaultValue>Hi</defaultValue>
    </requiredProperty>
</requiredProperties> {code}
 when you run `mvn verify` to run the integration test, it fails with:
{code:java}
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-archetype-plugin:3.2.1:integration-test 
(default-integration-test) on project demo:
[ERROR] Archetype IT 'it1' failed: Missing required properties in 
archetype.properties: example-prop
[ERROR] -> [Help 1]
[ERROR] {code}
Only after adding the property to the archetype.properties with a value, it 
will continue to run the test.

It would be nice if the default values were inserted instead, unless specified 
otherwise.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to