File: maven-bundle-plugin.patch

package info (click to toggle)
mina2 2.2.1-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,844 kB
  • sloc: java: 49,768; xml: 1,967; makefile: 16
file content (38 lines) | stat: -rw-r--r-- 1,556 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From: Markus Koschany <apo@debian.org>
Date: Sun, 18 Oct 2020 00:10:26 +0200
Subject: maven bundle plugin

Bug-Debian: https://bugs.debian.org/971193
Forwarded: not-needed

"key must be an EXTENDED". Code is in BND Analyzer.Java, method verifyAttribute
https://github.com/bndtools/bnd/blob/master/biz.aQute.bndlib/src/aQute/bnd/osgi/Analyzer.java

It appears the path variable is null but I don't know the reason. Probably a
bug in either bnd or maven-bundle-plugin. The Export-Package paragraph looks
correct to me but it causes the build failure. At the moment no package seems
to require the OSGi metadata, hence this kind of workaround.
---
 src/mina-core/pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/src/mina-core/pom.xml
+++ b/src/mina-core/pom.xml
@@ -49,7 +49,7 @@
           <manifestLocation>META-INF</manifestLocation>
           <instructions>
             <Bundle-SymbolicName>${project.groupId}.core</Bundle-SymbolicName>
-            <Export-Package>
+            <!--<Export-Package>
               org.apache.mina.core,
               org.apache.mina.core.buffer,
               org.apache.mina.core.file,
@@ -96,7 +96,7 @@
               org.apache.mina.transport.vmpipe,
               org.apache.mina.util,
               org.apache.mina.util.byteaccess
-            </Export-Package>
+            </Export-Package>-->
             <Import-Package>
               javax.crypto,javax.crypto.spec,javax.net.ssl,javax.security.sasl,org.slf4j;version=${osgi-min-version.slf4j.api}
             </Import-Package>