]> git.basschouten.com Git - openhab-addons.git/commitdiff
Allow multi release JARs to resolve (#11303)
authorMatthew Skinner <matt@pcmus.com>
Sun, 26 Sep 2021 14:16:07 +0000 (00:16 +1000)
committerGitHub <noreply@github.com>
Sun, 26 Sep 2021 14:16:07 +0000 (16:16 +0200)
This allows bnd to resolve multi release jar files.

A number of people have posted they have troubles adding dependancies on the forum with this error.
`Classes found in the wrong directory: {META-INF/versions/9/module-info.class=module-info}`

Issue about it is here:
https://github.com/bndtools/bnd/issues/2227

An alternative fix is to add the following into each bindings pom.xml

```
  <properties>
    <bnd.fixupmessages>"Classes found in the wrong directory"; is:=warning</bnd.fixupmessages>
  </properties>
```

Not sure what the correct way to handle this is but these are two ways I have tested.

Signed-off-by: Matthew Skinner <matt@pcmus.com>
pom.xml

diff --git a/pom.xml b/pom.xml
index 474015610c7313fe4b921a0d8e3dac0f9a62ea24..e79cc74bc1cb4af215212ddf4c0cf88701bc72cb 100644 (file)
--- a/pom.xml
+++ b/pom.xml
@@ -81,7 +81,7 @@
 
     <bnd.importpackage/>
     <bnd.exportpackage/>
-    <bnd.fixupmessages/>
+    <bnd.fixupmessages>"Classes found in the wrong directory"; is:=warning</bnd.fixupmessages>
     <bnd.includeresource>-${.}/NOTICE, -${.}/*.xsd</bnd.includeresource>
 
     <feature.directory>src/main/feature/feature.xml</feature.directory>