[ 
https://issues.apache.org/jira/browse/KARAF-3234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14135757#comment-14135757
 ] 

Jean-Baptiste Onofré commented on KARAF-3234:
---------------------------------------------

Waiting for this fix, I downgrade to maven-bundle-plugin 2.4.0.

> Manual doesn't build with maven-bundle-plugin >= 2.5.0
> ------------------------------------------------------
>
>                 Key: KARAF-3234
>                 URL: https://issues.apache.org/jira/browse/KARAF-3234
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-documentation
>            Reporter: Jean-Baptiste Onofré
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 4.0.0, 3.0.3, 2.4.1
>
>
> The manual doesn't build with latest version of maven-bundle-plugin (>= 
> 2.5.0):
> {code}
> [INFO] --- maven-bundle-plugin:2.5.0:manifest (bundle-manifest) @ manual ---
> java.lang.ArrayIndexOutOfBoundsException: 176
>         at aQute.bnd.osgi.Clazz.classConstRef(Clazz.java:1862)
>         at aQute.bnd.osgi.Clazz.crawl(Clazz.java:1166)
>         at aQute.bnd.osgi.Clazz.doCode(Clazz.java:1134)
>         at aQute.bnd.osgi.Clazz.doAttribute(Clazz.java:945)
>         at aQute.bnd.osgi.Clazz.doAttributes(Clazz.java:910)
>         at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:741)
>         at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:494)
>         at aQute.bnd.osgi.Clazz.parseClassFileWithCollector(Clazz.java:483)
>         at aQute.bnd.osgi.Clazz.parseClassFile(Clazz.java:473)
>         at aQute.bnd.osgi.Analyzer.analyzeJar(Analyzer.java:2177)
>         at aQute.bnd.osgi.Analyzer.analyzeBundleClasspath(Analyzer.java:2114)
>         at aQute.bnd.osgi.Analyzer.analyze(Analyzer.java:138)
>         at aQute.bnd.osgi.Builder.analyze(Builder.java:343)
>         at aQute.bnd.osgi.Analyzer.calcManifest(Analyzer.java:616)
>         at aQute.bnd.osgi.Builder.build(Builder.java:80)
>         at 
> org.apache.felix.bundleplugin.ManifestPlugin.getAnalyzer(ManifestPlugin.java:208)
>         at 
> org.apache.felix.bundleplugin.ManifestPlugin.getManifest(ManifestPlugin.java:114)
>         at 
> org.apache.felix.bundleplugin.ManifestPlugin.execute(ManifestPlugin.java:69)
>         at 
> org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:292)
>         at 
> org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:283)
>         at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>         at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>         at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>         at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>         at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>         at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>         at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>         at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>         at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>         at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:606)
>         at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>         at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>         at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>         at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> ...
> {code}
> It looks like an issue in the maven-bundle-plugin (around scala, and maybe 
> Java dependency), but I will look for a workaround by configuration.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to