Maven 货物和构建号插件

发布于 2024-12-13 18:50:43 字数 612 浏览 8 评论 0原文

有没有人将 Maven 插件 Cargo 和 Buildnumber 结合在一起工作?我可以从 BuildNumber 插件创建一个属性“buildNumber”,但该属性不会传播到 Cargo 插件中。正如此处所述,此问题早在 2008/2009 年就已解决,但仍未真正解决。

我的 pom.xml 的

<version>0.1</version>
...
<finalName>webapp-${project.version}.${buildNumber}</finalName>

buildNumber 已从 SCM 中正确提取。 maven-war插件打包的war文件具有正确的文件名(例如webapp-0.1.460.war) 但 Cargo 插件对 ${buildNumber} 一无所知

FileNotFoundException: target/webapp-0.1.${buildNumber}.war (No such file or directory)

Is there anybody out there who has combine the both maven plugins Cargo and Buildnumber work together ? I can create a property 'buildNumber' from the BuildNumber plugin well, but this property isn't propagated into the Cargo plugin. As mentions here this issue was adressing back in 2008/2009 but still not really fixed.

my pom.xml

<version>0.1</version>
...
<finalName>webapp-${project.version}.${buildNumber}</finalName>

The buildNumber was properly extract from the SCM.
The war file packaged by the maven-war plugin has the correct filename (e.g. webapp-0.1.460.war)
But the Cargo plugin doesn't know anything about ${buildNumber}

FileNotFoundException: target/webapp-0.1.${buildNumber}.war (No such file or directory)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文