从远程存储库下载jar文件而不是pom

时间:2014-07-12 14:29:10

标签: java maven jar build.gradle

我在Github中创建了一个存储库,里面有一个jar。当我设置对build.gradle文件的依赖时,唯一下载的文件是pom文件,但不是jar。

的build.gradle:

apply plugin: 'war'
apply plugin: 'eclipse-wtp'
apply plugin: 'eclipse'


configurations {
    cucumberRuntime {
        extendsFrom testRuntime
    }
}

ext {
    seleniumVersion = "2.40.0"
}

eclipse {
        wtp {
            component {
                resource sourcePath: './WebContent', deployPath: '/'
            }
        }
}

configurations {
    cucumberRuntime {
        extendsFrom testRuntime
    }
}

repositories {
    maven {
        url 'https://github.com/chrisokamoto/mvn-repo/raw/master/'
    }   
}

dependencies {
    compile group: 'snapshots.Aipim4J', name: 'Aipim4J', version: '1.0'
}

存储库位于以下链接:https://github.com/chrisokamoto/mvn-repo/tree/master/snapshots/Aipim4J/Aipim4J/1.0

我做错了什么?

0 个答案:

没有答案