maven缺少神器

 新起点新娘妆 发布于 2023-02-10 10:08

我有一个maven项目,直到昨天正在建设.现在每当我尝试使用m2e进行构建时,它都无法构建,因为它无法解析依赖关系,但这些依赖关系不会丢失,并且可以在我的本地存储库中找到它们.我知道之前已经问过这个问题,但没有一个答案解决了我的问题.我尝试了很多东西:

删除缓存.

关闭项目并重新打开它.

做一个干净的项目安装.

然而没有结果.那么有更系统的程序来解决这个问题吗?

编辑日志:

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building itunit-workflow 1.0.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.activiti:activiti-bpmn-converter:jar:5.13 is missing, no dependency information available
[WARNING] The POM for org.springframework:spring-beans:jar:3.1.2.RELEASE is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.279s
[INFO] Finished at: Mon Dec 16 18:30:10 GMT+02:00 2013
[INFO] Final Memory: 5M/76M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project itunit-workflow: Could not resolve dependencies for project org.itunit.itunit:itunit-workflow:ejb:1.0.2-SNAPSHOT: The following artifacts could not be resolved: org.activiti:activiti-bpmn-converter:jar:5.13, org.springframework:spring-beans:jar:3.1.2.RELEASE: Cannot access central (http://repo.maven.apache.org/maven2) in offline mode and the artifact org.activiti:activiti-bpmn-converter:jar:5.13 has not been downloaded from it before. -> [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

Faliorn.. 14

这通常发生在从一个maven配置更改为另一个maven配置时.在我的情况下,我正在从直接连接切换到maven central到使用nexus作为镜像.

删除maven-metadata*.xml_*.repositories本地\Users\YourUser\.m2文件夹内部为我做了伎俩.

希望这可以帮助!

1 个回答
  • 这通常发生在从一个maven配置更改为另一个maven配置时.在我的情况下,我正在从直接连接切换到maven central到使用nexus作为镜像.

    删除maven-metadata*.xml_*.repositories本地\Users\YourUser\.m2文件夹内部为我做了伎俩.

    希望这可以帮助!

    2023-02-10 10:10 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有