Building maven from source
pI'm trying to build maven from source (on Ubuntu 12.04) following the
tutorial:/p pa
href=http://maven.apache.org/guides/development/guide-building-m2.html
rel=nofollowhttp://maven.apache.org/guides/development/guide-building-m2.html/a/p
pI installed a previous version of maven using /p precodesudo apt-get
install maven /code/pre pI then checked out maven using:/p precodegit
clone https://git-wip-us.apache.org/repos/asf/maven.git maven /code/pre pI
then built maven using maven according to the apache guide, so I cd into
the checkout version of maven and did:/p precodemvn install /code/pre
pthis seemed to work fine, no errors or anything, but when I do /p pmvn
-version/p pMy output is:/p precodeApache Maven 3.0.4 Maven home:
/usr/share/maven Java version: 1.7.0_40, vendor: Oracle Corporation Java
home: /usr/lib/jvm/jdk1.7.0_40/jre Default locale: en_US, platform
encoding: UTF-8 OS name: linux, version: 3.5.0-37-generic, arch: amd64,
family: unix /code/pre pWhich is not the version I checked out, it's the
version of maven I got from apt-get. What exactly did mvn install do?
Where did it install maven to, and how do I update the mvn command?/p
No comments:
Post a Comment