Maven can't recognize the dependencies in both local and server
Posted
by
Gary
on Stack Overflow
See other posts from Stack Overflow
or by Gary
Published on 2013-10-29T03:51:04Z
Indexed on
2013/10/29
3:53 UTC
Read the original article
Hit count: 248
The dependencies already be available in both local and server, but maven build(clean, install) still failed and complain that can't find them.
1> Although the dependency can be found in server, but failed to build online
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> I try to try offline, as the dependency is already in local, but failed
[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> BTW, i have configured the relevant profile for the server
© Stack Overflow or respective owner