how to add arbitrary information in manifest from maven assembly plugin

こ雲淡風輕ζ 提交于 2019-12-05 12:11:11

问题


i use the assembly plugin to create a uber jar from several maven artifacts.

Now I like to add some company specific entries into the Manifest of the created assembly jar.

But how ?

the archive element doesnt allow arbitrary elements (or is there a way to add foobar: tutu inside the archive tag ?)

also in addition with maven-jar-plugin it does not work as this only affects the default artifact of the project and not the assembled.

Any idea how to do this ?


回答1:


argh... after posting it i found it out myself...

<archive>
    <manifestEntries>
        <foobar>bla</foobar>
    </manifestEntries>
</archive>

works :)



来源:https://stackoverflow.com/questions/3864841/how-to-add-arbitrary-information-in-manifest-from-maven-assembly-plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!