Maven 货物和构建号插件
有没有人将 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论