Return-Path: X-Original-To: apmail-maven-issues-archive@minotaur.apache.org Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E1171BBB7 for ; Wed, 18 Jan 2012 13:41:28 +0000 (UTC) Received: (qmail 38428 invoked by uid 500); 18 Jan 2012 13:41:28 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 38327 invoked by uid 500); 18 Jan 2012 13:41:28 -0000 Mailing-List: contact issues-help@maven.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@maven.apache.org Delivered-To: mailing list issues@maven.apache.org Received: (qmail 38309 invoked by uid 99); 18 Jan 2012 13:41:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 13:41:27 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jan 2012 13:41:23 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id D185DB0618 for ; Wed, 18 Jan 2012 07:41:02 -0600 (CST) Date: Wed, 18 Jan 2012 07:41:02 -0600 (CST) From: "Thomas Kruse (JIRA)" To: issues@maven.apache.org Message-ID: <1034339528.21084.1326894062864.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> Subject: [jira] (MSHADE-107) ArrayIndexOutOfBoundsException when using minimizeJar with shade plugin MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 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.(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