Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/340.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 为什么maven无法解析或收集以下依赖项:org.eclipse.egit:org.eclipse.egit.gitflow:jar:51.202007141445-r_Java_Maven_Pom.xml - Fatal编程技术网

Java 为什么maven无法解析或收集以下依赖项:org.eclipse.egit:org.eclipse.egit.gitflow:jar:51.202007141445-r

Java 为什么maven无法解析或收集以下依赖项:org.eclipse.egit:org.eclipse.egit.gitflow:jar:51.202007141445-r,java,maven,pom.xml,Java,Maven,Pom.xml,当我将下面的依赖项添加到项目中时,为什么会出现上述错误: <dependency> <groupId>org.eclipse.egit</groupId> <artifactId>org.eclipse.egit.gitflow</artifactId> <version>5.8.1.202007141445-r</version> </dependency> > [E

当我将下面的依赖项添加到项目中时,为什么会出现上述错误:

<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

org.eclipse.egit

默认情况下,依赖项不存在,它是应用程序的一部分。具体地说,它在这里:

https://repo.eclipse.org/content/groups/releases/org/eclipse/egit/org.eclipse.egit.gitflow/5.8.1.202007141445-r/
尝试添加:


epl
https://repo.eclipse.org/content/groups/releases

尝试运行带有
-X
标志的命令以启用调试日志并检查这些日志中的根本原因。@微笑谢谢您会尝试这样做。有人能解释一下链接的问题与此问题是如何相同的吗?好的,所以我已经深入挖掘了一点-看起来依赖项的打包设置为eclipse插件。我想这就是问题所在。