]> git.basschouten.com Git - openhab-addons.git/commit
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)
commitb65b27a497a914c670d2f53a49e007cbd4f58bd1
tree22cc3dc45ab2b4a5a2863a8201484762753234c9
parent27383fcd64ec45f786f5b0ad2f2af42c2c9a180f
Allow multi release JARs to resolve (#11303)

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