Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1AFEE18C73 for ; Wed, 9 Dec 2015 20:41:50 +0000 (UTC) Received: (qmail 68024 invoked by uid 500); 9 Dec 2015 20:41:49 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 67961 invoked by uid 500); 9 Dec 2015 20:41:49 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 67949 invoked by uid 99); 9 Dec 2015 20:41:49 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2015 20:41:49 +0000 Received: from mail-qg0-f51.google.com (mail-qg0-f51.google.com [209.85.192.51]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 2EA251A0149 for ; Wed, 9 Dec 2015 20:41:49 +0000 (UTC) Received: by qgcc31 with SMTP id c31so99826578qgc.3 for ; Wed, 09 Dec 2015 12:41:48 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.141.28.80 with SMTP id f77mr1272509qhe.66.1449693708239; Wed, 09 Dec 2015 12:41:48 -0800 (PST) Received: by 10.55.44.70 with HTTP; Wed, 9 Dec 2015 12:41:48 -0800 (PST) In-Reply-To: References: Date: Wed, 9 Dec 2015 14:41:48 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Bug or feature: executing plugin without version From: Paul Benedict To: Maven Developers List Content-Type: multipart/alternative; boundary=001a114238b883538a05267d1ec8 --001a114238b883538a05267d1ec8 Content-Type: text/plain; charset=UTF-8 groupId:artifactId:goal Cheers, Paul On Wed, Dec 9, 2015 at 2:38 PM, Robert Scholte wrote: > I'd say bug. Are you using prefix:goal or groupId:artifactId:goal ? > > Robert > > Op Wed, 09 Dec 2015 17:19:32 +0100 schreef Paul Benedict < > pbenedict@apache.org>: > > > Scenario: I executed a plugin goal on command line and specified a version >> (1.5). I then did it again without specifying a version. For the latter, >> Maven chose the latest version (1.6) from my remote repository. >> >> I was curious about the version selection; so I edited my POM and added a >> /build/pluginManagement/plugin to lock down the version. When I executed >> without the version on the command line again, the latest (1.6) was still >> selected. >> >> Don't you think that when I omit the version on the command line, if the >> plugin version is specified in the POM, it should use the configuration? >> Is >> this a bug or an intended feature? It's at least very surprising. >> >> I need to execute a particular version of a plugin in a shell script, but >> I >> don't want to specify the version in the script. I'd rather have it locked >> in the POM but obviously the POM is not consulted in this case. WDYT? >> >> Cheers, >> Paul >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org > For additional commands, e-mail: dev-help@maven.apache.org > > --001a114238b883538a05267d1ec8--