如何从Maven程序集插件在清单中添加任意信息 [英] how to add arbitrary information in manifest from maven assembly plugin

查看:64
本文介绍了如何从Maven程序集插件在清单中添加任意信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Assembly插件从多个Maven工件创建一个uber jar.

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.

但是如何?

archive元素不允许任意元素(或是否可以在archive标记内添加foobar: tutu?)

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

还与maven-jar-plugin一起使用,它不起作用,因为这只会影响项目的默认工件,而不会影响组装的工件.

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.

有什么想法吗?

推荐答案

argh ...发布后,我自己发现了...

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

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

有效:)

这篇关于如何从Maven程序集插件在清单中添加任意信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆