Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.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/4/maven/6.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
Java 如何下载依赖项jar';从S3到gradle?_Java_Maven_Gradle - Fatal编程技术网

Java 如何下载依赖项jar';从S3到gradle?

Java 如何下载依赖项jar';从S3到gradle?,java,maven,gradle,Java,Maven,Gradle,如何使用gradle从S3下载依赖jar 这是我的身材,格雷德尔 group 'com.hello' version '1.0-SNAPSHOT' apply plugin: 'java' apply plugin: 'maven-publish' repositories { mavenCentral() maven { url "https://s3.amazonaws.com/maven-repo-bucket" credentials

如何使用gradle从S3下载依赖jar

这是我的身材,格雷德尔

group 'com.hello'
version '1.0-SNAPSHOT'

apply plugin: 'java'
apply plugin: 'maven-publish'


repositories {
    mavenCentral()
    maven {
        url "https://s3.amazonaws.com/maven-repo-bucket"
        credentials(AwsCredentials) {
            accessKey "${System.getenv('aws_access_id')}"
            secretKey "${System.getenv('aws_secret_key')}"
        }
    }
}

dependencies {
    compile files('hello1.jar')
    compile files('hello2.jar')
    compile group: 'com.google.code.gson', name: 'gson', version: '2.7'
    testCompile group: 'junit', name: 'junit', version: '4.11'
}

maven repo bucket
是我的s3 bucket名称
hello1.jar
hello2.jar
是我的s3 bucket下的jar文件的名称我不知道这些文件的组id和工件id,但我想下载
hello1.jar
hello2.jar
,并放入本地maven repo就像其他依赖一样

它们是你的jar文件。你给了他们什么坐标?@chrylis这里的坐标是什么意思?你需要根据GAV惯例组织这些文件,例如提供Maven 2存储库结构。