I am still having issues with using com.atlassian.confluence.event.events.admin.ImportFinishedEvent which depends on com.atlassian.confluence.importexport.ImportContext which seems to be part of the confluence-jar in DEV mode (which i thought we should use in preparation for Confluence 9). This is the error message I receive:
[INFO] [talledLocalContainer] Caused by: org.osgi.framework.BundleException: Unable to resolve xxx [305](R 305.0): missing requirement [xxx [305](R 305.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.confluence.importexport) Unresolved requirements: [[xxx [305](R 305.0)] osgi.wiring.package; (osgi.wiring.package=com.atlassian.confluence.importexport)]
These are my dependencies:
<properties>
<confluence.version>8.9.0-beta2</confluence.version>
<platform.version>6.5.8</platform.version>
<jdk.version>11</jdk.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.atlassian.confluence</groupId>
<artifactId>confluence-plugins-platform-pom</artifactId>
<version>${confluence.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.atlassian.platform.dependencies</groupId>
<artifactId>platform-public-api</artifactId>
<version>${platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>com.atlassian.platform.dependencies</groupId>
<artifactId>platform-deprecated-public-api</artifactId>
<version>${platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
This is part of my configuration, using AMPS 8.14.1:
<atlassian.dev.mode>true</atlassian.dev.mode>
<upm.plugin.upload.enabled>true</upm.plugin.upload.enabled> <confluence.osgi.treatDeprecatedPackagesAsPublic>true</confluence.osgi.treatDeprecatedPackagesAsPublic>
Typically I would resolve this by setting the dependency with scope ‘compile’ and add banningExcludes. What is the solution here? I assume it is something obvious, but I cannot figure out how to resolve this.
Just for reference: I posted a similar question here a couple of days ago: Preparing for Confluence 9.0 - EAP coming soon - #82 by rr1