maven jar包下载不下来

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wangjun5159/article/details/79295140

更新snapshot包,怎么也更新不下来。
是因为,只deploy了子包,没deploy父包的缘故。打比方
project-parent
—project-api

projectA依赖project-api,如果只deploy了project-api,那么projectA在打包时就会出错
[ERROR] Failed to execute goal on project projectA: Could not resolve dependencies for project com.example:projectA:war:0.0.1-SNAPSHOT: Failed to collect dependencies at com.xx:project-api:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.xx:project-api:jar:0.0.1-SNAPSHOT: Could not find artifact com.xx:project-parent:pom:0.0.1-SNAPSHOT in nexus (http://192.168.0.99:8081/nexus/content/groups/public) -> [Help 1]

猜你喜欢

转载自blog.csdn.net/wangjun5159/article/details/79295140