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>
This commit is contained in:
Matthew Skinner 2021-09-27 00:16:07 +10:00 committed by GitHub
parent 27383fcd64
commit b65b27a497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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>