gpt4 book ai didi

java - 使用 ElasticSearch-Hadoop 构建项目时构建失败

转载 作者:可可西里 更新时间:2023-11-01 14:41:10 26 4
gpt4 key购买 nike

我无法构建使用 ElasticSearch-Hadoop 的 Java 项目。这是我在尝试构建项目时看到的错误:

Scanning for projects...

------------------------------------------------------------------------
Building testES 1.0-SNAPSHOT
------------------------------------------------------------------------
The POM for cascading:cascading-local:jar:2.5.5 is missing, no dependency information available
The POM for cascading:cascading-hadoop:jar:2.5.5 is missing, no dependency information available
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 6.499s
Finished at: Mon Sep 08 11:29:08 IST 2014
Final Memory: 8M/19M
------------------------------------------------------------------------
Failed to execute goal on project testES: Could not resolve dependencies for
project org.edge:testES:jar:1.0-SNAPSHOT: The following artifacts could not
be resolved: cascading:cascading-local:jar:2.5.5, cascading:cascading-
hadoop:jar:2.5.5: Failure to find cascading:cascading-local:jar:2.5.5 in
http://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has
elapsed or updates are forced -> [Help 1]

To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.

For more information about the errors and possible solutions, please read
the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

以下是项目的 POM 文件中的依赖项:-

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch-hadoop</artifactId>
<version>2.1.0.Beta1</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-core</artifactId>
<version>1.2.1</version>
<type>jar</type>
</dependency>
</dependencies>

我错过了什么吗?

最佳答案

看起来你正在阻止 maven 查看 spring-source存储库,使其工作在您的 pom.xml

中添加以下代码段
<project>
...
<repositories>

<repository>
<id>spring-milestones</id>
<url>http://repo.springsource.org/libs-milestone/</url>
</repository>

</repositories>
...
</project>

关于java - 使用 ElasticSearch-Hadoop 构建项目时构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25718398/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com