Maven archetype properties with default value artifactID
I want to make an archetype that use a parameter to be created...nut I don't know if is right a parameter made in this way:
<requiredProperties>
<requiredProperty key="appName">
<defaultValue>${artifactId}</defaultValue>
</requiredProperty>
</requiredProperties>
It's not working for me...i've a failure on the integration-test
[INFO] --- maven-archetype-plugin:2.0:integration-test (default-integration-test) @webapp-archetype --- [ERROR] Archetype test.archetype:webapp-archetype:1.0-SNAPSHOT is not configured Property appName is missing. 开发者_如何转开发org.apache.maven.archetype.exception.ArchetypeNotConfigured: Archetype test.archetype:webapp-archetype:1.0-SNAPSHOT is not configured Property appName is missing.
Edit test/resources/projects/basic/archetype.properties
and add appName=artifactID
there.
精彩评论