我想创建一个使用参数创建的原型...我不知道这是否是以这种方式制作的参数:
<requiredProperties>
<requiredProperty key="appName">
<defaultValue>${artifactId}</defaultValue>
</requiredProperty>
</requiredProperties>
这对我不起作用......我在集成测试中失败了
[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.
答案 0 :(得分:19)
修改test/resources/projects/basic/archetype.properties
并在其中添加appName=artifactID
。