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 CFC3B10F28 for ; Wed, 9 Sep 2015 21:43:46 +0000 (UTC) Received: (qmail 21545 invoked by uid 500); 9 Sep 2015 21:43:46 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 21498 invoked by uid 500); 9 Sep 2015 21:43:46 -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 21481 invoked by uid 99); 9 Sep 2015 21:43:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Sep 2015 21:43:46 +0000 Date: Wed, 9 Sep 2015 21:43:46 +0000 (UTC) From: "Boaz Lev (JIRA)" To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MINSTALL-116) Attached artifacts installed with default name, only one is actually installed MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MINSTALL-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14737631#comment-14737631 ] Boaz Lev commented on MINSTALL-116: ----------------------------------- The maven-assembly-plugin configuration and the descriptors are O.K. their is properly configured, yet ignored as configured in pom.xml, and the expected artifacts are generated in the target: a.zip and b.zip.What was not expected? ONLY b.zip was installed, and with different name... > Attached artifacts installed with default name, only one is actually installed > ------------------------------------------------------------------------------ > > Key: MINSTALL-116 > URL: https://issues.apache.org/jira/browse/MINSTALL-116 > Project: Maven Install Plugin > Issue Type: Bug > Components: install:install > Affects Versions: 2.5.2 > Reporter: Boaz Lev > Assignee: Robert Scholte > > InstallMojo.execute() calls (for every attached artifact) to > installer.install( attached.getFile(), attached, localRepository ); > The source file name is based on finalName, but destination file name is based on the localRepository.pathOf(File) method, which in the org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout implementation returns a result based on artifactId, version etc. > In short, this means that if the artifactId is "X" and the version is "0.0.1-SNAPSHOT" then an artifact with a name "a.zip" will be installed as "X-0.0.1-SNAPSHOT.zip" > Since all attached artifacts are installed with the default name, in case there are more than on attached artifacts - only the last is actually installed, all others are getting lost in the process. > I would expect that any attached artifact would be installed using it's finalName, exactly as it is on the target folder. -- This message was sent by Atlassian JIRA (v6.3.4#6332)