Failed to execute goal on project common: Could not resolve dependencies
[ERROR] Failed to execute goal on project common: Could not resolve dependencies for project com:common:jar:1.0.0: Failed to collect dependencies at com.ztb:ztb-xdocreport:jar:1.0: Failed to read artifact descriptor for com.ztb:xdocreport:jar:1.0: Could not transfer artifact com.ztb:xdocreport:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/com/ztb/xdocreport/1.0/xdocreport-1.0.pom: Unknown host repo.maven.apache.org -> [Help 1]
[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/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the comman
原因:
缺失jar包的pom文件
解决方法:
将本地maven仓库对应的jar包文件夹删除,然后重新maven update,将pom文件下载下来。
如果是maven私库,查看对应jar包目录下是否有pom文件;如果没有,验证上传jar包时是否有勾选 Generate a POM file with these coordinates