Skip to content

Commit fba826b

Browse files
committed
Pin bnd to 7.1.0 to work around Import-Service truncation in bnd 7.2+
maven-bundle-plugin 6.1.0 ships bnd 7.3.0. bnd >= 7.2.0 truncates Import-Service filter attribute values at the first '=', which corrupts the blueprint NamespaceHandler service filter and makes the generated manifest unparseable at resolution time (IllegalArgumentException: Unknown operator), failing ConfigExampleTest.testBlueprint. Override the plugin's bndlib dependency back to 7.1.0 (last good release) so the 6.1.0 bump can land until the regression is fixed upstream.
1 parent 021c71d commit fba826b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

pom.xml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,11 @@
229229
<felix.http.version>2.0.2</felix.http.version>
230230
<felix.inventory.version>2.0.0</felix.inventory.version>
231231
<felix.maven-bundle-plugin.version>6.1.0</felix.maven-bundle-plugin.version>
232+
<!-- maven-bundle-plugin 6.1.0 ships bnd 7.3.0; bnd >= 7.2.0 truncates Import-Service
233+
filter attribute values at the first '=' (e.g. the blueprint NamespaceHandler
234+
import), producing an unparseable filter. Pin bnd back to the last good release
235+
until the regression is fixed upstream. -->
236+
<bnd.version>7.1.0</bnd.version>
232237
<felix.utils.version>1.11.8</felix.utils.version>
233238
<felix.webconsole.version>5.0.18</felix.webconsole.version>
234239
<felix.webconsole.api.version>3.4.0</felix.webconsole.api.version>
@@ -678,6 +683,15 @@
678683
<version>${felix.maven-bundle-plugin.version}</version>
679684
<inherited>true</inherited>
680685
<extensions>true</extensions>
686+
<dependencies>
687+
<!-- Override bnd shipped with maven-bundle-plugin 6.1.0 (7.3.0), which
688+
corrupts Import-Service filter headers. See bnd.version above. -->
689+
<dependency>
690+
<groupId>biz.aQute.bnd</groupId>
691+
<artifactId>biz.aQute.bndlib</artifactId>
692+
<version>${bnd.version}</version>
693+
</dependency>
694+
</dependencies>
681695
<configuration>
682696
<obrRepository>NONE</obrRepository>
683697
<instructions>

0 commit comments

Comments
 (0)