OSGI number imports restriction
import, java, maven-bundle-plugin, osgi
Solution
I've encountered same behavior when i use `maven-bundle-plugin` of version `2.3.7`. But when i've upgraded version to `3.0.1` it disappears (i think any newer version also should fit).
So, try to upgrade version of used `maven-bundle-plugin` to latest one.
Hope it helps.
Problem
I'm building an OSGI base application, in one of my classes I do an important number of imports ( arround 30 ) and when i launch the app i get this exception : ``` java.lang.ArrayIndexOutOfBoundsException: 18 at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:130) at aQute.lib.osgi.Clazz.<init>(Clazz.java:65) at aQute.lib.osgi.Processor.analyzeJar(Processor.java:159) at aQute.lib.osgi.Processor.analyzeBundleClasspath(Processor.java:77) at aQute.lib.osgi.Analyzer.analyze(Analyzer.java:194) at aQute.lib.osgi.Builder.analyze(Builder.java:95) at aQute.lib.osgi.Analyzer.calcManifest(Analyzer.java:293) at aQute.lib.osgi.Builder.build(Builder.java:45) at org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlug... ``` when i comment the code and reduce the number of imports everything goes fine. It seems like an OSGI restriction, how can I fixe this? Thanks,