I cannot get our app running on Confluence 8.8.0 with the Atlassian SDK. It worked with the 8.8.0-beta1, but from RC1 on, I get the following error using
- Java Spring Config using atlassian-plugins-osgi-javaconfig 0.6.0
- AMPS 8.13.1
[INFO] [talledLocalContainer] 11:28:30,283 INFO [FelixDispatchQueue] [container.felix.FelixOsgiContainerManager] bundleChanged Installed bundle de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros (308)
[INFO] [talledLocalContainer] 11:28:30,298 WARN [UpmAsynchronousTaskManager:thread-1] [hook.dmz.DmzResolverHook] filterMatches Package org.apache.commons.lang3 is deprecated and is not available for export to plugin de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros
[INFO] [talledLocalContainer] -- url: /confluence/rest/plugins/1.0/ | userName: admin | traceId: d9968791e228fb65
[INFO] [talledLocalContainer] 11:28:30,298 ERROR [UpmAsynchronousTaskManager:thread-1] [osgi.factory.OsgiPluginInstalledHelper] availableForTraversal Cannot determine required plugins, cannot resolve bundle 'de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros'
[INFO] [talledLocalContainer] -- url: /confluence/rest/plugins/1.0/ | userName: admin | traceId: d9968791e228fb65
[INFO] [talledLocalContainer] 11:28:30,306 INFO [UpmAsynchronousTaskManager:thread-1] [plugin.manager.PluginEnabler] actualEnable Resolving 1 plugins
[INFO] [talledLocalContainer] 11:28:30,312 WARN [UpmAsynchronousTaskManager:thread-1] [hook.dmz.DmzResolverHook] filterMatches Package org.apache.commons.lang3 is deprecated and is not available for export to plugin de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros
[INFO] [talledLocalContainer] -- url: /confluence/rest/plugins/1.0/ | userName: admin | traceId: d9968791e228fb65
[INFO] [talledLocalContainer] 11:28:30,312 INFO [UpmAsynchronousTaskManager:thread-1] [plugin.manager.PluginEnabler] actualEnable Enabling 1 plugins: [de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros]
[INFO] [talledLocalContainer] 11:28:30,318 WARN [UpmAsynchronousTaskManager:thread-1] [hook.dmz.DmzResolverHook] filterMatches Package org.apache.commons.lang3 is deprecated and is not available for export to plugin de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros
[INFO] [talledLocalContainer] -- url: /confluence/rest/plugins/1.0/ | userName: admin | traceId: d9968791e228fb65
[INFO] [talledLocalContainer] 11:28:30,319 ERROR [UpmAsynchronousTaskManager:thread-1] [osgi.factory.OsgiPlugin] enableInternal Detected an error (BundleException) enabling the plugin 'de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros' : Unable to resolve de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros [308](R 308.0): missing requirement [de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros [308](R 308.
0)] osgi.wiring.package; (osgi.wiring.package=org.apache.commons.lang3) Unresolved requirements: [[de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros [308](R 308.0)] osgi.wiring.package; (osgi.wiring.package=org.apache.commons.lang3)]. This error usually occurs when your plugin imports a package from another bundle with a specific version constraint and either the bundle providing that package doesn't meet those version constraints, or there is no bundle available that provides the specified package. For more details on how to fix this, see https://developer.atlassian.com/x/mQAN
[INFO] [talledLocalContainer] -- url: /confluence/rest/plugins/1.0/ | userName: admin | traceId: d9968791e228fb65
[INFO] [talledLocalContainer] 11:28:30,320 WARN [UpmAsynchronousTaskManager:thread-1] [plugin.impl.AbstractPlugin] enable Unable to enable plugin 'de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros'
[INFO] [talledLocalContainer] -- url: /confluence/rest/plugins/1.0/ | userName: admin | traceId: d9968791e228fb65
[INFO] [talledLocalContainer] 11:28:30,320 WARN [UpmAsynchronousTaskManager:thread-1] [plugin.impl.AbstractPlugin] enable Because of this exception
[INFO] [talledLocalContainer] -- url: /confluence/rest/plugins/1.0/ | userName: admin | traceId: d9968791e228fb65
[INFO] [talledLocalContainer] com.atlassian.plugin.osgi.container.OsgiContainerException: Cannot start plugin: de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros
[INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:423)
[INFO] [talledLocalContainer] at com.atlassian.plugin.impl.AbstractPlugin.enable(AbstractPlugin.java:260)
[INFO] [talledLocalContainer] at com.atlassian.plugin.manager.PluginEnabler.actualEnable(PluginEnabler.java:120)
[INFO] [talledLocalContainer] at com.atlassian.plugin.manager.PluginEnabler.enable(PluginEnabler.java:97)
[INFO] [talledLocalContainer] at com.atlassian.plugin.manager.DefaultPluginManager.lambda$enableDependentPlugins$24(DefaultPluginManager.java:1244)
[INFO] [talledLocalContainer] at com.atlassian.plugin.manager.PluginTransactionContext.wrap(PluginTransactionContext.java:63)
[INFO] [talledLocalContainer] at com.atlassian.plugin.manager.DefaultPluginManager.enableDependentPlugins(DefaultPluginManager.java:1228)
<... SNIP ...>
[INFO] [talledLocalContainer] Caused by: org.osgi.framework.BundleException: Unable to resolve de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros [308](R 308.0): missing requirement [de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros [308](R 308.0)] osgi.wiring.package; (osgi.wiring.package=org.apache.commons.lang3) Unresolved requirements: [[de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros [308](R 308.0)] osgi.wiring.package; (osgi.wiring.package=org.apache.commons.lang3)]
[INFO] [talledLocalContainer] at org.apache.felix.framework.Felix.resolveBundleRevision(Felix.java:4398)
[INFO] [talledLocalContainer] at org.apache.felix.framework.Felix.startBundle(Felix.java:2308)
[INFO] [talledLocalContainer] at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:1006)
[INFO] [talledLocalContainer] at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:992)
[INFO] [talledLocalContainer] at com.atlassian.plugin.osgi.factory.OsgiPlugin.enableInternal(OsgiPlugin.java:404)
[INFO] [talledLocalContainer] ... 106 more
Adding the dependency to commons-lang (scope compile instead of provided) won’t do the trick, since the enforcer tells me to not do so.
[INFO] validate banned dependencies
[WARNING] Rule 0: org.apache.maven.plugins.enforcer.BannedDependencies failed with message:
make sure platform artifacts are not bundled into plugin
Found Banned Dependency: org.apache.commons:commons-lang3:jar:3.14.0
Use 'mvn dependency:tree' to locate the source of the banned dependencies.
commons-lang ist just one example here.
I am under the impression that the correct imports are generated for me due to the Java Spring Config configuration using atlassian-plugins-osgi-javaconfig. Am I wrong?
What is the difference between versions 8.8.0-beta1 and 8.8.0 and how can I start the Confluence server in version 8.8.0 in the developer environment and deploy the app successfully? Would I need to automatically generate the imports for the app, but manually crafting the list of banning excludes as shown by @clouless in his POM? Not that I would come very far without a further clues …
[INFO] [talledLocalContainer] 13:56:29,599 INFO [UpmAsynchronousTaskManager:thread-2] [plugin.manager.PluginEnabler] actualEnable Resolving 1 plugins
[INFO] [talledLocalContainer] 13:56:29,604 WARN [UpmAsynchronousTaskManager:thread-2] [hook.dmz.DmzResolverHook] filterMatches Package org.eclipse.gemini.blueprint.context is deprecated and is not available for export to plugin de.smartics.atlassian.confluence.smartics-atlassian-confluence-macros