You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Thomas Kruse (JIRA)" <ji...@codehaus.org> on 2012/01/18 14:41:02 UTC
[jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using
minimizeJar with shade plugin
Thomas Kruse created MSHADE-107:
-----------------------------------
Summary: ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
Key: MSHADE-107
URL: https://jira.codehaus.org/browse/MSHADE-107
Project: Maven 2.x Shade Plugin
Issue Type: Bug
Affects Versions: 1.5
Environment: Apache Maven 2.2.1 (rdebian-1)
Java version: 1.6.0_26
Reporter: Thomas Kruse
The shade plugin fails with error message
{code}
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating shaded jar: 26
{code}
Running maven with -e on the project yields
{code}
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error creating shaded jar: 26
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error creating shaded jar: 26
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: 26
at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:503)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
at org.objectweb.asm.ClassReader.readClass(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.objectweb.asm.ClassReader.accept(Unknown Source)
at org.vafer.jdependency.Clazzpath.addClazzpathUnit(Clazzpath.java:94)
at org.apache.maven.plugins.shade.filter.MinijarFilter.<init>(MinijarFilter.java:74)
at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters(ShadeMojo.java:696)
at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:438)
... 19 more
{code}
The failing module is part of a multi module build, has a quite large number of transitive dependencies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using
minimizeJar with shade plugin
Posted by "Shane StClair (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSHADE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=294156#comment-294156 ]
Shane StClair commented on MSHADE-107:
--------------------------------------
Also, it might be worth noting that it seems like the offending array index is usually restricted to specific values (48188 and 26 are the only ones I've seen so far), so maybe only these values should be trapped?
> ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
> -----------------------------------------------------------------------
>
> Key: MSHADE-107
> URL: https://jira.codehaus.org/browse/MSHADE-107
> Project: Maven 2.x Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.5
> Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_26
> Reporter: Thomas Kruse
> Labels: moreinfo
> Attachments: pom.xml
>
>
> The shade plugin fails with error message
> {code}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> {code}
> Running maven with -e on the project yields
> {code}
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating shaded jar: 26
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: 26
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:503)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
> at org.objectweb.asm.ClassReader.readClass(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.vafer.jdependency.Clazzpath.addClazzpathUnit(Clazzpath.java:94)
> at org.apache.maven.plugins.shade.filter.MinijarFilter.<init>(MinijarFilter.java:74)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters(ShadeMojo.java:696)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:438)
> ... 19 more
> {code}
> The failing module is part of a multi module build, has a quite large number of transitive dependencies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using
minimizeJar with shade plugin
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSHADE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=293994#comment-293994 ]
Olivier Lamy commented on MSHADE-107:
-------------------------------------
any sample project to reproduce ?
> ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
> -----------------------------------------------------------------------
>
> Key: MSHADE-107
> URL: https://jira.codehaus.org/browse/MSHADE-107
> Project: Maven 2.x Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.5
> Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_26
> Reporter: Thomas Kruse
> Labels: moreinfo
>
> The shade plugin fails with error message
> {code}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> {code}
> Running maven with -e on the project yields
> {code}
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating shaded jar: 26
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: 26
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:503)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
> at org.objectweb.asm.ClassReader.readClass(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.vafer.jdependency.Clazzpath.addClazzpathUnit(Clazzpath.java:94)
> at org.apache.maven.plugins.shade.filter.MinijarFilter.<init>(MinijarFilter.java:74)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters(ShadeMojo.java:696)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:438)
> ... 19 more
> {code}
> The failing module is part of a multi module build, has a quite large number of transitive dependencies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using
minimizeJar with shade plugin
Posted by "Shane StClair (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSHADE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shane StClair updated MSHADE-107:
---------------------------------
Attachment: mshade-107-revised.patch
Acutally, see mshade-107-revised.patch. Instead of only catching certain ArrayIndexOutOfBoundsExceptions, it just warns the user that a dependency couldn't be analyzed for minimization and continues. This seems like a much better solution...a slightly larger jar is better than a build error.
> ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
> -----------------------------------------------------------------------
>
> Key: MSHADE-107
> URL: https://jira.codehaus.org/browse/MSHADE-107
> Project: Maven 2.x Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.5
> Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_26
> Reporter: Thomas Kruse
> Labels: moreinfo
> Attachments: mshade-107.patch, mshade-107-revised.patch, pom.xml
>
>
> The shade plugin fails with error message
> {code}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> {code}
> Running maven with -e on the project yields
> {code}
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating shaded jar: 26
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: 26
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:503)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
> at org.objectweb.asm.ClassReader.readClass(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.vafer.jdependency.Clazzpath.addClazzpathUnit(Clazzpath.java:94)
> at org.apache.maven.plugins.shade.filter.MinijarFilter.<init>(MinijarFilter.java:74)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters(ShadeMojo.java:696)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:438)
> ... 19 more
> {code}
> The failing module is part of a multi module build, has a quite large number of transitive dependencies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using
minimizeJar with shade plugin
Posted by "Shane StClair (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSHADE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=294155#comment-294155 ]
Shane StClair commented on MSHADE-107:
--------------------------------------
I get a slightly different ArrayIndexOutOfBoundsException, but I believe the example pom I attached illustrates the same problem. It looks like dependencies with "malformed classes" will trip up the asm ClassReader. See similar problem here:
http://jira.codehaus.org/browse/MANIMALSNIFFER-9
Maybe the best solution is just to catch the ArrayIndexOutOfBoundsException and not include the problem dependencies in the list of candidate classes to be removed?
> ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
> -----------------------------------------------------------------------
>
> Key: MSHADE-107
> URL: https://jira.codehaus.org/browse/MSHADE-107
> Project: Maven 2.x Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.5
> Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_26
> Reporter: Thomas Kruse
> Labels: moreinfo
> Attachments: pom.xml
>
>
> The shade plugin fails with error message
> {code}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> {code}
> Running maven with -e on the project yields
> {code}
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating shaded jar: 26
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: 26
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:503)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
> at org.objectweb.asm.ClassReader.readClass(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.vafer.jdependency.Clazzpath.addClazzpathUnit(Clazzpath.java:94)
> at org.apache.maven.plugins.shade.filter.MinijarFilter.<init>(MinijarFilter.java:74)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters(ShadeMojo.java:696)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:438)
> ... 19 more
> {code}
> The failing module is part of a multi module build, has a quite large number of transitive dependencies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using
minimizeJar with shade plugin
Posted by "Shane StClair (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSHADE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=299050#comment-299050 ]
Shane StClair commented on MSHADE-107:
--------------------------------------
Any chance of getting this patch committed? Seems like a sane workaround for malformed dependencies...
> ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
> -----------------------------------------------------------------------
>
> Key: MSHADE-107
> URL: https://jira.codehaus.org/browse/MSHADE-107
> Project: Maven 2.x Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.5
> Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_26
> Reporter: Thomas Kruse
> Labels: moreinfo
> Attachments: mshade-107.patch, mshade-107-revised.patch, pom.xml
>
>
> The shade plugin fails with error message
> {code}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> {code}
> Running maven with -e on the project yields
> {code}
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating shaded jar: 26
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: 26
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:503)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
> at org.objectweb.asm.ClassReader.readClass(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.vafer.jdependency.Clazzpath.addClazzpathUnit(Clazzpath.java:94)
> at org.apache.maven.plugins.shade.filter.MinijarFilter.<init>(MinijarFilter.java:74)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters(ShadeMojo.java:696)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:438)
> ... 19 more
> {code}
> The failing module is part of a multi module build, has a quite large number of transitive dependencies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using
minimizeJar with shade plugin
Posted by "Shane StClair (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSHADE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shane StClair updated MSHADE-107:
---------------------------------
Attachment: mshade-107.patch
Suggested patch, implemented as described above.
> ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
> -----------------------------------------------------------------------
>
> Key: MSHADE-107
> URL: https://jira.codehaus.org/browse/MSHADE-107
> Project: Maven 2.x Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.5
> Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_26
> Reporter: Thomas Kruse
> Labels: moreinfo
> Attachments: mshade-107.patch, pom.xml
>
>
> The shade plugin fails with error message
> {code}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> {code}
> Running maven with -e on the project yields
> {code}
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating shaded jar: 26
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: 26
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:503)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
> at org.objectweb.asm.ClassReader.readClass(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.vafer.jdependency.Clazzpath.addClazzpathUnit(Clazzpath.java:94)
> at org.apache.maven.plugins.shade.filter.MinijarFilter.<init>(MinijarFilter.java:74)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters(ShadeMojo.java:696)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:438)
> ... 19 more
> {code}
> The failing module is part of a multi module build, has a quite large number of transitive dependencies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using
minimizeJar with shade plugin
Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSHADE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies reassigned MSHADE-107:
---------------------------------------
Assignee: Benson Margulies
> ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
> -----------------------------------------------------------------------
>
> Key: MSHADE-107
> URL: https://jira.codehaus.org/browse/MSHADE-107
> Project: Maven 2.x Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.5
> Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_26
> Reporter: Thomas Kruse
> Assignee: Benson Margulies
> Labels: moreinfo
> Attachments: mshade-107.patch, mshade-107-revised.patch, pom.xml
>
>
> The shade plugin fails with error message
> {code}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> {code}
> Running maven with -e on the project yields
> {code}
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating shaded jar: 26
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: 26
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:503)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
> at org.objectweb.asm.ClassReader.readClass(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.vafer.jdependency.Clazzpath.addClazzpathUnit(Clazzpath.java:94)
> at org.apache.maven.plugins.shade.filter.MinijarFilter.<init>(MinijarFilter.java:74)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters(ShadeMojo.java:696)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:438)
> ... 19 more
> {code}
> The failing module is part of a multi module build, has a quite large number of transitive dependencies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using
minimizeJar with shade plugin
Posted by "Olivier Lamy (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSHADE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olivier Lamy updated MSHADE-107:
--------------------------------
Labels: moreinfo (was: )
> ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
> -----------------------------------------------------------------------
>
> Key: MSHADE-107
> URL: https://jira.codehaus.org/browse/MSHADE-107
> Project: Maven 2.x Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.5
> Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_26
> Reporter: Thomas Kruse
> Labels: moreinfo
>
> The shade plugin fails with error message
> {code}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> {code}
> Running maven with -e on the project yields
> {code}
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating shaded jar: 26
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: 26
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:503)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
> at org.objectweb.asm.ClassReader.readClass(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.vafer.jdependency.Clazzpath.addClazzpathUnit(Clazzpath.java:94)
> at org.apache.maven.plugins.shade.filter.MinijarFilter.<init>(MinijarFilter.java:74)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters(ShadeMojo.java:696)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:438)
> ... 19 more
> {code}
> The failing module is part of a multi module build, has a quite large number of transitive dependencies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using
minimizeJar with shade plugin
Posted by "Benson Margulies (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSHADE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benson Margulies closed MSHADE-107.
-----------------------------------
Resolution: Fixed
Fix Version/s: 1.7
------------------------------------------------------------------------
r1343123 | bimargulies | 2012-05-27 21:15:51 -0400 (Sun, 27 May 2012) | 3 lines
MSHADE-107: ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
o accepted patch that improved the diagnostics for bad dependencies.
------------------------------------------------------------------------
> ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
> -----------------------------------------------------------------------
>
> Key: MSHADE-107
> URL: https://jira.codehaus.org/browse/MSHADE-107
> Project: Maven 2.x Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.5
> Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_26
> Reporter: Thomas Kruse
> Assignee: Benson Margulies
> Labels: moreinfo
> Fix For: 1.7
>
> Attachments: mshade-107.patch, mshade-107-revised.patch, pom.xml
>
>
> The shade plugin fails with error message
> {code}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> {code}
> Running maven with -e on the project yields
> {code}
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating shaded jar: 26
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: 26
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:503)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
> at org.objectweb.asm.ClassReader.readClass(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.vafer.jdependency.Clazzpath.addClazzpathUnit(Clazzpath.java:94)
> at org.apache.maven.plugins.shade.filter.MinijarFilter.<init>(MinijarFilter.java:74)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters(ShadeMojo.java:696)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:438)
> ... 19 more
> {code}
> The failing module is part of a multi module build, has a quite large number of transitive dependencies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using
minimizeJar with shade plugin
Posted by "Shane StClair (JIRA)" <ji...@codehaus.org>.
[ https://jira.codehaus.org/browse/MSHADE-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shane StClair updated MSHADE-107:
---------------------------------
Attachment: pom.xml
Simple example file for MSHADE-107
> ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin
> -----------------------------------------------------------------------
>
> Key: MSHADE-107
> URL: https://jira.codehaus.org/browse/MSHADE-107
> Project: Maven 2.x Shade Plugin
> Issue Type: Bug
> Affects Versions: 1.5
> Environment: Apache Maven 2.2.1 (rdebian-1)
> Java version: 1.6.0_26
> Reporter: Thomas Kruse
> Labels: moreinfo
> Attachments: pom.xml
>
>
> The shade plugin fails with error message
> {code}
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> {code}
> Running maven with -e on the project yields
> {code}
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] Error creating shaded jar: 26
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: Error creating shaded jar: 26
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
> at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error creating shaded jar: 26
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:503)
> at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
> at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
> ... 17 more
> Caused by: java.lang.ArrayIndexOutOfBoundsException: 26
> at org.objectweb.asm.ClassReader.readClass(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.objectweb.asm.ClassReader.accept(Unknown Source)
> at org.vafer.jdependency.Clazzpath.addClazzpathUnit(Clazzpath.java:94)
> at org.apache.maven.plugins.shade.filter.MinijarFilter.<init>(MinijarFilter.java:74)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.getFilters(ShadeMojo.java:696)
> at org.apache.maven.plugins.shade.mojo.ShadeMojo.execute(ShadeMojo.java:438)
> ... 19 more
> {code}
> The failing module is part of a multi module build, has a quite large number of transitive dependencies.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira