IDEA搭建Maven失败,求大神解答

E:\software\java\JAVA\jdk-9.0.4\bin\java-Dmaven.multiModuleProjectDirectory=C:\Users\... E:\software\java\JAVA\jdk-9.0.4\bin\java -Dmaven.multiModuleProjectDirectory=C:\Users\you82\AppData\Local\Temp\archetypetmp -DarchetypeCatalog=internal -Dmaven.home=E:\software\my_java\apache-maven-3.5.2 -Dclassworlds.conf=E:\software\my_java\apache-maven-3.5.2\bin\m2.conf -Dfile.encoding=UTF-8 -classpath E:\software\my_java\apache-maven-3.5.2\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2017.3.7 -s E:\software\my_java\apache-maven-3.5.2\conf\settings.xml -Dmaven.repo.local=E:\software\my_java\maven_repository -DinteractiveMode=false -DgroupId=com.you -DartifactId=maven_java -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate
[INFO] Scanning for projects...
Downloading from central: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml
[WARNING] Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): 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: 6.337 s
[INFO] Finished at: 2019-08-27T10:54:28+08:00
[INFO] Final Memory: 10M/34M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Failed to resolve version for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (E:\software\my_java\maven_repository) -> [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/PluginResolutionException
[ERROR] Maven execution terminated abnormally (exit code 1)
展开
 我来答
跳黑幻X
2019-08-27 · TA获得超过143个赞
知道答主
回答量:29
采纳率:33%
帮助的人:3.1万
展开全部
如果是 idea 的话,右击 pom.xml 文件,选择最下面的 “ Add as maven build file”,然后编译器会重新构建,就好了
追问
我是新建的maven工程出现的问题
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式