文章目录

之前要写一个hsf的demo,maven的依赖是需要alibaba的私服的,所以出现了下面的错误。

具体参看另一篇文章:https://blog.csdn.net/dataiyangu/article/details/88133904

已经配置好了setting.xml文件

在命令行执行如下命令 mvn help:effective-settings 。

可能会报错:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-help-
plugin:3.1.1:effective-settings (default-cli) on project standalone-pom:
Execution default-cli of goal org.apache.maven.plugins:maven-help-
plugin:3.1.1:effective-settings failed: Plugin org.apache.maven.plugins:maven-
help-plugin:3.1.1 or one of its dependencies could not be resolved: Could not
find artifact org.sonatype.aether:aether-impl:jar:1.7 in edas-oss-plugin-central
(http://edas-public.oss-cn-hangzhou.aliyuncs.com/repository) -> [Help 1]

类似于这种错误,应该是因为我们从私服下载的 ,所以可能出现网络或者其他问题,不能讲jar包下载的完全完整或者正确,找到里面的关键字 org.sonatype.aether:aether-impl:jar:1.7 从maven仓库中删除,重新执行上面的命令。

后面可能还有其他的包也会有类似的错误,也用这个方法。

直到

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  4.080 s
[INFO] Finished at: 2019-03-05T15:07:23+08:00
[INFO] ------------------------------------------------------------------------
05-11 09:32