1

I've installed maven3 on CentOS from the JPackage repository. Problem is my installs also seem to have pulled in maven2 which is the default. Is there any way to switch /usr/bin/mvn to be maven3? perhaps using the alternatives application? (note: I can modify the path, or symlink I know, just trying to find out if there's a more correct way)

  • What version of CentOS? – slm Jun 6 '14 at 22:28
  • vagrant chef/CentOS-6.5 – xenoterracide Jun 7 '14 at 15:34
0

I would remove the maven packages and just install the maven3 packages. This is only going to give you 3.0.3, however.

If you want to get a more recent version of Maven I'd go with dchen's repo from the "Fedora People" unofficial repositories. It seems to be tracking the latest version, apache-maven-3.2.1-1.el6.noarch.rpm. Here's the top level link to dchen's repository as well.

References

  • I think something else is pulling in maven haven't checked what. This is an entirely new image, built from vagrant. 3.0.3 is just enough in our case. – xenoterracide Jun 7 '14 at 15:33
  • @xenoterracide - rpm -q --whatrequires maven2? – slm Jun 7 '14 at 16:23
  • that's a list of about 30 entries, but caused in the middle of yum install java-1.7.0-openjdk-devel maven3 tomcat7 – xenoterracide Jun 9 '14 at 16:28
  • @xenoterracide - sounds like you're stuck with it then. I would utilize alternatives at this point if you cannot physically remove it. – slm Jun 10 '14 at 6:55
  • that's kind of what the question was about, I couldn't figure out how to make alternatives do this honestly. (my first hack was just to modify the path) – xenoterracide Jun 10 '14 at 15:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.