zoukankan      html  css  js  c++  java
  • gradle配置时报错

    Warning:<i><b>root project 'mlibmodel': Unable to build Scala project configuration</b>
    Details: org.gradle.api.GradleException:
    Cannot infer Scala class path because no repository is declared in root project 'mlibmodel'</i>


    Warning:<i><b>project ':alg': Unable to build Scala project configuration</b>
    Details: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':alg:compileClasspath'.
    Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve org.apache.spark:spark-core_2.11:2.1.1.
    Required by:
    project :alg
    project :alg > project :api
    project :alg > project :common
    project :alg > project :mllib
    project :alg > project :mllib > project :sparklib
    Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve org.apache.spark:spark-core_2.11:2.1.1.
    Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'http://repo.maven.apache.org/maven2/org/apache/spark/spark-core_2.11/2.1.1/spark-core_2.11-2.1.1.pom'.
    Caused by: org.gradle.internal.resource.transport.http.HttpErrorStatusCodeException: Could not HEAD 'http://repo.maven.apache.org/maven2/org/apache/spark/spark-core_2.11/2.1.1/spark-core_2.11-2.1.1.pom'. Received status code 501 from server: HTTPS Required</i>

    这个报错设置下载org.apache.spark:spark-core_2.11:2.1.1.这个失败,到=导致项目构建gradle失败。

    可以:1、换一个链接下载或者公司内部库下载这个包

       2、离线下载好了以后,导入项目里面。

  • 相关阅读:
    认识SQL
    Redis应用场景
    泛型
    数据库多表连接查询的实现方式
    Spring中常用注解及其作用
    flask-路转换器
    CSS初始化样式
    python 中的__str__ 和__repr__方法
    python的map、reduce和filter(过滤器)函数(廖雪峰老师python基础)
    python的迭代器(转自廖雪峰老师python基础)
  • 原文地址:https://www.cnblogs.com/zhangbojiangfeng/p/12831110.html
Copyright © 2011-2022 走看看