Last updated Sep 6, 2019

Spring Java configuration - Maven dependencies

In order to use Spring Java configuration in your P2 app, you will need to add the following Maven dependencies:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 <dependency> <groupId>org.osgi</groupId> <artifactId>osgi.core</artifactId> <version>8.0.0</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>5.3.39-atlassian-3</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>5.3.39-atlassian-3</version> <scope>provided</scope> </dependency>

N.B. You should manage the versions by importing the DC platform public API POM.

If you want to use the Atlassian helper library that makes it easy to import and export OSGi services, also add this dependency:

1
2
<dependency>
    <groupId>com.atlassian.plugins</groupId>
    <artifactId>atlassian-plugins-osgi-javaconfig</artifactId>
    <version>0.6.1</version>
</dependency>

You can find out the latest version of this library by pointing your browser to the Atlassian Maven repository or mvnrepository.com.

Rate this page: