求助:java.lang.ArrayIndexOutOfBoundsException: 18

发布于 2021-11-30 12:41:33 字数 6352 浏览 754 评论 8

Maven install 的时候报错,菜鸟一个,不知道是程序的问题,还是pom.xml 的问题,求大神指导下

[INFO] --- maven-bundle-plugin:2.3.4:bundle (default-bundle) @ my-cyaction-app ---

java.lang.ArrayIndexOutOfBoundsException: 18

at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:412)

at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:333)

at aQute.lib.osgi.Clazz.parseClassFileWithCollector(Clazz.java:323)

at aQute.lib.osgi.Clazz.parseClassFile(Clazz.java:313)

at aQute.lib.osgi.Analyzer.analyzeJar(Analyzer.java:1646)

at aQute.lib.osgi.Analyzer.analyzeBundleClasspath(Analyzer.java:1534)

at aQute.lib.osgi.Analyzer.analyze(Analyzer.java:115)

at aQute.lib.osgi.Builder.analyze(Builder.java:296)

at aQute.lib.osgi.Analyzer.calcManifest(Analyzer.java:292)

at aQute.lib.osgi.Builder.build(Builder.java:68)

at org.apache.felix.bundleplugin.BundlePlugin.buildOSGiBundle(BundlePlugin.java:375)

at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:270)

at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:224)

at org.apache.felix.bundleplugin.BundlePlugin.execute(BundlePlugin.java:215)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)

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:116)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)

at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)

at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862)

at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:197)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)

at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)

at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)

at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)

[ERROR] Error building bundle org.cytoscape.myapp:my-cyaction-app:bundle:1.0 : Exception: 18

[ERROR] Error building bundle org.cytoscape.myapp:my-cyaction-app:bundle:1.0 : Invalid class file: org/cytoscape/myapp/internal/FindInterfaceResidueAction$1.class

[ERROR] Error(s) found in bundle configuration

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 5.456 s

[INFO] Finished at: 2016-09-19T21:00:38+08:00

[INFO] Final Memory: 14M/240M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.felix:maven-bundle-plugin:2.3.4:bundle (default-bundle) on project my-cyaction-app: Error(s) found in bundle configuration -> [Help 1]

[ERROR] 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

等风来 2021-12-03 22:45:04

谢谢提醒,下次提问会仔细点

落墨 2021-12-03 22:31:22

这个错误太抽象,最好把POM文件和关键代码贴出来,这样笔记容易定位问题

一人独醉 2021-12-03 21:55:24

回复
@笑笑520 : 我的maven-bundle-plugin版本号跟你报错信息里提示的不一致,你先备份好你的,然后用我的试试先

岁月打碎记忆 2021-12-03 21:32:12

回复
好的,我试试,谢谢

想挽留 2021-12-03 21:25:27

回复
大神,膜拜,换成你的之后就成功了,好厉害,灰常感谢,可以给偶讲讲是什么原因吗

百思不得你姐 2021-12-03 20:35:36

回复
@笑笑520 : 这个我也没有了解原因的,是bndlib低版本的一个BUG吧,后面的版本进行修复了的~

倾城泪 2021-12-03 04:58:10

回复
哦哦,谢谢#^_^#

臻嫒无言 2021-12-02 22:41:29

<plugin>

        <groupId>org.apache.felix</groupId>

        <artifactId>maven-bundle-plugin</artifactId>

        <version>2.5.3</version>

        <dependencies>

          <dependency>

            <groupId>biz.aQute.bnd</groupId>

            <artifactId>bndlib</artifactId>

            <version>2.4.0</version>

          </dependency>

        </dependencies>

      <plugin>

POM找找这段,看看你的版本号是多少

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文