在Corda中构建Irs-demo时出错

时间:2018-05-02 07:06:05

标签: corda

使用引用构建corda-master示例中存在的irs-demo时遇到以下错误

https://github.com/corda/corda/tree/master/samples/irs-demo

w: C:\Users\ravi\corda\testing\test-utils\src\main\kotlin\net\corda\testing\dsl\TestDSL.kt: (284, 37): 'importAttachment(InputStream): AttachmentId /* = SecureHash */' is deprecated. More attachment information is required
w: C:\Users\ravi\corda\testing\test-utils\src\main\kotlin\net\corda\testing\services\MockAttachmentStorage.kt: (48, 20): 'importAttachment(InputStream): AttachmentId /* = SecureHash */' is deprecated. Overrides deprecated member in 'net.corda.core.node.services.AttachmentStorage'. More attachment information is required
w: C:\Users\ravi\corda\testing\test-utils\src\main\kotlin\net\corda\testing\services\MockAttachmentStorage.kt: (60, 78): Parameter 'filename' is never used
e: C:\Users\ravi\corda\testing\node-driver\src\main\kotlin\net\corda\testing\node\internal\RPCDriver.kt: (138, 9): Class 'SingleUserSecurityManager' is not abstract and does not implement abstract member public abstract fun validateUser(p0: String!, p1: String!, p2: RemotingConnection!): String! defined in org.apache.activemq.artemis.spi.core.security.ActiveMQSecurityManager3
e: C:\Users\ravi\corda\testing\node-driver\src\main\kotlin\net\corda\testing\node\internal\RPCDriver.kt: (141, 5): 'validateUser' overrides nothing
e: C:\Users\ravi\corda\testing\node-driver\src\main\kotlin\net\corda\testing\node\internal\RPCDriver.kt: (145, 5): 'validateUserAndRole' overrides nothing

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':node-driver:compileKotlin'.
> Compilation error. See log for more details

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

* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':node-driver:compileKotlin'.
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
        at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
        at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
        at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
        at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
        at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
        at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
        at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
        at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
        at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
        at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
        at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
        at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)

我用stacktrace运行了这个。我克隆了主存储库,当我尝试使用命令部署irs-demo的节点时遇到此错误

  

gradlew.bat示例:irs-demo:cordapp:deployNodes

在直接部署irs-demo的节点之前是否还有任何先决条件?

更新1:

尝试使用corda V3.0构建时,使用gradle获取问题

C:\demos\corda-release-V3.0>gradlew.bat install --stacktrace

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\demos\corda-release-V3.0\build.gradle' line: 112

* What went wrong:
A problem occurred evaluating root project 'corda-project'.
> repository not found: C:\demos\corda-release-V3.0

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

* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating root project 'corda-project'.
        at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:92)
        at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:199)
        at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)
        at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:204)
        at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:61)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
        at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:58)
        at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:41)
        at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
        at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:64)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.access$100(LifecycleProjectEvaluator.java:34)
        at org.gradle.configuration.project.LifecycleProjectEvaluator$ConfigureProject.run(LifecycleProjectEvaluator.java:110)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
        at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
        at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:50)
        at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:666)
        at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:135)
        at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35)
        at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:60)
        at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38)

1 个答案:

答案 0 :(得分:0)

Corda github采用了cut版本发行模式。这意味着所有开发都已添加到master分支,这使其非常不稳定。

请始终克隆标记为V3,V4等的稳定分支(在打开页面时,它也应该是默认分支)

例如:https://github.com/corda/corda设置为release / os / 4.6 默认