Failed to execute goal on project *··· Could not find artifact *

问题:Failed to execute goal on project MachineLearning: Could not resolve dependencies for project cfca.xfraud:MachineLearning:war:7.1.0.2: Failed to collect dependencies at cfca.xfraud:Base:jar:7.1.0.2: Failed to read artifact descriptor for cfca.xfraud:Base:jar:7.1.0.2: Could not find artifact cfca.xfraud:parent:pom:7.1.0.2 in nexus (http://192.168.117.7:8080/nexus/content/groups/public) -> [Help 1]

Failed to execute goal on project *··· Could not find artifact *_第1张图片

这种情况下,是因为父项目parent没有mvn clean install导致的【这里主要是项目升级版本了,以往的父项目pom版本不能用了】。

只需要在打包子项目之前,先进行父项目mvn clean install

问题解决前


问题解决后

Failed to execute goal on project *··· Could not find artifact *_第2张图片

pS:解决思路:

1、先确定pom文件的正确,依赖正确

2、去仓库中看看有没有关联项目依赖的jar包以及pom文件

你可能感兴趣的:(maven)