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 A3D5810BEF for ; Wed, 10 Dec 2014 16:55:28 +0000 (UTC) Received: (qmail 37590 invoked by uid 500); 10 Dec 2014 16:55:26 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 37507 invoked by uid 500); 10 Dec 2014 16:55:26 -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 37074 invoked by uid 99); 10 Dec 2014 16:55:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2014 16:55:25 +0000 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of andrew.todd659@gmail.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qa0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2014 16:55:00 +0000 Received: by mail-qa0-f44.google.com with SMTP id i13so2239214qae.17 for ; Wed, 10 Dec 2014 08:54:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fJWchzIHfQmU65ugzqS42ahg5KqQ5SSrE0oWgRmGGeA=; b=qnun84EyPeLi7uiZb3AKnBPodWYMuTVutrrctmmOK552uuNnByYgcRMfhFc1vCXM8s N5kwoFPnERZlNN5Kc9ETbkzjDwmmKHgilQoJmQp6J6byRl0L72Xn+5UypZtyav2PqWwm XK9EA8mtoKaA3+YsxFvj86/OmJvkWDlKP8v5WEYN4hNaspki8rvp1/kdpA5aNjcbj8+Z 2q/3mfS2Bc5AJ3Hj492CLlxFFo30I4hIquoCpNrtPNuTVCsBpn6AGb/JCCaT/TMjdEpf SLq2m1zQnTduQs4clgHQMOMbV+ctxx4RFr2a4P29cv++BzAwe4fGuNPwfSzeTYl140MK wjgQ== MIME-Version: 1.0 X-Received: by 10.224.115.145 with SMTP id i17mr10545757qaq.9.1418230453722; Wed, 10 Dec 2014 08:54:13 -0800 (PST) Received: by 10.229.201.130 with HTTP; Wed, 10 Dec 2014 08:54:13 -0800 (PST) In-Reply-To: References: <5049531.alCp08zIy1@herve-desktop> <20141209095124.00002c05.ecki@zusammenkunft.net> Date: Wed, 10 Dec 2014 11:54:13 -0500 Message-ID: Subject: Re: Maven 3.2.3 upgrade From: Andrew Todd To: Maven Users List Content-Type: multipart/alternative; boundary=047d7bf0e1f267633e0509df8252 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bf0e1f267633e0509df8252 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I use https://github.com/kennethreitz/autoenv to good effect. On Tue, Dec 9, 2014 at 11:03 AM, Stephen Connolly < stephen.alan.connolly@gmail.com> wrote: > Here's something close... https://github.com/gcuisinier/jenv > > On 9 December 2014 at 16:02, Stephen Connolly < > stephen.alan.connolly@gmail.com> wrote: > > > The really adventurous person could re-use the rvm bash trickery and he= lp > > us all ;-) > > > > On 9 December 2014 at 16:01, Stephen Connolly < > > stephen.alan.connolly@gmail.com> wrote: > > > >> I normally use a script similar to this: > >> http://javaadventure.blogspot.ie/search?q=3Dusemvn > >> > >> That lets me switch the active maven version for each shell quickly. > >> > >> You can then set an enforcer rule that prevents the wrong one if you > want > >> to force a specific maven and people can quickly switch with just one > >> command > >> > >> On 9 December 2014 at 15:43, David Hoffer wrote: > >> > >>> In our case devs will be in active development in both branches so > >>> potentially building both at the same time. So it seems I either hav= e > to > >>> upgrade both to 3.2.3 or make the old one at least work with 3.2.3 or > >>> don't > >>> upgrade at all. > >>> > >>> Maven really needs a bootstrap process where the build specifies the > >>> version used so multiple builds can co-exist using any maven version, > is > >>> that a planned feature? > >>> > >>> -Dave > >>> > >>> On Tue, Dec 9, 2014 at 8:25 AM, Adrien Rivard > > >>> wrote: > >>> > >>> > Have them execute a wrapper script that set Maven paths according t= o > >>> the > >>> > current project and execute it. > >>> > you can even alias this script to "mvn" command. > >>> > > >>> > > >>> > On Tue, Dec 9, 2014 at 4:12 PM, David Hoffer > >>> wrote: > >>> > > >>> > > I don't think the CI Server is an issue as we have lots of > >>> flexibility > >>> > when > >>> > > we setup those jobs. The issue is for developer builds. I'm not > >>> clear > >>> > how > >>> > > to setup workstations to make it easy to build projects with > >>> different > >>> > > Maven versions. > >>> > > > >>> > > Our standard practice is to set M2_HOME to the maven install and > >>> then add > >>> > > %M2_HOME%/bin to the path. > >>> > > > >>> > > The suggestion was to not set M2_HOME...okay I thought that was > >>> required > >>> > > but we can not set it. We still need Maven in our path. Are you > >>> saying > >>> > > that if I set the path to Maven version X, my build can somehow > >>> specify > >>> > to > >>> > > use Maven version Y or Z? All I've seen in Maven thus far is the > >>> ability > >>> > > to specify what version must be used not what version to use, and > >>> it's > >>> > the > >>> > > later I'm looking for. I don't want devs to have to reconfigure > >>> their > >>> > > system props to build different code branches. > >>> > > > >>> > > -Dave > >>> > > > >>> > > On Tue, Dec 9, 2014 at 1:51 AM, Bernd Eckenfels < > >>> ecki@zusammenkunft.net> > >>> > > wrote: > >>> > > > >>> > > > Am Tue, 09 Dec 2014 09:27:29 +0100 > >>> > > > schrieb J=C3=B6rg Schaible : > >>> > > > > >>> > > > > > One other issue came up in this upgrade. We still have > >>> branches > >>> > > > > > that have to stay at 3.0.x. How can I make the trunk build > use > >>> > > > > > 3.2.3 w/o changing everyone's M2_HOME? Is there a way to > >>> bootstrap > >>> > > > > > the build so the build picks the specified version of Maven= ? > >>> E.g. > >>> > > > > > I want the build to specify the version used not the system= . > >>> > > > > > >>> > > > > Don't set it at all. The mvn shell scripts will automatically > do > >>> so > >>> > > > > for their Maven version on-the-fly. > >>> > > > > >>> > > > and use a CI Server where you configure the maven path for each > >>> job. > >>> > > > > >>> > > > Gruss > >>> > > > Bernd > >>> > > > > >>> > > > > >>> --------------------------------------------------------------------- > >>> > > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > >>> > > > For additional commands, e-mail: users-help@maven.apache.org > >>> > > > > >>> > > > > >>> > > > >>> > > >>> > > >>> > > >>> > -- > >>> > Adrien Rivard > >>> > > >>> > >> > >> > > > --047d7bf0e1f267633e0509df8252--