Re: Re: Maven from source - version 2.x or 3.x ?
Robert Burrell Donkin <[email protected]> Thu, 26 May 2011 12:10:28 +0100
| Newsgroups | gmane.linux.gentoo.java |
|---|---|
| Message-ID | <[email protected]> |
On Wed, May 25, 2011 at 5:09 PM, J=F6rg Schaible <[email protected]> wr= ote: > Hi Robert, Hi J=F6rg > Robert Burrell Donkin wrote: <snip> >> maven seems to be moving towards requiring specific core versions for >> builds. some =A0projects i develop require maven 2, some maven 3. i >> manage this situation with a set of custom scripts and installations >> independent of gentoo. i expect other developers now work in a similar >> way. (same goes for jdks.) the gentoo java stuff just gets in my way >> now for development. > > Why? I have emerged maven:1.0, maven:1.1, maven:2.0, maven:2.2 and > maven:3.0. I've selected my default version with eselect. However, I can = use > any of those versions at the same time: > > /usr/bin $ ls -lGgo m*v*n* > lrwxrwxrwx 1 =A0 =A034 Jan 22 14:07 maven-1.0 -> /usr/share/maven- > bin-1.0/bin/maven > lrwxrwxrwx 1 =A0 =A034 Jan 22 14:07 maven-1.1 -> /usr/share/maven- > bin-1.1/bin/maven > lrwxrwxrwx 1 =A0 =A0 7 Jul 19 =A02010 mvn -> mvn-3.0 > lrwxrwxrwx 1 =A0 =A032 Apr 30 =A02010 mvn-2.0 -> /usr/share/maven-bin-2.0= /bin/mvn > lrwxrwxrwx 1 =A0 =A032 Apr 30 =A02010 mvn-2.2 -> /usr/share/maven-bin-2.2= /bin/mvn > lrwxrwxrwx 1 =A0 =A032 Mar 10 18:17 mvn-3.0 -> /usr/share/maven-bin-3.0/b= in/mvn > > All that eselect effectively does is to switch the unversioned link. You = may > call any of those scripts (well, you should not have set MAVEN_HOME at al= l, > the Maven start script will do this for you anyway). eselect edits the symlinks. this switches the maven version for the entire system. i want to be able to switch maven (and ant and java) versions for just a terminal. is there some way to make this work with eselect? - robert