最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

maven - Sharing variables declared within archetype-metadata.xml to post groovy custom archetype - Stack Overflow

programmeradmin2浏览0评论

how to make variables declared within requiredproperties elements within required property element inside archetype-metadata.xml to be accessed from archetype post groovy script while writing custom archetype

Sample archetype-metadata.xml :

<requiredProperties>
<requiredProperty key="proxy-name">
    <defaultValue>${proxy.name}</defaultValue>
</requiredProperty>
<requiredProperty key="proxy-desc">
    <defaultValue>${proxy.description}</defaultValue>
</requiredProperty>

I want to fletch the value mentioned of proxy-name mentioned within archetype-metadata.xml and do certain specific options depending of the value of proxy-name variable with archetype post execution groovy script.

发布评论

评论列表(0)

  1. 暂无评论