我想從我的發佈瓶中刪除某些標題(例如「Built-by」)。如何防止使用Maven Bundle插件將特定屬性添加到軟件包清單中?
我讀過,設置標題爲空的內容應該做的伎倆,但它不適合我。例如,我使用:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.3.7</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Built-By>a</Built-By>
<Build-Jdk></Build-Jdk>
<Created-By></Created-By>
<Somethng-else>Hello</Somethng-else>
</instructions>
</configuration>
</plugin>
雖然Something-else
被加入,所有其它的報頭(例如Built-By
)依然存在。任何見解?謝謝!
嗯,它可能很煩人,但我也說過,我離不開它;)關於手冊,我不知道我應該如何從我認爲的[maven-bundle插件手冊](http://svn.apache.org/repos/asf/felix/releases/maven-bundle-plugin -2.3.7/doc/site/index.html)到[BND's](http://www.aqute.biz/Bnd/Format)。相信我,我已經爲此搜索;) – Miquel 2013-03-20 16:10:11
關於'<_removeheaders>構建 - * _ removeheaders>'我可以看到它是一個BND選項,但我不確定它是否由maven-bundle-plugin公開。至少,如果我在原始問題中將它放在''的位置上,這並沒有什麼幫助。任何見解?並且非常感謝您在BND上的工作! –
Miquel
2013-03-20 16:11:27
好吧,這個'<_removeheaders>'進入裏面。加工。謝謝! –
Miquel
2013-03-20 16:37:10