依赖项已经在本地和服务器中可用,但是 maven build(clean, install) 仍然失败并抱怨找不到它们。
1>虽然可以在server中找到依赖,但是在线构建失败
Downloading: http://repo1.maven.org/maven2/org/codehaus/mojo/aspectj-maven-plugin/1.4/aspectj-maven-plugin-1.4.pom
[WARNING] Unable to get resource 'org.codehaus.mojo:aspectj-maven-plugin:pom:1.4' from repository central (http://repo1.maven.org/maven2): (http://repo1.maven.org/maven2%29:) Authorization failed: Access denied to: h
ttp://repo1.maven.org/maven2/org/codehaus/mojo/aspectj-maven-plugin/1.4/aspectj-maven-plugin-1.4.pom
2> 我尝试离线尝试,因为依赖项已经在本地,但失败了
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.codehaus.mojo
ArtifactId: aspectj-maven-plugin
Version: 1.4
Reason: System is offline.
org.codehaus.mojo:aspectj-maven-plugin:pom:1.4
3> 顺便说一句,我已经为服务器配置了相关配置文件