hipi渐变生成错误

zu0ti5jz  于 2021-06-02  发布在  Hadoop
关注(0)|答案(1)|浏览(352)

root@ubuntu:/usr/local/hipi#渐变
失败:生成失败,出现异常。
其中:build file'/usr/local/hipi/core/build.gradle'行:8
出了什么问题:评估项目“:core”时出现问题。
找不到参数的方法分布()[build_7msgs7jcv6q1ci90h6pi2434k3$_run_closure2@39d1aa64]关于项目“:core”。
尝试:使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。
生成失败
总时间:7.635秒

Build.gradle code :
defaultTasks 'install'

allprojects {  
  apply plugin: 'eclipse'
}

subprojects {

  apply plugin: 'java'

  repositories {
    mavenCentral()
  }

  dependencies {
    compile 'org.apache.hadoop:hadoop-common:2.7.1'
    compile 'org.apache.hadoop:hadoop-mapreduce-client-core:2.7.1'
    compile 'com.googlecode.json-simple:json-simple:1.1.1'
    compile 'com.drewnoakes:metadata-extractor:2.8.1'
    compile 'com.twelvemonkeys.imageio:imageio-jpeg:3.1.1'
    compile 'com.twelvemonkeys.imageio:imageio-pnm:3.1.1'
    compile 'com.twelvemonkeys.imageio:imageio-tiff:3.1.1'
    compile group: 'org.bytedeco', name: 'javacpp', version: '1.0'
    compile group: 'org.bytedeco', name: 'javacv', version: '1.0'
    compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.0.0-1.0'
    compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.0.0-1.0', classifier: 'macosx-x86_64'
    compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.0.0-1.0', classifier: 'linux-x86_64'
    compile group: 'org.bytedeco.javacpp-presets', name: 'opencv', version: '3.0.0-1.0', classifier: 'windows-x86_64'
    testCompile "junit:junit:4+"
  }

}

task install {
  dependsOn(':tools:hibImport:jar')
  dependsOn(':tools:hibDownload:jar')
  dependsOn(':tools:hibInfo:jar')
  dependsOn(':tools:hibToJpeg:jar')
  dependsOn(':tools:hibDump:jar')

  dependsOn(':tools:covar:jar')

  doLast {
    println '\nFinished building the HIPI library along with all tools and examples.'
  }
}
htzpubme

htzpubme1#

问题出在核心文件夹的gradle文件中。你能给我看一下那个文件吗?core目录gradle文件的内容应该是:

apply plugin: 'java-library-distribution'

jar {
    baseName = 'hipi'
    version = '2.1.0'
}

distributions {
    main{
        baseName = 'hipi'
        version = '2.1.0'
    }
}

javadoc {
  title = "HIPI - Hadoop Image Processing Interface"
  options.links("http://docs.oracle.com/javase/8/docs/api/",
                "http://hadoop.apache.org/docs/stable/api/",
                "http://javadoc.metadata-extractor.googlecode.com/git/2.7.0/",
                "http://bytedeco.org/javacpp-presets/opencv/apidocs/")
}

test {
    testLogging.showStandardStreams = true
}

相关问题