我想创建一个使用要创建的参数的原型...坚果我不知道以这种方式创建的参数是否正确:
<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.
Edit test/resources/projects/basic/archetype.properties
并添加appName=artifactID
there.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)