mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 07:02:02 +01:00
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>
This commit is contained in:
parent
554e7574d1
commit
0ae2a2b751
6
pom.xml
6
pom.xml
@ -159,9 +159,13 @@ Import-Package: \\
|
||||
-sources: false
|
||||
-contract: *
|
||||
-includeresource: ${bnd.includeresource}
|
||||
-fixupmessages: ${bnd.fixupmessages}]]></bnd>
|
||||
-fixupmessages: \\
|
||||
'Unused Import-Package instructions';is:=ignore,\\
|
||||
'Unused Export-Package instructions';is:=ignore,\\
|
||||
${bnd.fixupmessages}]]></bnd>
|
||||
<!-- -dsannotations-options: norequirements -->
|
||||
<!-- Bundle-SymbolicName: ${project.groupId}.${project.artifactId} -->
|
||||
<skipIfEmpty>true</skipIfEmpty>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
|
Loading…
Reference in New Issue
Block a user