NutzCN Logo
问答 Could not transfer metadata cn.wizzer:wk-framework:4.0.1-SNAPSHOT/maven-metadata.xml
发布于 2275天前 作者 qq_e7d5a486 3583 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

使用tomcat可以正常运行,但用jetty插件就报错,日志如下:

"D:\Program Files\Java\jdk\bin\java" -Dmaven.multiModuleProjectDirectory=D:\Code\github\wk-my\wk-app\st-web -Dmaven.home=D:\Code\maven -Dclassworlds.conf=D:\Code\maven\bin\m2.conf "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA 2017.1.4\lib\idea_rt.jar=59179:D:\Program Files\JetBrains\IntelliJ IDEA 2017.1.4\bin" -Dfile.encoding=UTF-8 -classpath D:\Code\maven\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2017.1.4 -s D:\Code\maven\conf\settings.xml -Dmaven.repo.local=D:\Code\repository jetty:run
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building st-web Maven Webapp 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] >>> jetty-maven-plugin:9.4.2.v20170220:run (default-cli) > test-compile @ st-web >>>
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/cn/wizzer/wk-framework/4.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata cn.wizzer:wk-framework:4.0.1-SNAPSHOT/maven-metadata.xml from/to nutzcn-snapshots (https://jfrog.nutz.cn/artifactory/snapshots): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[WARNING] Failure to transfer cn.wizzer:wk-framework:4.0.1-SNAPSHOT/maven-metadata.xml from https://jfrog.nutz.cn/artifactory/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of nutzcn-snapshots has elapsed or updates are forced. Original error: Could not transfer metadata cn.wizzer:wk-framework:4.0.1-SNAPSHOT/maven-metadata.xml from/to nutzcn-snapshots (https://jfrog.nutz.cn/artifactory/snapshots): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/cn/wizzer/wk-framework/4.0.1-SNAPSHOT/wk-framework-4.0.1-SNAPSHOT.pom
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/cn/wizzer/wk-parent/4.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata cn.wizzer:wk-parent:4.0.1-SNAPSHOT/maven-metadata.xml from/to nutzcn-snapshots (https://jfrog.nutz.cn/artifactory/snapshots): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[WARNING] Failure to transfer cn.wizzer:wk-parent:4.0.1-SNAPSHOT/maven-metadata.xml from https://jfrog.nutz.cn/artifactory/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of nutzcn-snapshots has elapsed or updates are forced. Original error: Could not transfer metadata cn.wizzer:wk-parent:4.0.1-SNAPSHOT/maven-metadata.xml from/to nutzcn-snapshots (https://jfrog.nutz.cn/artifactory/snapshots): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/cn/wizzer/wk-parent/4.0.1-SNAPSHOT/wk-parent-4.0.1-SNAPSHOT.pom
Downloading: https://jfrog.nutz.cn/artifactory/snapshots/cn/wizzer/app/st-web/4.0.1-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata cn.wizzer.app:st-web:4.0.1-SNAPSHOT/maven-metadata.xml from/to nutzcn-snapshots (https://jfrog.nutz.cn/artifactory/snapshots): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.759 s
[INFO] Finished at: 2018-01-04T09:55:38+08:00
[INFO] Final Memory: 17M/170M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project st-web: Could not resolve dependencies for project cn.wizzer.app:st-web:war:4.0.1-SNAPSHOT: Failed to collect dependencies at cn.wizzer:wk-framework:jar:4.0.1-SNAPSHOT: Failed to read artifact descriptor for cn.wizzer:wk-framework:jar:4.0.1-SNAPSHOT: Could not transfer artifact cn.wizzer:wk-framework:pom:4.0.1-SNAPSHOT from/to nutzcn-snapshots (https://jfrog.nutz.cn/artifactory/snapshots): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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

Process finished with exit code 1

1 回复

看说明啊, 先执行mvn install,在根目录

添加回复
请先登陆
回到顶部