"classes found in the wrong directory" error while building Confluence plugin that depends on a multi-release jar

Hi All,

I am developing an Atlassian Confluence plugin that uses h2database engine.

It builds fine on H2 version 196. However, if I switch to a version 197 and above (these versions started using multi-release jar approach), the build starts failing with the following error:

[ERROR] Manifest com.v-and-b:sqlTableFilterPlugin:atlassian-plugin:1.0.27 : Classes found in the wrong directory: {META-INF/versions/9/org/h2/util/Bits.class=org.h2.util.Bits}

[ERROR] Error(s) found in manifest configuration

I have discussed this with H2 support (see reference 1 below) and they noted that this should be fixed in the plugin SDK.
Can someone, please, advise?

The issue is also discussed in:

  1. (H2 development Google Groups): https://groups.google.com/forum/#!topic/h2-database/XZuK7Wyra1M
  2. (Atlassian Ecosystem): https://ecosystem.atlassian.net/servicedesk/customer/portal/14/DEVHELP-2644