Missing com.atlassian.confluence.plugins.index.api on atlas-integration-test, AMPS 5.0.3+, Confluence >= 5.5

Manuel Kummerländer July 2, 2014

Hi,

we switched to SDK/AMPS version 5.0.3. When I try to run the integration tests (atlas-integration-test) I get the following error:

...
[INFO] [talledLocalContainer] DEBUG - 06:58:06,395 - assian.plugin.osgi.container.felix.FelixOsgiContainerManager - [main] - WIRE: [69.0] package; (package=org.springframework.beans.factory.annotation) -> [5.0]
[INFO] [talledLocalContainer] DEBUG - 06:58:06,395 - assian.plugin.osgi.container.felix.FelixOsgiContainerManager - [main] - WIRE: [69.0] package; (package=org.springframework.context) -> [5.0]
[INFO] [talledLocalContainer] DEBUG - 06:58:06,395 - assian.plugin.osgi.container.felix.FelixOsgiContainerManager - [main] - WIRE: [69.0] package; (package=org.springframework.context.event) -> [5.0]
[INFO] [talledLocalContainer] DEBUG - 06:58:06,395 - assian.plugin.osgi.container.felix.FelixOsgiContainerManager - [main] - WIRE: [69.0] package; (package=org.springframework.stereotype) -> [5.0]
[INFO] [talledLocalContainer] DEBUG - 06:58:06,395 -  com.atlassian.plugin.osgi.factory.OsgiPluginInstalledHelper - [main] - Bundle state is now 4
[INFO] [talledLocalContainer]  INFO - 06:58:06,395 - assian.plugin.osgi.container.felix.FelixOsgiContainerManager - [FelixDispatchQueue] - Resolved bundle com.atlassian.webhooks.atlassian-webhooks-plugin (69)
[INFO] [talledLocalContainer] DEBUG - 06:58:06,395 -  com.atlassian.plugin.osgi.factory.OsgiPluginInstalledHelper - [main] - Bundle is in INSTALLED for net.some.confluence.plugin.testplugin
[INFO] [talledLocalContainer] DEBUG - 06:58:06,396 - assian.plugin.osgi.container.felix.FelixOsgiContainerManager - [main] - No viable candidates
[INFO] [talledLocalContainer] org.apache.felix.framework.resolver.ResolveException: Unable to resolve 70.0: missing requirement [70.0] package; (package=com.atlassian.confluence.plugins.index.api)
[INFO] [talledLocalContainer] 	at org.apache.felix.framework.resolver.ResolverImpl.populateCandidates(ResolverImpl.java:457)
[INFO] [talledLocalContainer] 	at org.apache.felix.framework.resolver.ResolverImpl.resolve(ResolverImpl.java:75)
[INFO] [talledLocalContainer] 	at org.apache.felix.framework.Felix$FelixResolver.resolve(Felix.java:3986)
[INFO] [talledLocalContainer] 	at org.apache.felix.framework.Felix.resolveBundle(Felix.java:3402)
[INFO] [talledLocalContainer] 	at org.apache.felix.framework.Felix.resolveBundles(Felix.java:3377)
[INFO] [talledLocalContainer] 	at org.apache.felix.framework.PackageAdminImpl.resolveBundles(PackageAdminImpl.java:293)
[INFO] [talledLocalContainer] 	at com.atlassian.plugin.osgi.factory.OsgiPluginInstalledHelper.getRequiredPlugins(OsgiPluginInstalledHelper.java:124)
[INFO] [talledLocalContainer] 	at com.atlassian.plugin.osgi.factory.OsgiPlugin.getRequiredPlugins(OsgiPlugin.java:398)
[INFO] [talledLocalContainer] 	at com.atlassian.plugin.impl.AbstractDelegatingPlugin.getRequiredPlugins(AbstractDelegatingPlugin.java:252)
... 

Starting the application using atlas-run works fine.

The missing package is integrated in the POM.xml like this since 5.2:

<plugin>
   <groupId>com.atlassian.maven.plugins</groupId>
   <artifactId>maven-confluence-plugin</artifactId>
   <version>${amps.version}</version>
   <extensions>true</extensions>
   <configuration>
      <productVersion>${confluence.version}</productVersion>
      <productDataVersion>${confluence.data.version}</productDataVersion>
      <productDataPath>${basedir}/src/test/resources/generated-test-resources.zip</productDataPath>
      <log4jProperties>src/main/resources/net/some/confluence/plugin/testplugin/log4j.properties</log4jProperties>
      <instructions>
         <Import-Package>com.atlassian.confluence.plugins.index.api;version="[1,2)", *;resolution:=optional</Import-Package>
         <Require-Bundle>com.atlassian.confluence.plugins.confluence-extractor-api-plugin;bundle-version="${confluence-extractor-api-plugin.version}", com.atlassian.labs.lucene-compat-plugin;bundle-version="${lucene-compat-plugin.version}"</Require-Bundle>
      </instructions>
...

 

 

Can anyone give me at least a hint what I can do now to run my integration tests? What do I have to change in my POM or anywhere else?

Thanks in advance.

Regards
Manuel

 

 

3 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Manuel Kummerländer February 24, 2015

Hi Felix, sadly I am not allowed to do that :(.

0 votes
Felix Grund (Scandio)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 20, 2015

Hi Manuel! If you sent me your plugin (do a atlas-clean and create a zip file or something) I would try to get it work ;)

0 votes
Manuel Kummerländer February 20, 2015

Update: on Confluence 5.7, AMPS 5.0.13, SDK 5.0.13 the error still occurs on "atlas-integration-test": Unable to resolve 68.0: missing requirement [68.0] package; (package=com.atlassian.confluence.plugins.index.api) :(

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events