I am running Ubuntu 12.04 and am a Java developer who has recently moved off his desktop and started working on a new laptop. I have a few build issues and am investigating my install of Maven.
I got some help setting up my laptop and find the following Maven configuration confusing. I have Maven installed (by a peer I assume) and running but have no M2_HOME. I would have thought it would be a requirement.
The following is my output when I run mvn --version
Apache Maven 3.0.4
Maven home: /usr/share/maven
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-openjdk-amd64/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "3.5.0-23-generic", arch: "amd64", family: "unix"
None of the following give me anything: printenv | grep "maven"
, printenv | grep "mvn"
, printenv | grep "M2"
.
There is nothing special in ~/.profile or /etc/environment related to Maven.
Can you provide any clues/direction as to why mvn --version in the console gives output?