Unless you plan to list every single package your plugin needs, be sure to add the value to your list of packages, when including bundle instructions in your plugin XML.
1 2 3 4 5 6 7 8
<plugin ...> <plugin-info> <bundle-instructions> <Import-Package>com.mylibrary,*;resolution:=optional</Import-Package> </bundle-instructions> </plugin-info> ... </plugin>
The value instructs the plugin system to continue to scan your classes for packages, but to resolve all packages optionally. This means if you bundle a library that has code that depends on other libraries you do not need, the resolution will not fail.
If, however, you are sure your code only refers to packages you need, you can omit the string. The advantage here is that you will be notified on installation if required dependencies are missing.