Details
Description
Operation as below :
1, run the docker daemon
2, run ./start-build-env.sh
3, mvn clean package -DskipTests
Response from the command line :
[ERROR] Plugin org.apache.maven.plugins:maven-surefire-plugin:2.17 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:2.17: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.17 from/to central (https://repo.maven.apache.org/maven2): /home/liu/.m2/repository/org/apache/maven/plugins/maven-surefire-plugin/2.17/maven-surefire-plugin-2.17.pom.part.lock (No such file or directory) -> [Help 1]
solution :
a, sudo chmod -R 775 ${USER_HOME}/.m2/
b, sudo chown -R ${USER_NAME} ${USER_HOME}/.m2
After try the way , it still in trouble.
c, sudo mvn clean package -DskipTests. but in this way, will download the file (pom, jar ) duplicated ?