Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2FC23200BBD for ; Tue, 8 Nov 2016 18:53:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 2EA39160B0C; Tue, 8 Nov 2016 17:53:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 74C1D160AD0 for ; Tue, 8 Nov 2016 18:52:59 +0100 (CET) Received: (qmail 49599 invoked by uid 500); 8 Nov 2016 17:52:58 -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 49581 invoked by uid 99); 8 Nov 2016 17:52:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2016 17:52:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 785F32C0276 for ; Tue, 8 Nov 2016 17:52:58 +0000 (UTC) Date: Tue, 8 Nov 2016 17:52:58 +0000 (UTC) From: =?utf-8?Q?Guillaume_Bou=C3=A9_=28JIRA=29?= To: issues@maven.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (MRELEASE-966) release plugin does not respect "mvn -f" MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 08 Nov 2016 17:53:00 -0000 [ https://issues.apache.org/jira/browse/MRELEASE-966?page=3Dcom.atlassi= an.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15= 648227#comment-15648227 ]=20 Guillaume Bou=C3=A9 edited comment on MRELEASE-966 at 11/8/16 5:52 PM: ------------------------------------------------------------------ [~jgebal] Yes, thank you for the sample project. I can reproduce this as we= ll. The POM to use by the release plugin should be configured with the [{{pomFi= leName}}|http://maven.apache.org/maven-release/maven-release-plugin/prepare= -mojo.html#pomFileName] parameter of the plugin, so you should have instead= : {noformat} mvn -B -f another_pom.xml -DpomFileName=3Danother_pom.xml ... {noformat} There was an issue about that before version 2.3 (see [MRELEASE-618|https:/= /issues.apache.org/jira/browse/MRELEASE-618]) so make sure you use a later = version. was (Author: gboue): [~jgebal] Yes, thank you for the sample project. I can reproduce this as we= ll. The POM to use by the release plugin should be configured with the [{{pomFi= leName}}|http://maven.apache.org/maven-release/maven-release-plugin/prepare= -mojo.html#pomFileName] parameter of the plugin, so you should have instead= : {noformat} mvn -B -f another_pom.xml -DpomFileName=3Danother_pom.xml ... {noformat} > release plugin does not respect "mvn -f" > ---------------------------------------- > > Key: MRELEASE-966 > URL: https://issues.apache.org/jira/browse/MRELEASE-966 > Project: Maven Release Plugin > Issue Type: Bug > Affects Versions: 2.5.2 > Reporter: Jacek Gebal > Attachments: testing_release_plugin.zip > > > maven allows usage of the -f flag when executing goals. > The maven release plugin however doesn't work properly with that flag. > It behaves as if some pieces of code would be referencing the -f file whi= le some others are looking for a hardcoded "pom.xml" file name. > This makes the plugin incompatible with the feature and in my case makes = it almost impossible to use it. > The documentation is mentioning a pom.xml here and there which suggest th= at the plugin is expecting exactly the file with that name. > Please make the plugin compatible with maven command line "-f" option -- This message was sent by Atlassian JIRA (v6.3.4#6332)