I added an instruction making that package optional. Better suggestions are welcome.
<instructions> <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency> <Embed-Transitive>true</Embed-Transitive> <Import-Package>sun.misc;resolution:=optional,*</Import-Package> </instructions>

