Geotools libraries are not directly usable in an OSGi environment. This affects not only uDig (based on Eclipse RCP which in turn is based on OSGi) but also any potential clients of Geotools which are OSGi based.
uDig currently resorts to putting all required Geotools libraries and their external dependencies into one giant bundle net.refractions.udig.libs. This is a major problem for the following reasons:
- It defeats the purpose of modularization.
- This approach works for uDig itself, but not for any client project developing components which have to work both with or without uDig.
Rather than leaving it up the client to osgify Geotools according to their needs, it would be preferable if the Geotools distribution were OSGi compliant.
This can be achieved by changing the Maven POMs and the build process, without any changes to Java sources. See
for a detailed proposal.