Developer
Documentation
Resources
Get Support
Sign in
Developer
Get Support
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
Developer
Sign in
DOCUMENTATION
Cloud
Data Center
Resources
Sign in
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
<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: