我正在尝试使用MAVEN从IDE构建一个corda节点。 我得到以下依赖失败。 正在下载:https://nexus:8443/nexus/content/groups/public/com/github/corda/crash/crash.parent/9d242da2a10e686f33a3aefc69e4768824ad0716/crash.parent-9d242da2a10e686f33a3aefc69e4768824ad0716.pom正在下载:https://nexus:8443/nexus/content/repositories/unmanaged_releases/com/github/corda/crash/crash.parent/9d242da2a10e686f33a3aefc69e4768824ad0716/crash.parent-9d242da2a10e686f33a3aefc69e4768824ad0716.pom正在下载:https://nexus:8443/nexus/content/groups/public/com/github/bft-smart/library/master-v1.1-beta-g6215ec8-87/library-master-v1.1-beta-g6215ec8-87.pom正在下载:https://nexus:8443/nexus/content/repositories/unmanaged_releases/com/github/bft-smart/library/master-v1.1-beta-g6215ec8-87/library-master-v1.1-beta-g6215ec8-87.pom [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------ -------------------------------------------------- ---------------- [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - BUILD FAILURE [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - -------------------------------------------------- ---------------------- [main] INFO org.apache.maven.cli.event.ExecutionEventLogger - 总时间:0.974秒[主要] INFO org.apache .maven.cli.event.ExecutionEventLogger - 完成时间:2018-01-24T11:28:16-06:00 [主要] INFO org.apache.maven.cli.event.ExecutionEventLogger - 最终记忆:15M / 309M [主要] INFO org.apache.maven.cli.event.ExecutionEventLogger - ------------------------------------- ----------------------------------- [main] ERROR org.apache.maven.cli.MavenCli - 失败在项目bdl-corda上执行目标:无法解析项目的依赖项: 无法在net.corda上收集依赖项:corda-node-driver:jar:2.0.0 - > net.corda:corda-test-utils:jar:2.0.0 - > net.corda:corda-node:jar:2.0.0 - > com.github.corda.crash:crash.shell:jar:9d242da2a10e686f33a3aefc69e4768824ad0716:无法读取com.github.corda.crash的工件描述符:crash.shell:jar:9d242da2a10e686f33a3aefc69e4768824ad0716:无法传输工件com.github.corda.crash: crash.parent:POM:9d242da2
我没有在maven中心看到那个罐子。是否有另一个maven URL?任何帮助将不胜感激。
来自pom的依赖
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>19.0</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.22</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.7.25</version>
</dependency>
<dependency>
<groupId>net.corda</groupId>
<artifactId>corda-core</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>net.corda</groupId>
<artifactId>corda-finance</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>net.corda</groupId>
<artifactId>corda-jackson</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>net.corda</groupId>
<artifactId>corda-rpc</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>net.corda</groupId>
<artifactId>corda-node-api</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>net.corda</groupId>
<artifactId>corda-node-driver</artifactId>
<version>2.0.0</version>
</dependency>
答案 0 :(得分:0)
我遇到了同样的问题,花了我一整天才找到解决方案。问题在于这些工件与其余工件位于不同的存储库中。您需要将以下内容添加到pom中:
<repositories>
<repository>
<id>mulesoft</id>
<url>https://repository.mulesoft.org/nexus/content/repositories/public/</url>
</repository>
</repositories>