At the moment, most libraries are not released as OSGi bundles which means they cannot be used inside the OSGi space unless they are embedded in other bundles. Though there are tools that make the bundling process easy, it is desirable to have the artifacts prepacked so they can be used immediately for development.
To address this problem, the Spring-DM project has osgified most of the common libraries and made them available through a dedicated
Maven repository available
at http://maven.springframework.org/osgi
.
Warning | |
---|---|
The repository is provided as-is without any kind of support. The repository structure/content can (and will) change until it becomes stable. These being said, we hope you find it useful and we'd like to know if there are improvement that can be made to it. |
Currently, all the artifacts published in the repository are marked as SNAPSHOT
s meaning that, in time, their
content can change. This allows clients to download possible manifest updates made to the libraries. We foresee that, as the library usage
increases, several popular items will have the SNAPSHOT
marker remove.
Additionally, to differentiate the OSGi-enabled artifacts from the original ones, all libraries are placed under
org.springframework.osgi
group and their names contains a .osgi
suffix.
So for example, an OSGi version of aopalliance-1.0
jar is available in the Spring-DM OSGi repository under at:
org/springframework/osgi/aopalliance.osgi/1.0-SNAPSHOT/aopalliance.osgi-1.0-SNAPSHOT.jar
The repository is currently hosted at Amazon S3. To browse the repository structure, use a S3 compatible browser (such as this one) since a vanilla web browse will not be suitable.
The use the repository, simply add it ot the repositories
group; since the repository
contains SNAPSHOT
artifacts, make sure to mark it accordingly:
<repositories> <repository> <id>spring-osgified-artifacts</id> <snapshots> <enabled>true</enabled> </snapshots> <name>Springframework Maven OSGified Artifacts Repository</name> <url>http://maven.springframework.org/osgi</url> </repository> </repositories>