英文:
Why is maven unable to resolve nor collect following dependency: org.eclipse.egit:org.eclipse.egit.gitflow:jar:51.202007141445-r
问题
为什么我在将以下依赖项添加到项目中后会出现上述错误:
<dependency>
<groupId>org.eclipse.egit</groupId>
<artifactId>org.eclipse.egit.gitflow</artifactId>
<version>5.8.1.202007141445-r</version>
</dependency>
[错误] 无法在项目 com.example:myproject:maven-plugin:0.0.1-SNAPSHOT 的构建中解析依赖项:找不到 org.eclipse.egit:org.eclipse.egit.gitflow:jar:51.202007141445-r
[错误]
[错误] 要查看错误的完整堆栈跟踪,请使用 -e 开关重新运行 Maven。
[错误] 使用 -X 开关重新运行 Maven,以启用完整的调试日志记录。
[错误]
[错误] 有关错误和可能解决方案的更多信息,请阅读以下文章:
[错误] [帮助 1]
[错误] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
该依赖项确实存在:https://mvnrepository.com/artifact/org.eclipse.egit/org.eclipse.egit.gitflow/5.8.1.202007141445-r
英文:
Why am I getting the error above when I add the dependency below to my project:
<dependency>
<groupId>org.eclipse.egit</groupId>
<artifactId>org.eclipse.egit.gitflow</artifactId>
<version>5.8.1.202007141445-r</version>
</dependency>
> [ERROR] Failed to execute goal on project myproject: Could not resolve
> dependencies for project
> com.example:myproject:maven-plugin:0.0.1-SNAPSHOT: Failure to find
> org.eclipse.egit:org.eclipse.egit.gitflow:jar:51.202007141445-r
>[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
The dependency does exist: https://mvnrepository.com/artifact/org.eclipse.egit/org.eclipse.egit.gitflow/5.8.1.202007141445-r
答案1
得分: 1
这个依赖在默认的Maven Central中不存在,它是Eclipse Public Repository的一部分。具体在这里:
https://repo.eclipse.org/content/groups/releases/org/eclipse/egit/org.eclipse.egit.gitflow/5.8.1.202007141445-r/
尝试添加:
<repositories>
<repository>
<id>epl</id>
<url>https://repo.eclipse.org/content/groups/releases</url>
</repository>
</repositories>
英文:
The dependency doesn't exist in the default Maven Central, it's part of the Eclipse Public Repository. Specifically it is here:
https://repo.eclipse.org/content/groups/releases/org/eclipse/egit/org.eclipse.egit.gitflow/5.8.1.202007141445-r/
Try adding:
<repositories>
<repository>
<id>epl</id>
<url>https://repo.eclipse.org/content/groups/releases</url>
</repository>
</repositories>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论