Why is maven unable to resolve nor collect following dependency: org.eclipse.egit:org.eclipse.egit.gitflow:jar:51.202007141445-r

huangapple go评论74阅读模式
英文:

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:

&lt;dependency&gt;
    &lt;groupId&gt;org.eclipse.egit&lt;/groupId&gt;
    &lt;artifactId&gt;org.eclipse.egit.gitflow&lt;/artifactId&gt;
    &lt;version&gt;5.8.1.202007141445-r&lt;/version&gt;
&lt;/dependency&gt;

&gt; [ERROR] Failed to execute goal on project myproject: Could not resolve
&gt; dependencies for project
&gt; com.example:myproject:maven-plugin:0.0.1-SNAPSHOT: Failure to find
&gt; org.eclipse.egit:org.eclipse.egit.gitflow:jar:51.202007141445-r 
&gt;[ERROR]
&gt;[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
&gt;[ERROR] Re-run Maven using the -X switch to enable full debug logging.
&gt;[ERROR]
&gt;[ERROR] For more information about the errors and possible solutions, please 
&gt; read the following articles:
&gt;[ERROR] [Help 1]
&gt;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:

    &lt;repositories&gt;
        &lt;repository&gt;
            &lt;id&gt;epl&lt;/id&gt;
            &lt;url&gt;https://repo.eclipse.org/content/groups/releases&lt;/url&gt;
        &lt;/repository&gt;
    &lt;/repositories&gt;

huangapple
  • 本文由 发表于 2020年8月15日 01:15:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/63417286.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定