Maven私服仓库
0
使用Maven的私服仓库时,发现一些包不能进行更新。
出现一下错误:
E:\git\spring\eureka-server>mvn eclipse:eclipse
[INFO] Scanning for projects...
Downloading: http://192.168.1.241:9081/nexus/content/groups/public/org/springframework/cloud/spring-cloud-dependencies-p
arent/2.0.0.RC2/spring-cloud-dependencies-parent-2.0.0.RC2.pom
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.acgist:eureka-server:1.0.0 (E:\git\spring\eureka-server\pom.xml) has 3 errors
[ERROR] Non-resolvable parent POM: Could not find artifact org.springframework.cloud:spring-cloud-dependencies-paren
t:pom:2.0.0.RC2 in nexus (http://192.168.1.241:9081/nexus/content/groups/public/) @ org.springframework.cloud:spring-clo
ud-dependencies:Finchley.M9, C:\Users\Administrator\.m2\repository\org\springframework\cloud\spring-cloud-dependencies\F
inchley.M9\spring-cloud-dependencies-Finchley.M9.pom, line 5, column 10 -> [Help 2]
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-netflix-eureka-server:j
ar is missing. @ line 27, column 15
[ERROR] 'dependencies.dependency.version' for org.springframework.cloud:spring-cloud-starter-config:jar is missing.
@ line 32, column 15
[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/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
E:\git\spring\eureka-server>
后来发现原来是镜像配置时mirrorOf
这个属性配置成*
,修改为central
后就可以了。