操作步骤:
在项目下的pom.xml 右键选择 maven install 报的错
报错信息
Failed to execute goal on project nrhcm: Could not resolve dependencies for project com.dhcc.nrhcm:nrhcm:war:1.6.0.5: The following artifacts could not be resolved: com.dhcc.client:dhcc-dic-client🏺1.1.0.0, com.dhcc.framework:dhcc-core🏺2.0.2.6, com.oracle:ojdbc14🏺10.2.0.4.0, com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider🏺2.2.3.cp1, com.fasterxml.jackson.jaxrs:jackson-jaxrs-xml-provider🏺2.2.3.cp1: Failure to find com.dhcc.client:dhcc-dic-client🏺1.1.0.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
Failure to find com.dhcc.client:dhcc-dic-client:jar:1.1.0.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
构建失败原因:中央库缺少jar包( dhcc-dic-client)
回复 @会单板的it男:我说的是两种方法,并不是二个步骤。回复 @y60024651:第一步完成。第二步,还是不太懂回复 @会单板的it男:1.将jar直接安装到本地库。2.配置私服,从网上下载jar后上传到私服。比如:开源中国的私服。原因明白了。请问怎么补呢?看了保存日志,你的远程仓库,找不到对应的jar包,先编译吧,看看哪里报错不通过,目测是jar问题如何进行编译,我第一次用maven。求指点,谢谢 下载Jar包,安装到本地仓库中版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。