Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 13388 invoked from network); 12 Feb 2010 09:47:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2010 09:47:27 -0000 Received: (qmail 73040 invoked by uid 500); 12 Feb 2010 09:47:26 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 72944 invoked by uid 500); 12 Feb 2010 09:47:26 -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 72934 invoked by uid 99); 12 Feb 2010 09:47:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 09:47:26 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [63.246.2.115] (HELO codehaus01.managed.contegix.com) (63.246.2.115) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 09:47:16 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id F144914A82A5 for ; Fri, 12 Feb 2010 03:46:55 -0600 (CST) Date: Fri, 12 Feb 2010 03:46:55 -0600 (CST) From: "Yoann Yonnet (JIRA)" To: issues@maven.apache.org Message-ID: <15575959.82636.1265968015977.JavaMail.haus-jira@codehaus01.managed.contegix.com> Subject: [jira] Created: (MSHADE-75) Package maven multimodule project with shade plugin : error in opening zip on directory MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 Package maven multimodule project with shade plugin : error in opening zip on directory --------------------------------------------------------------------------------------- Key: MSHADE-75 URL: http://jira.codehaus.org/browse/MSHADE-75 Project: Maven 2.x Shade Plugin Issue Type: Bug Affects Versions: 1.3.1 Environment: Ubuntu 9.04 - Jaunty Jackalope -, Eclispse (Galileo), java 1.6.0_16 Reporter: Yoann Yonnet Attachments: patch-maven-shade-plugin.txt Hello, I make a maven aggregator project with two modules. The first module is a dependency of the second. The first module is build with the install goal. The second with the shade plugin during the package phase. The first module build runs successfully and install resulting jar file in the maven local repository. The second module build fails with this error : [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error creating shaded jar: error in opening zip file /home/yoann/workspace/maven.1265640716107/trunk/tcx-ws-client/module1/target/classes [INFO] ------------------------------------------------------------------------ [INFO] For more information, run Maven with the -e switch [INFO] ------------------------------------------------------------------------ [INFO] Total time: 10 seconds [INFO] Finished at: Fri Feb 12 10:39:29 CET 2010 [INFO] Final Memory: 59M/583M [INFO] ------------------------------------------------------------------------ It's due to the shade plugin whose tries to reference first module classes from target/classes repository instead of the jar file previously build. Therefore, it seems that the shade plugin doesn't work with a maven multimodules project. I manage to build my maven aggregator project by applying the attached patch (patch-maven-shade-plugin.txt) on the class ShadeMojo.java -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira