我目前正在尝试使用Codehaus。我今早才发现的。
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0.0</version>
</plugin>所以我不能说我是这方面的专家。但是,当我试图构建一个war文件时,我一直得到:
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}我在谷歌上搜索了一下,发现这是一个已知的bug。因此,我只想看看是否还有其他插件可以完成同样的工作。
https://github.com/mojohaus/properties-maven-plugin/issues/27
任何帮助都将不胜感激。
发布于 2022-03-03 17:26:42
如果您在>2年后仍未找到答案,请使用1.0-alpha-2版本。
https://stackoverflow.com/questions/57183842
复制相似问题