5
Tôi muốn làm một nguyên mẫu có sử dụng một tham số được tạo ra ... nut Tôi không biết nếu là đúng một tham số làm theo cách này:Maven tính nguyên mẫu với giá trị mặc định artifactId
<requiredProperties>
<requiredProperty key="appName">
<defaultValue>${artifactId}</defaultValue>
</requiredProperty>
</requiredProperties>
Đó là không làm việc cho tôi ... tôi đã là một thất bại về việc lồng ghép kiểm tra
[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.