I'm pretty much a n00b with both Spring and Atlassian plugin development, so perhaps I'm just doing something wrong, but here's a simple way to reproduce my scenario:
- I created a new bamboo plugin using the atlas-create-bamboo-plugin command in version 6.2.14 of the SDK.
- The only change I made was to set bamboo.version and bamboo.data.version to 5.15.3 in the pom.xml
- I ran 'atlas-debug' to start up a local server, and verified that the plugin is resolved and loaded.
- I added a single dependency in my pom.xml:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>4.2.8.RELEASE</version>
<scope>provided</scope>
</dependency>
- I recompiled/packaged the plugin with 'atlas-package'.
- The plugin compiled, but failed to load, and the Felix console at /bamboo/plugins/servlet/system/console/bundles shows a large number of unresolved OSGi imports for my plugin.
The goal here is to be able to use Spring's RestTemplate to connect to an external service.