[英]How do I add an Implementation-Version value to a jar manifest using Maven's assembly plugin?
I'd like to add an Implementation-Version line to a manifest in my jar file that reflects the POM version number, using the maven assembly plugin. 我想使用maven程序集插件向我的jar文件中的清单添加一个实现版本行,该清单反映了POM版本号。
Note that this is similar but different to another of my recent questions about the jar plugin. 请注意,这与我最近关于jar插件的另一个问题类似但不同。
Actually I'm a fool.. you do it in exactly the same way, ie 其实我是个傻瓜......你用完全相同的方式做到这一点,即
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
Silly question. 愚蠢的问题。 Should have tried that first, really.
应该先尝试一下,真的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.