Similarly, we could do the same with Import-Package: com.infoq.templater.api;version="1.0.0" – but bear in mind that the version of the package is distinct from the version of the bundle.
类似的,我们可以用 Import-Package: com.infoq.templater.api;version="1.0.0"做相同的事情 —— 但是要记住package与bundle版本是完全分开的。
If you're familiar with OSGi and the Import-Package header, you don't have to depend on specific plug-ins at all; you can just depend on the packages you need.
如果熟悉osgi和Import - Package文件头,则根本无需依赖于特定的插件;您可以只依赖需要的包。
应用推荐