mvn repository folder code example
Example 1: maven print repository location
RESULT=$(mvn help:evaluate -Dexpression=settings.localRepository -q -DforceStdout)
Example 2: where does maven store dependencies
- .m2
- .m2 is a hidden file where maven stores all the dependencies.
- in some cases when you have problem with dependencies,
you might have to locate ~/.m2 file and delete everything.
Then re-import project. Sometimes solves the pom.xml file related issues.