When installing dev-java/maven-bin for the first time, no symlink for the `mvn' command is created. Thus, the user has to manually set the active Maven version using eselect. I think it should be set automatically by the ebuild. Steps to reproduce: # emerge -av dev-java/maven-bin:2.2 $ mvn -v bash: mvn: command not found # eselect maven set mvn-2.2 $ mvn -v Apache Maven 2.2.1 (r801777; 2009-08-06 13:16:01-0600)
Created attachment 270471 [details, diff] patch for maven-bin-2.0.10. patch for maven-bin-2.0.10. Patches for other versions will follow. This creates the /usr/bin/mvn symlink when maven-bin get installed. It should be noted that this does not update the symlink if a working symlink already exist at /usr/bin/mvn. User may update the symlink to the latest installed maven version via "eselect maven update".
Created attachment 270473 [details, diff] patch for maven-bin-2.0.11 patch for maven-bin-2.0.11. Patches for other versions will follow. This creates the /usr/bin/mvn symlink when maven-bin get installed. It should be noted that this does not update the symlink if a working symlink already exist at /usr/bin/mvn. User may update the symlink to the latest installed maven version via "eselect maven update".
Created attachment 270475 [details, diff] patch for maven-bin-2.1.0
Created attachment 270477 [details, diff] patch for maven-bin-2.2.1
Created attachment 270479 [details, diff] patch for maven-bin-3.0
Created attachment 270481 [details, diff] patch for maven-bin-3.0.2
Created attachment 270483 [details, diff] patch for maven-bin-3.0.3
Created attachment 270869 [details, diff] patch for maven-bin-2.0.10 patch for maven-bin-2.0.10. In addition to the use of 'eselect', This includes a fix for a report in the bug 310331 by Serkan about another symlink issue which is related to this bug. Added app-admin/eselect-maven as a RDEPEND.
Fixed in: *maven-bin-3.0.3-r1 (14 Dec 2011) *maven-bin-2.2.1-r1 (14 Dec 2011) *maven-bin-2.1.0-r1 (14 Dec 2011) *maven-bin-2.0.11-r1 (14 Dec 2011) *maven-bin-1.1-r2 (14 Dec 2011) *maven-bin-1.0.2-r2 (14 Dec 2011) Thanks for the report and patches.