LibraryToggle FramesPrintFeedback

In order to benefit from OSGi version management capabilities, it is important to restrict the range of acceptable versions for imported packages. You can use either of the following approaches:

[Tip]Tip

In practice, you are likely to find that the majority of imported packages can be automatically versioned by Maven. It is, typically, only occasionally necessary to specify a version manually.

Normally, it is not good practice to import the packages that you export (though there are exceptions to this rule). Here are some guidelines to follow:

Assuming you want to avoid importing the packages that you export, there are two alternative approaches you can take, as follows:

Comments powered by Disqus
loading table of contents...