gpt4 book ai didi

java - spring maven install or clean错误,为什么?

转载 作者:行者123 更新时间:2023-11-29 08:25:29 25 4
gpt4 key购买 nike

当我为我的 spring 项目使用 maven installclean 时发生以下错误。

这个问题出现在Eclipse 2018-09版本。当我使用eclipse photon版本时,没有出现这个问题。

错误信息。

[INFO] Scanning for projects...
[INFO]
[INFO] -----------------------------< >-----------------------------
[INFO] Building 1.0.0-BUILD-SNAPSHOT
[INFO] -------------------------------- [ war ]---------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.442 s
[INFO] Finished at: 2018-12-02T23:32:35+09:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-surefire-plugin:2.12.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-surefire-plugin:jar:2.12.4: Could not transfer artifact org.apache.maven.plugins:maven-surefire-plugin:pom:2.12.4 from/to central (https://repo.maven.apache.org/maven2): Cannot access https://repo.maven.apache.org/maven2 with type default using the available connector factories: BasicRepositoryConnectorFactory: Cannot access https://repo.maven.apache.org/maven2 using the registered transporter factories: WagonTransporterFactory: java.util.NoSuchElementException
[ERROR] role: org.apache.maven.wagon.Wagon
[ERROR] roleHint: https
[ERROR] -> [ 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

为什么 maven 不能 installclean

最佳答案

这个问题好像是用JDK7运行Maven的时候出现的。

它一直工作到 2019 年 4 月,但随后由于此错误在 Maven 构建失败时停止工作。

关于java - spring maven install or clean错误,为什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53581629/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com