【发布时间】:2017-08-14 00:44:29
【问题描述】:
我已阅读以下类似主题的先前答案,但没有一个对我有用。
Maven Build Failure - failure to find plugins
第一个链接实际上并不适用,因为我没有使用代理,但我确实检查了 settings.xml 文件以了解其他可能性。我可以直接去插件.jar文件下载。
第二个链接可能适用,但我不知道它们的意思是:“更改用户设置以指出正确的 settings.xml 和您的存储库文件夹应该存在于您的系统中。”我不知道该怎么做,也不确定他们指的是哪个存储库以及我是如何找到的。我只查看我的 Maven settings.xml 文件。
这是我的错误
C:\cas-overlay-template-master>mvn package install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building cas-overlay 1.0
[INFO] ------------------------------------------------------------------------
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.3/maven-compiler-plugin-3.3.jar
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.965 s
[INFO] Finished at: 2017-03-21T23:42:13-04:00
[INFO] Final Memory: 7M/97M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.3 or one of its dependencies could not be resolved: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:jar:3.3 from/to central (https://repo.maven.apache.org/maven2): java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty -> [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
我的目标是让 CAS 5.0.4 为 Liferay 7.0ga3 工作,运行 Tomcat 8、JDK 1.8 和 Maven 3。我是一名学生,除了 JDK 1.8 之外从未使用过任何这些技术,所以我真的需要非常容易理解的答案。对于那些应该知道自己在做什么的人来说,这不是老手的答案。谢谢
【问题讨论】: