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 767A29A53 for ; Sun, 26 Feb 2012 17:43:29 +0000 (UTC) Received: (qmail 9398 invoked by uid 500); 26 Feb 2012 17:43:29 -0000 Delivered-To: apmail-maven-issues-archive@maven.apache.org Received: (qmail 9356 invoked by uid 500); 26 Feb 2012 17:43:29 -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 9348 invoked by uid 99); 26 Feb 2012 17:43:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Feb 2012 17:43:29 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [63.246.24.159] (HELO codehaus01.managed.contegix.com) (63.246.24.159) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Feb 2012 17:43:23 +0000 Received: from codehaus01.managed.contegix.com (localhost.localdomain [127.0.0.1]) by codehaus01.managed.contegix.com (Postfix) with ESMTP id D7122B0449 for ; Sun, 26 Feb 2012 11:43:02 -0600 (CST) Date: Sun, 26 Feb 2012 11:43:02 -0600 (CST) From: "Olivier Lamy (JIRA)" To: issues@maven.apache.org Message-ID: <223599598.43478.1330278182897.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> In-Reply-To: <1538264597.41121.1329909782911.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> Subject: [jira] (MNG-5251) Cannot use version range for plugin MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 22cf62d5d84cf5bea94eb3b65e0ebd09 X-Virus-Checked: Checked by ClamAV on apache.org [ https://jira.codehaus.org/browse/MNG-5251?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=292783#comment-292783 ] Olivier Lamy commented on MNG-5251: ----------------------------------- for build reproducibility, I think IMHO this is something we must *NOT* support. what will happened for something [1.0,), you will use SNAPSHOT sometimes (depending on available plugin repositories in your settings). +1 to mark as Won't fix. > Cannot use version range for plugin > ----------------------------------- > > Key: MNG-5251 > URL: https://jira.codehaus.org/browse/MNG-5251 > Project: Maven 2 & 3 > Issue Type: Bug > Components: POM > Affects Versions: 3.0.4 > Environment: Windows 7 SP1, Java 1.6u29 > Reporter: Michal Michalski > > There's no way for use version ranges for plugins in POM, like this: > {code:xml} > > ... > > > > org.codehaus.mojo > jboss-packaging-maven-plugin > [2.1, 2.2] > true > > > > ... > > {code} > I've also tried use of version range in {{}}, but still doesn't work. > Console output after {{mvn package}}: > {code} > [ERROR] Plugin org.codehaus.mojo:jboss-packaging-maven-plugin:[2.1, 2.2] or one of its dependencies could not be resolved: Failed to read ar > tifact descriptor for org.codehaus.mojo:jboss-packaging-maven-plugin:jar:[2.1, 2.2]: Could not transfer artifact org.codehaus.mojo:jboss-pac > kaging-maven-plugin:pom:[2.1, 2.2] from/to Custom-repo-plugins (http://nexus:8080/nexus/content/groups/custom): IllegalArgumentException: Ille > gal character in path at index 93: http:/nexus:8080/nexus/content/groups/custom/org/codehaus/mojo/jboss-packaging-maven-plugin/[2.1, 2.2 > ]/jboss-packaging-maven-plugin-[2.1, 2.2].pom -> [Help 1] > [ERROR] > [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. > [ERROR] Re-run Maven using the -X switch to enable full debug logging. > [ERROR] > [ERROR] For more information about the errors and possible solutions, please read the following articles: > [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira