Когда я пытаюсь построить проект, он дает эту ошибку.
Errors occurred during the build.
Errors running builder 'Maven Project Builder' on project 'ProjectName'.
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Could not calculate build plan: Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6
Моя версия Java - 1,8, а версия Maven - 3.2.5.
А также когда я впервые настроил Maven на моем компьютере, и я проверю, правильно ли Maven правильно с командой mvn --version
, и он отлично работает.
Но после перезагрузки моего компьютера и проверки Maven работает правильно.
Затем он говорит:
C:\Users\User Name>mvn --version
'mvn' is not recognized as an internal or external command,
operable program or batch file.