Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/eclipse/9.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
eclipse 2018-09 maven can';我找不到依赖,但它无处不在_Eclipse_Maven_Bintray_Jcenter - Fatal编程技术网

eclipse 2018-09 maven can';我找不到依赖,但它无处不在

eclipse 2018-09 maven can';我找不到依赖,但它无处不在,eclipse,maven,bintray,jcenter,Eclipse,Maven,Bintray,Jcenter,我使用的是带有32位Java的eclipse 2018-09的旧版本,不确定这会有什么不同。(使用这些旧版本的项目限制) 我一直在项目中使用默认的maven插件,到目前为止,除了以下一个插件外,所有插件都工作正常: <!-- https://mvnrepository.com/artifact/com.github.kilianB/JImageHash --> <dependency> <groupId>com.github.kilianB</g

我使用的是带有32位Java的eclipse 2018-09的旧版本,不确定这会有什么不同。(使用这些旧版本的项目限制)

我一直在项目中使用默认的maven插件,到目前为止,除了以下一个插件外,所有插件都工作正常:

<!-- https://mvnrepository.com/artifact/com.github.kilianB/JImageHash -->
<dependency>
    <groupId>com.github.kilianB</groupId>
    <artifactId>JImageHash</artifactId>
    <version>3.0.0</version>
</dependency>

com.github.kilianB

我得到: 缺少工件com.github.kilianB:JImageHash:jar:3.0.0

我已经做了所有maven的事情,清洁,安装等等

这个jar位于“JCenter存储库()”

url和文件都在那里。

我甚至下载了文件和罐子

我的.m2中没有settings.xml,因为我使用的是默认的EclipseMaven。xml是默认的,我添加了所需的依赖项

少了什么

提前谢谢

FWIW这是我的pom我在用

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>patmangames</groupId>
  <artifactId>carddetect</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <resources>
      <resource>
        <directory>resources</directory>
        <excludes>
          <exclude>**/*.java</exclude>
        </excludes>
      </resource>
    </resources>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.8.0</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>

  <dependencies>

    <!-- https://mvnrepository.com/artifact/net.sourceforge.tess4j/tess4j -->
    <dependency>
        <groupId>net.sourceforge.tess4j</groupId>
        <artifactId>tess4j</artifactId>
        <version>4.5.1</version>
    </dependency>

    <!-- https://mvnrepository.com/artifact/org.jsoup/jsoup -->
    <dependency>
        <groupId>org.jsoup</groupId>
        <artifactId>jsoup</artifactId>
        <version>1.13.1</version>
    </dependency>

    <dependency>
        <groupId>com.googlecode.json-simple</groupId>
        <artifactId>json-simple</artifactId>
        <version>1.1.1</version>
    </dependency>

    <dependency>
      <groupId>org.openpnp</groupId>
      <artifactId>opencv</artifactId>
      <version>4.3.0-1</version>
    </dependency>

    <dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-databind</artifactId>
        <version>2.11.0</version>
    </dependency>


    <!-- FAILS TO FIND AND DOWNLOAD-->
    <dependency>
      <groupId>com.github.kilianB</groupId>
      <artifactId>JImageHash</artifactId>
      <version>3.0.0</version>
    </dependency>
    <!-- FAILS TO FIND AND DOWNLOAD-->

  </dependencies>  

</project>

4.0.0
帕特曼格姆斯
卡片检测
0.0.1-快照
src
资源
**/*.爪哇
maven编译器插件
3.8.0
1.8
1.8
UTF-8
net.sourceforge.4j
tess4j
4.5.1
org.jsoup
jsoup
1.13.1
com.googlecode.json-simple
简单json
1.1.1
org.openpnp
opencv
4.3.0-1
com.fasterxml.jackson.core
杰克逊数据绑定
2.11.0
com.github.kilianB
JImageHash
3.0.0

如果没有
settings.xml
,您只能从MavenCentral获得JAR

请注意,MavenCentral与mvnrepository无关。在mvnrepository上找到一个jar并不意味着它在Mavenentral中


事实上,在您的例子中,jar位于jcenter中,因此您需要编写一个
settings.xml
,在那里您将存储库添加为

太好了!下面是一篇正确配置存储库的帖子,太神秘了!