无法导入“com.r3.corda.jmeter-corda”

dy2hfwbg  于 2022-11-09  发布在  其他
关注(0)|答案(1)|浏览(116)

我已经创建了一个Corda开发者平台的帐户,但是无法访问corda-enterprise。也许这个帐户不是https://software.r3.com/artifactory/corda-enterprise的,那么我在哪里可以创建正确的帐户?我也试过jmeter-corda 4.8,它仍然不起作用。

plugins {
    //id 'org.jetbrains.kotlin.jvm'
    id 'java'
}

sourceSets {
    main {
        resources {
            srcDir rootProject.file("config/dev")
        }
    }
}
repositories {
    ext.artifactory_contextUrl = 'https://software.r3.com/artifactory'
    ext.artifactory_user = project.ext.getProperty('cordaArtifactoryUsername')
    ext.artifactory_password = project.ext.getProperty('cordaArtifactoryPassword')
    if ( ext.artifactory_user != null && ext.artifactory_password != null ){
        maven{
            url "https://software.r3.com/artifactory/corda-enterprise"
            credentials {
                username artifactory_user
                password artifactory_password
            }
        }
        maven { url "https://software.r3.com/artifactory/corda-enterprise-for-customers"
            credentials {
                username artifactory_user
                password artifactory_password
            }
        }
    }
    mavenLocal()
    mavenCentral()
    // Dependency on Corda Open Source
    maven { url "https://software.r3.com/artifactory/corda" }

    // Corda dependencies for the patched Quasar version
    maven { url "https://software.r3.com/artifactory/corda-dependencies" }
}
dependencies {
    ext.jmeterVersion = 3.3
    ext.cordaVersion = "4.9.1"

    compile group: "com.r3.corda", name: "jmeter-corda", version: "4.9.1"

    compile group: 'org.apache.jmeter', name: 'ApacheJMeter_java', version: jmeterVersion // 'compile' because we extend Java sampler.
    // Dependency on workflows
    compile project(":workflows")
}

错误消息为:

What went wrong:
Execution failed for task ':configureCordappFatJar'.
> Could not resolve all files for configuration ':runtime'.
   > Could not resolve com.r3.corda:jmeter-corda:4.9.1.
     Required by:
         project :
      > Could not resolve com.r3.corda:jmeter-corda:4.9.1.
         > Could not get resource 'https://software.r3.com/artifactory/corda-enterprise/com/r3/corda/jmeter-corda/4.9.1/jmeter-corda-4.9.1.pom'.
            > Could not GET 'https://software.r3.com/artifactory/corda-enterprise/com/r3/corda/jmeter-corda/4.9.1/jmeter-corda-4.9.1.pom'. Received status code 403 from server:
oknrviil

oknrviil1#

通过将corda-enterprise jar添加到我的本地maven存储库并删除URL和名称/密码来解决。

相关问题