.m2 is not visible after installing maven in ubuntu.

This is a problem which can be solved with these steps.

Generally the .m2 directory is available at $HOME\.m2.

  1. check if maven is installed.
mvn -version

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 $HOME\.m2

If it is not available, just run mvn once, and the the .m2 should be created at $HOME\.m2


Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s