I have a problem with maven it error says "Could not create local repository". I try to .m2 already but it says don't have the repository name m2. I have check file it doesn't have m2 because Maven doesn't have permission to create the repository. I'm newbie in here please help me to fix it.
Asked
Active
Viewed 7,785 times
-1

Misha Brukman
- 12,938
- 4
- 61
- 78

Jurarut Subcheevaanan
- 11
- 1
- 6
-
Have you followed the link in the second picture? Try changing the permissions in your .m2 permissions to be writable by Maven. – Mangu Mar 29 '19 at 08:08
-
What do you want to do in cloud shell by maven? – howie Mar 29 '19 at 22:39
-
to Mangu How can I change permission in .m2 ? – Jurarut Subcheevaanan Apr 01 '19 at 02:12
-
To howie I just want to follow the tutorial about bigtable query – Jurarut Subcheevaanan Apr 01 '19 at 02:14
-
1Can you give a little more detail about what it is you're trying to do? What tutorial are you following, and what step are you getting stuck on? – Douglas McErlean Apr 03 '19 at 16:26
-
@DouglasMcErlean I just do some tutorial to understand how big table work so I follow this [link](https://codelabs.developers.google.com/codelabs/cloud-bigtable-intro-java/index.html#6) and stuck on mvn command – Jurarut Subcheevaanan Apr 09 '19 at 04:18
-
Did you run `cd cbt-intro-java` which has the maven package for the tutorial? – Billy Jacobson Apr 17 '19 at 19:50
1 Answers
1
It's likely there's a file or permissions problem with the path:
/home/jurant_subcheevaanan/.m2
. You can try removing the .m2
directory entirely. See also the guidance and workarounds here:
Could not create local repository at /var/root/.m2/repository

Ramesh Dharan
- 895
- 4
- 14