Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31C1F18348 for ; Mon, 7 Dec 2015 21:10:36 +0000 (UTC) Received: (qmail 22499 invoked by uid 500); 7 Dec 2015 21:10:35 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 22423 invoked by uid 500); 7 Dec 2015 21:10:34 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 22412 invoked by uid 99); 7 Dec 2015 21:10:34 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Dec 2015 21:10:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 391B4180989 for ; Mon, 7 Dec 2015 21:10:34 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.981 X-Spam-Level: X-Spam-Status: No, score=0.981 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id y9vSD0CC4hlC for ; Mon, 7 Dec 2015 21:10:27 +0000 (UTC) Received: from p3plsmtpa06-01.prod.phx3.secureserver.net (p3plsmtpa06-01.prod.phx3.secureserver.net [173.201.192.102]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 6F6F420C70 for ; Mon, 7 Dec 2015 21:10:26 +0000 (UTC) Received: from [10.0.0.11] ([108.84.166.161]) by p3plsmtpa06-01.prod.phx3.secureserver.net with id ql5N1r00R3VFiKQ01l5PiH; Mon, 07 Dec 2015 14:05:23 -0700 Subject: Re: [rpm-maven-plugin] how to control the name under which rpm is stored in m2 repository? To: users@maven.apache.org References: <5665D378.8020607@javactivity.org> <5665E3EE.2070105@gmx.de> <5665F24C.1000602@javactivity.org> From: Steve Cohen Message-ID: <5665F492.1000708@javactivity.org> Date: Mon, 7 Dec 2015 15:05:22 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <5665F24C.1000602@javactivity.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Aargh! Email formattting! org.apache.maven.plugins maven-install-plugin 2.5.2 install-rpm install-file install ${project.build.directory}/rpm/${rpm.name}/RPMS/noarch/${rpm.name}-${project.version}-${rpm.release}.noarch.rpm ${project.groupId} ${rpm.name} ${project.version}-${rpm.release} noarch rpm On 12/07/2015 02:55 PM, Steve Cohen wrote: > Actually, I found a way. If I am willing to let my "short name" become > the archiveId, (and thus live with the rpms in a different location), > the following is possible with the maven-install-plugin, after packaging > with the rpm-maven-plugin: > > > > org.apache.maven.plugins > > maven-install-plugin > > 2.5.2 > > > > > > install-rpm > > > > install-file > > > > install > > > > ${project.build.directory}/rpm/${rpm.name}/RPMS/noarch/${rpm.name}-${project.version}-${rpm.release}.noarch.rpm > > > ${project.groupId} > > ${rpm.name} > > ${project.version}-${rpm.release} > > noarch > > rpm > > > > > > > > > > > On 12/07/2015 01:54 PM, Karl Heinz Marbaise wrote: >> Hi Steve, >> >> simply answer to this: It is not possible... >> >> Long answer: Maven repositories dependending on an appropriate naming >> schema to find artifacts / versions etc. If you change that the whole >> system will not work at all.. >> >> So the name which is stored within a maven repository can't be changed. >> >> Kind regards >> Karl Heinz Marbaise >> >> On 12/7/15 7:44 PM, Steve Cohen wrote: >>> Our organization has a convention for naming rpms. Typically, the rpm >>> will have a shorter base name than the Maven project. There is also a >>> convention around how releases are named. So we want a name >>> like|${shortname}-${project.version}-${release}.noarch.rpm|. >>> >>> I want to build such rpms using the rpm-maven-plugin rather than older >>> nmake technology. >>> >>> And this is easily accomplished using the plugin's parameters. The rpm >>> generated in the target directory has the desired name. >>> >>> However, when|mvn install|installs this rpm into the maven repository, >>> it insists on storing it the "maven >>> way":|${project.artifactId}-${project.version}.rpm| >>> >>> I want the rpm stored in the standard maven repository directory using >>> the name that is initially created on package. >>> >>> I also tried using the maven-install-plugin (install-file goal) and did >>> not get the results I was after. >>> >>> How may I accomplish this? >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org >> For additional commands, e-mail: users-help@maven.apache.org >> >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org