Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/315.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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/multithreading/4.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
无法生成gradle项目,因为javaml depandency失败_Java_Maven_Gradle_Jar_Sourceforge - Fatal编程技术网

无法生成gradle项目,因为javaml depandency失败

无法生成gradle项目,因为javaml depandency失败,java,maven,gradle,jar,sourceforge,Java,Maven,Gradle,Jar,Sourceforge,我有一个在eclipse上运行的gradle Java项目,它直接使用Javaml库,但是每次我尝试在项目的根文件夹中使用gradle clean build编译项目时,我都会遇到以下错误: Execution failed for task ':compileJava'. > Could not resolve all files for configuration ':compileClasspath'. > Could not find net.sourceforge:

我有一个在eclipse上运行的gradle Java项目,它直接使用Javaml库,但是每次我尝试在项目的根文件夹中使用
gradle clean build
编译项目时,我都会遇到以下错误:

 Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not find net.sourceforge:javaml:0.1.5.
     Searched in the following locations:
       - https://repo.maven.apache.org/maven2/net/sourceforge/javaml/0.1.5/javaml-0.1.5.pom
       - https://repo.maven.apache.org/maven2/net/sourceforge/javaml/0.1.5/javaml-0.1.5.jar
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s
my build.Gradle和依赖项的代码如下所示:

    plugins {
    id 'com.palantir.docker' version '0.22.1'
}
allprojects {apply plugin: 'idea'}
//and standard one
apply plugin: 'java'

repositories {
    mavenCentral()
}
docker {
        name "hig"
        dockerfile file('src/docker/Dockerfile')
        copySpec.from(jar).rename(".*","app.jar")
        buildArgs(['JAR_FILE' : "app.jar"])
}
dependencies {
    //compile project(':shared')
    // https://mvnrepository.com/artifact/org.apache.commons/commons-math3
    compile group: 'org.apache.commons', name: 'commons-math3', version: '3.0'
    // https://mvnrepository.com/artifact/org.ujmp/ujmp-core
    compile group: 'org.ujmp', name: 'ujmp-core', version: '0.3.0'
    // https://mvnrepository.com/artifact/com.datumbox/lpsolve
    compile group: 'com.datumbox', name: 'lpsolve', version: '5.5.2.0'
    // https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
    compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.1'
    // https://mvnrepository.com/artifact/org.xerial/sqlite-jdbc
    compile group: 'org.xerial', name: 'sqlite-jdbc', version: '3.7.2'
    // https://mvnrepository.com/artifact/junit/junit
    testCompile group: 'junit', name: 'junit', version: '4.4'
    // https://mvnrepository.com/artifact/net.sourceforge/javaml
    compile group: 'net.sourceforge', name: 'javaml', version: '0.1.5'


}
有人知道为什么java ml依赖项没有被识别吗? 注意:我访问了maven存储库网站,但javaml不在那里
注2:我也无法在本地获取依赖项,在mvnrepository页面下有provider repos选项卡。 添加到构建配置

repositories {
  mavenCentral()
  maven {
    name "ICM"
    url "http://maven.icm.edu.pl/artifactory/repo/"
  }
}