Today I use cenos under docker, maven comes with it, and the following error occurs
[ERROR] Could not create local repository at /root/.m2/repository -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException
reason
There is no relevant permission operation for this file.
solve:
Modify the file location, enter the maven installation directory, enter the directory and modify conf/settings.xml, as follows:
Notice:
To view the maven installation path, you can use the following command:
mvn -version