开发者

Maven archetype properties with default value artifactID

开发者 https://www.devze.com 2023-03-17 04:44 出处:网络
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:

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消