How can I use bnd directives instruction from maven-bundle-plugin? bnd directives are starting with a '-' character, and this is an invalid xml tag:
<-foo>bar</-foo>
I have checked the official page for maven-bundle-plugin, and they said that it should start with a '-' character as well:
Directives - Any instruction starting with a '-' character is considered to be a directive that informs BND to perform some special processing and is not copied to the manifest.
The bundle goal description doesn't seem to have this information as well. to perform some special processing and is not copied to the manifest.
Replace the '-' character with '_' character. This will work:
<_foo>bar</_foo>
It is actually vaguely described in the FAQ page:
(this is <_exportcontents> in the POM because a tag can't start with '-')
This improvement also can be found in their issue tracker.