]> git.basschouten.com Git - openhab-addons.git/commit
Suppress bnd warnings for unused imports/exports (#11513)
authorWouter Born <github@maindrain.net>
Fri, 5 Nov 2021 12:56:58 +0000 (13:56 +0100)
committerGitHub <noreply@github.com>
Fri, 5 Nov 2021 12:56:58 +0000 (13:56 +0100)
commit0ae2a2b7515d81e01bc0a19fdaf3d8357b365252
tree6ec16c273639bf2ab3b45204967e4ae7328d9ad7
parent554e7574d1495609c114c386f7f70537b0677f62
Suppress bnd warnings for unused imports/exports (#11513)

Ignores warnings like:

```
Warning:  /home/runner/work/openhab-addons/openhab-addons/bom/runtime-index/pom.xml [0:0]: Unused Export-Package instructions: [org.openhab.*]
Warning:  /home/runner/work/openhab-addons/openhab-addons/bom/runtime-index/pom.xml [0:0]: Unused Import-Package instructions: [io.swagger.v3.oas.annotations.*,
```

These are safe to ignore because the import/export packages are globally defined and not every bundle imports/exports all these packages.

The `skipIfEmpty` configuration furthermore prevents warnings when the bnd-maven-plugin runs on projects that don't have any code like BOMs.

More important compiler/SAT warnings standout more when there are there are fewer useless warnings.

Signed-off-by: Wouter Born <github@maindrain.net>
pom.xml