Return-Path: Delivered-To: apmail-maven-issues-archive@minotaur.apache.org Received: (qmail 79526 invoked from network); 8 Jun 2009 09:32:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Jun 2009 09:32:00 -0000 Received: (qmail 74762 invoked by uid 500); 8 Jun 2009 09:32:11 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 74662 invoked by uid 500); 8 Jun 2009 09:32:11 -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 74652 invoked by uid 99); 8 Jun 2009 09:32:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 08 Jun 2009 09:32:11 +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; Mon, 08 Jun 2009 09:32:02 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id 101AD15E8073 for ; Mon, 8 Jun 2009 04:31:42 -0500 (CDT) Message-ID: <12265748.134221244453502017.JavaMail.haus-jira@codehaus01.managed.contegix.com> Date: Mon, 8 Jun 2009 04:31:42 -0500 (CDT) From: "Grzegorz Slowikowski (JIRA)" To: issues@maven.apache.org Subject: [jira] Commented: (MASSEMBLY-416) outputDirectory default value in fileSet seems changed; now seems to use directory name of fileSet sourcedir In-Reply-To: <13570652.65881243523982099.JavaMail.haus-jira@codehaus01.managed.contegix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 4e90ceb663894a42f12c0e28abbab431 X-Virus-Checked: Checked by ClamAV on apache.org [ http://jira.codehaus.org/browse/MASSEMBLY-416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=179578#action_179578 ] Grzegorz Slowikowski commented on MASSEMBLY-416: ------------------------------------------------ I found the error. It is still present in the just released version of assembly plugin. the problem is in plexus-archiver library. Assembly is being built from two sources: "target/massembly-416-1.0-SNAPSHOT.jar" and "target/classes" directory. org.codehaus.plexus.archiver.AbstractArchiver contains "seenEntries" HashSet The keys added there from "target/massembly-416-1.0-SNAPSHOT.jar" are: META-INF/ META-INF/MANIFEST-MF test/ test/App.class META-INF/maven/ META-INF/maven/test/ META-INF/maven/test/massembly-416/ META-INF/maven/test/massembly-416/pom.xml META-INF/maven/test/massembly-416/pom.properties and the keys added there from "target/classes" are: test <-- without trailing slash test\\App.class <-- with double backslash instead of single slash As you can see the second ones are not normalized (AbstractArchiver line 495 - no normalization, but there should be something like in AbstractZipArchiver lines 410 and 419; in other words the name should be normalized before adding it as a key to "seenEntries" HashSet). Do you need more details? The logs don't tell the truth, because the names there are after normalization and don't match with the keys in "seenEntries". Btw, why the contents of "classes" dir is added to the assembly? If you add the contents of the jar file and you have some shading for example the class files shouldn't be added to the assembly. Adding them could make sense only if you create the assembly before "package" phase, but this does not make sense to me. > outputDirectory default value in fileSet seems changed; now seems to use directory name of fileSet sourcedir > ------------------------------------------------------------------------------------------------------------ > > Key: MASSEMBLY-416 > URL: http://jira.codehaus.org/browse/MASSEMBLY-416 > Project: Maven 2.x Assembly Plugin > Issue Type: Bug > Affects Versions: 2.2-beta-3 > Reporter: John Casey > Assignee: John Casey > Priority: Blocker > Fix For: 2.2-beta-4 > > Attachments: massembly-416-1.0-SNAPSHOT-jar-with-dependencies.jar, massembly-416-2.jar, massembly-416-jar-listing.txt, massembly-416.zip > > > From Grzegorz Slowikowski on the dev@maven mailing list ([VOTE] maven-assembly-plugin 2.2-beta-4 thread): > {noformat} > Hi > With this configuration: > > > maven-staging-031 > maven-staging-031 > https://repository.apache.org/content/repositories/maven-staging-031 > > > > > > org.apache.maven.plugins > maven-assembly-plugin > 2.2-beta-4 > > > jar-with-dependencies > > > > > make-assembly > package > > single > > > > > > > I have "target" folder/package inside jar-with-dependencies archive which contains copies of my project classes (they are in the normal > package structure within this archive too). > ... > {noformat} -- 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