java - Mojo Codehaus 属性插件替代品
问题描述
我目前正在尝试与 Codehaus Mojo Properties 合作。我今天早上才知道的。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0.0</version>
</plugin>
所以我不能说我是这方面的专家。但是当试图建立一个战争文件时,我不断得到:
Caused by: org.apache.maven.plugin.MojoFailureException: Circular property definition:
我的插件配置是:
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<inherited>true</inherited>
<executions>
<execution>
<id>read-pal-properties</id>
<phase>initialize</phase>
<goals>
<goal>read-project-properties</goal>
</goals>
<configuration>
<files>
<file>${project.basedir}\src\main\resources\system.properties</file>
</files>
</configuration>
</execution>
</executions>
</plugin>
失败的属性是:
webserver.websphere=WebSphere:cell=${webserver.cell},node=${webserver.node},server=${webserver.server}
我用谷歌搜索了一下,发现这是一个已知的错误。所以只是想看看是否有其他插件可以做同样的工作。
https://github.com/mojohaus/properties-maven-plugin/issues/27
任何帮助,将不胜感激。
解决方案
如果超过 2 年仍未找到答案,请使用 1.0-alpha-2 版本
推荐阅读
- python - SARIMAXResults 对象的 polynomial_trend 属性不包含拟合的趋势多项式系数
- kotlin - 枚举的位标志没有得到正确的结果
- amazon-web-services - 使用 AWS CLI 修改 AWS ALB 流量分配
- angular - Angular 8 如何使用与 NavigationExtras 不同状态的相同路由?
- python - 过滤多索引分组熊猫数据框
- python-3.x - 如何打乱python字典
- python - 在 django rest 框架中以 dd-mm-YYYY 格式发布日期
- javascript - 对 ES6 函数中的参数解构有什么具体的模式建议吗?
- reactjs - 如何在反应中增加悬停时卡片的大小
- php - php按id查看照片