我想从Maven Central安装Spark,我包含了以下依赖项:
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_2.10</artifactId>
<version>1.0.2</version>
</dependency>
但是在22次错误后我得到了这个。总结一下,它说我错过了文件com.clearspring.analytics.stream:jar.2.5.1和org.scala-lang:scala-compiler:jar2.10.0。我将每个jar文件都包含在我的项目中(外部jar文件),但它根本不起作用。 我知道我安装了Scala 2.11,因此拥有更高版本并不是什么大问题。
有人能告诉我发生了什么吗?
这是以下错误:
Description Resource Path Location Type
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from 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. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of maven-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from http://repo.spring.io/libs-release was cached in the local repository, resolution will not be reattempted until the update interval of spring-releases has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to spring-releases (http://repo.spring.io/libs-release): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from http://repository.mapr.com/maven was cached in the local repository, resolution will not be reattempted until the update interval of mapr-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to mapr-repo (http://repository.mapr.com/maven): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from https://repo.eclipse.org/content/repositories/paho-releases was cached in the local repository, resolution will not be reattempted until the update interval of mqtt-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to mqtt-repo (https://repo.eclipse.org/content/repositories/paho-releases): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from https://repository.apache.org/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of apache-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to apache-repo (https://repository.apache.org/content/repositories/releases): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from https://repository.cloudera.com/artifactory/cloudera-repos was cached in the local repository, resolution will not be reattempted until the update interval of cloudera-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to cloudera-repo (https://repository.cloudera.com/artifactory/cloudera-repos): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer com.clearspring.analytics:stream:jar:2.5.1 from https://repository.jboss.org/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of jboss-repo has elapsed or updates are forced. Original error: Could not transfer artifact com.clearspring.analytics:stream:jar:2.5.1 from/to jboss-repo (https://repository.jboss.org/nexus/content/repositories/releases): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from 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. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of maven-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from http://repo.spring.io/libs-release was cached in the local repository, resolution will not be reattempted until the update interval of spring-releases has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to spring-releases (http://repo.spring.io/libs-release): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from http://repository.mapr.com/maven was cached in the local repository, resolution will not be reattempted until the update interval of mapr-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to mapr-repo (http://repository.mapr.com/maven): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://oss.sonatype.org/content/repositories/releases/ was cached in the local repository, resolution will not be reattempted until the update interval of sonatypereleases has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to sonatypereleases (https://oss.sonatype.org/content/repositories/releases/): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://oss.sonatype.org/content/repositories/snapshots/ was cached in the local repository, resolution will not be reattempted until the update interval of sonatypesnapshots has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to sonatypesnapshots (https://oss.sonatype.org/content/repositories/snapshots/): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://repo.eclipse.org/content/repositories/paho-releases was cached in the local repository, resolution will not be reattempted until the update interval of mqtt-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to mqtt-repo (https://repo.eclipse.org/content/repositories/paho-releases): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://repository.apache.org/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of apache-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to apache-repo (https://repository.apache.org/content/repositories/releases): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://repository.cloudera.com/artifactory/cloudera-repos was cached in the local repository, resolution will not be reattempted until the update interval of cloudera-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to cloudera-repo (https://repository.cloudera.com/artifactory/cloudera-repos): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
ArtifactTransferException: Failure to transfer org.scala-lang:scala-compiler:jar:2.10.0 from https://repository.jboss.org/nexus/content/repositories/releases was cached in the local repository, resolution will not be reattempted until the update interval of jboss-repo has elapsed or updates are forced. Original error: Could not transfer artifact org.scala-lang:scala-compiler:jar:2.10.0 from/to jboss-repo (https://repository.jboss.org/nexus/content/repositories/releases): The operation was cancelled. pom.xml /recommendation_engine line 2 Maven Dependency Problem
Missing artifact com.clearspring.analytics:stream:jar:2.5.1 pom.xml /recommendation_engine line 1 Maven Dependency Problem
Missing artifact org.scala-lang:scala-compiler:jar:2.10.0 pom.xml /recommendation_engine line 1 Maven Dependency Problem
The container 'Maven Dependencies' references non existing library '/Users/chlee021690/.m2/repository/org/scala-lang/scala-compiler/2.10.0/scala-compiler-2.10.0.jar' recommendation_engine Build path Build Path Problem
The project cannot be built until build path errors are resolved recommendation_engine Unknown Java Problem
答案 0 :(得分:0)
如果您在代理后面,则可能必须在settings.xml中指定代理。从错误消息看,您的maven实例似乎无法连接到maven中心。 请参阅此以设置代理: http://maven.apache.org/guides/mini/guide-proxies.html