This is a problem which can be solved with these steps.
Generally the .m2 directory is available at
- check if maven is installed.
It should give you output as:-
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-oracle/jre Default locale: en_IN, platform encoding: UTF-8 OS name: "linux", version: "3.2.0-23-generic-pae", arch: "i386", family: "unix"
The output means that maven is installed. Now go and check if .m2 is available at
If it is not available, just run
mvn once, and the the
.m2 should be created at