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插件的另一个问题类似但不同。
1 个解决方案
#1
8
Actually I'm a fool.. you do it in exactly the same way, i.e.
其实我是个傻瓜..你用完全相同的方式做到这一点,即
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
Silly question. Should have tried that first, really.
愚蠢的问题。应该先尝试一下,真的。
#1
8
Actually I'm a fool.. you do it in exactly the same way, i.e.
其实我是个傻瓜..你用完全相同的方式做到这一点,即
<configuration>
<archive>
<manifest>
<addDefaultImplementationEntries>true</addDefaultImplementationEntries>
</manifest>
</archive>
</configuration>
Silly question. Should have tried that first, really.
愚蠢的问题。应该先尝试一下,真的。