Unable to build the cordapp-template-java - gradle

I was trying to build cordapp-template-java (Release M14.0) using ./gradlew clean deployNodes --debug and getting below error
09:35:30.533 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Run tasks'
09:35:30.534 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Run tasks' completed
09:35:30.537 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use)
09:35:30.537 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 2: released lock on root.1
09:35:30.538 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
09:35:30.538 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
09:35:30.538 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
09:35:30.538 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
09:35:30.538 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':deployNodes'.
09:35:30.539 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Error while generating node info file. Please check the logs in C:\Users\iyyam\CordaR3\cordapp-template-java\build\nodes\Notary\logs.
09:35:30.539 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
09:35:30.539 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
09:35:30.539 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --scan to get full insights.
09:35:30.539 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
09:35:30.539 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Exception is:
09:35:30.545 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':deployNodes'.
09:35:30.545 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:166)
09:35:30.545 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$3.accept(ExecuteActionsTaskExecuter.java:163)
09:35:30.545 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:191)
....
09:35:30.559 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
09:35:30.559 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
09:35:30.559 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
09:35:30.559 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
09:35:30.559 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
09:35:30.559 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
09:35:30.559 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
09:35:30.559 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)
09:35:30.560 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
09:35:30.560 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
09:35:30.560 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
......
09:35:30.561 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
09:35:30.561 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
09:35:30.561 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: org.gradle.api.InvalidUserDataException: Error while generating node info file. Please check the logs in C:\Users\iyyam\CordaR3\cordapp-template-java\build\nodes\Notary\logs.
but log file does not have any error . H2 database setup is completed successfully in log . No error in log .

Related

How to print maven's vmRun[N].dump to console?

mvn test failed due to an exception, but all the exception stacks are recorded in the dump file and cannot be seen directly on the console. Can all exceptions be output to the console?
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
[ERROR] There was an error in the forked process
[ERROR]
[ERROR] Cannot instantiate class abc
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: There was an error in the forked process
[ERROR]
[ERROR] Cannot instantiate class abc
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:665)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:533)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:279)
[ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:243)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1077)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:907)
[ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:785)
[ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
[ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
[ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
[ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
[ERROR]
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Quarkus OpenShift Deployment On Local Machine

I have a Quarkus application that I am trying to deploy to OpenShift on my local. The CodeReady Containers VM for OpenShift is already running.
I am new to this type of setup and still learning. After much research and trying out a lot of suggestions, I have hit a wall.
I am running this command
./mvnw clean package -Dquarkus.kubernetes.deploy=true
The application builds, and when it gets to the step about Applied: BuildConfig, I get the following error:
[INFO] [io.quarkus.container.image.s2i.deployment.S2iProcessor] Performing s2i binary build with jar on server: https://api.crc.testing:6443/ in namespace:audit-ms.
[INFO] [io.quarkus.container.image.s2i.deployment.S2iProcessor] Applied: ImageStream audit
[INFO] [io.quarkus.container.image.s2i.deployment.S2iProcessor] Found: ImageStream openjdk-11-rhel7 repository: registry.access.redhat.com/openjdk/openjdk-11-rhel7
[INFO] [io.quarkus.container.image.s2i.deployment.S2iProcessor] Applied: BuildConfig audit
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:30 min
[INFO] Finished at: 2020-09-12T14:51:09+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.7.3.Final:build (default) on project audit: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR] [error]: Build step io.quarkus.container.image.s2i.deployment.S2iProcessor#s2iBuildFromJar threw an exception: java.lang.RuntimeException: Execution of s2i build failed. See s2i output for more details
[ERROR] at io.quarkus.container.image.s2i.deployment.S2iProcessor.s2iException(S2iProcessor.java:383)
[ERROR] at io.quarkus.container.image.s2i.deployment.S2iProcessor.s2iBuild(S2iProcessor.java:327)
[ERROR] at io.quarkus.container.image.s2i.deployment.S2iProcessor.lambda$s2iBuild$10(S2iProcessor.java:301)
[ERROR] at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
[ERROR] at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
[ERROR] at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
[ERROR] at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1625)
[ERROR] at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
[ERROR] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
[ERROR] at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
[ERROR] at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
[ERROR] at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
[ERROR] at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
[ERROR] at io.quarkus.container.image.s2i.deployment.S2iProcessor.s2iBuild(S2iProcessor.java:301)
[ERROR] at io.quarkus.container.image.s2i.deployment.S2iProcessor.createContainerImage(S2iProcessor.java:252)
[ERROR] at io.quarkus.container.image.s2i.deployment.S2iProcessor.s2iBuildFromJar(S2iProcessor.java:183)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:564)
[ERROR] at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:932)
[ERROR] at io.quarkus.builder.BuildContext.run(BuildContext.java:277)
[ERROR] at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2046)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1578)
[ERROR] at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1452)
[ERROR] at java.base/java.lang.Thread.run(Thread.java:832)
[ERROR] at org.jboss.threads.JBossThread.run(JBossThread.java:479)
[ERROR] Caused by: io.dekorate.deps.kubernetes.client.KubernetesClientException: Can't instantiate binary build, due to error reading/writing stream. Can be caused if the output stream was closed by the server.
[ERROR] at io.dekorate.deps.kubernetes.client.KubernetesClientException.launderThrowable(KubernetesClientException.java:64)
[ERROR] at io.dekorate.deps.openshift.client.dsl.internal.BuildConfigOperationsImpl$1.writeTo(BuildConfigOperationsImpl.java:237)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:72)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
[ERROR] at io.dekorate.deps.okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
[ERROR] at io.dekorate.deps.okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:127)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
[ERROR] at io.dekorate.deps.kubernetes.client.utils.BackwardsCompatibilityInterceptor.intercept(BackwardsCompatibilityInterceptor.java:134)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
[ERROR] at io.dekorate.deps.kubernetes.client.utils.ImpersonatorInterceptor.intercept(ImpersonatorInterceptor.java:68)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
[ERROR] at io.dekorate.deps.openshift.client.internal.OpenShiftOAuthInterceptor.intercept(OpenShiftOAuthInterceptor.java:69)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
[ERROR] at io.dekorate.deps.okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:257)
[ERROR] at io.dekorate.deps.okhttp3.RealCall.execute(RealCall.java:93)
[ERROR] at io.dekorate.deps.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:469)
[ERROR] at io.dekorate.deps.kubernetes.client.dsl.base.OperationSupport.handleResponse(OperationSupport.java:448)
[ERROR] at io.dekorate.deps.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromInputStream(BuildConfigOperationsImpl.java:251)
[ERROR] at io.dekorate.deps.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromFile(BuildConfigOperationsImpl.java:208)
[ERROR] at io.dekorate.deps.openshift.client.dsl.internal.BuildConfigOperationsImpl.fromFile(BuildConfigOperationsImpl.java:65)
[ERROR] at io.quarkus.container.image.s2i.deployment.S2iProcessor.s2iBuild(S2iProcessor.java:319)
[ERROR] ... 26 more
[ERROR] Caused by: java.net.SocketException: Broken pipe
[ERROR] at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:420)
[ERROR] at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:440)
[ERROR] at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:826)
[ERROR] at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1052)
[ERROR] at java.base/sun.security.ssl.SSLSocketOutputRecord.deliver(SSLSocketOutputRecord.java:342)
[ERROR] at java.base/sun.security.ssl.SSLSocketImpl$AppOutputStream.write(SSLSocketImpl.java:1264)
[ERROR] at io.dekorate.deps.okio.Okio$1.write(Okio.java:79)
[ERROR] at io.dekorate.deps.okio.AsyncTimeout$1.write(AsyncTimeout.java:180)
[ERROR] at io.dekorate.deps.okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:179)
[ERROR] at io.dekorate.deps.okio.RealBufferedSink.write(RealBufferedSink.java:42)
[ERROR] at io.dekorate.deps.okhttp3.internal.http1.Http1Codec$FixedLengthSink.write(Http1Codec.java:295)
[ERROR] at io.dekorate.deps.okio.ForwardingSink.write(ForwardingSink.java:35)
[ERROR] at io.dekorate.deps.okhttp3.internal.http.CallServerInterceptor$CountingSink.write(CallServerInterceptor.java:149)
[ERROR] at io.dekorate.deps.okio.RealBufferedSink.emitCompleteSegments(RealBufferedSink.java:179)
[ERROR] at io.dekorate.deps.okio.RealBufferedSink.writeAll(RealBufferedSink.java:107)
[ERROR] at io.dekorate.deps.openshift.client.dsl.internal.BuildConfigOperationsImpl$1.writeTo(BuildConfigOperationsImpl.java:235)
[ERROR] ... 56 more
Please assist in what could be the error on deploying this application. I am probably missing a configuration.
My application.properties file looks like this:
quarkus.log.level= DEBUG
quarkus.mongodb.connection-string=mongodb://localhost:27017/audit
quarkus.mongodb.database=audit
quarkus.kubernetes-client.trust-certs=true
quarkus.s2i.base-jvm-image=registry.access.redhat.com/openjdk/openjdk-11-rhel7
quarkus.openshift.expose=true

How to patch java file with gradle?

I can't patch file with gradle. I try to use ant by always got an error:
Execution failed for task ':rbps-api:compileJava'.
> java.io.IOException: Cannot run program "patch" (in directory "C:\Users\IdeaProjects\cosmos\rbps-api"): CreateProcess error=2, The system cannot find the file specified
gradle debug:
11:31:46.535 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
11:31:46.536 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
11:31:46.536 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Where:
11:31:46.536 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Build file 'C:\Users\oleh.havryliv\IdeaProjects\cosmos\rbps-api\build.gradle' line: 56
11:31:46.536 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
11:31:46.536 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
11:31:46.537 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':rbps-api:assemble'.
11:31:46.537 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > java.io.IOException: Cannot run program "patch" (in directory "C:\Users\oleh.havryliv\IdeaProjects\cosmos\rbps-api"): CreateProcess error=2, The system cannot find the file specified
11:31:46.537 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
11:31:46.537 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
11:31:46.538 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --scan to get full insights.
11:31:46.538 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
11:31:46.538 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
11:31:46.538 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
11:31:46.539 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 5s
gradle.xml
apply plugin: 'java'
compileJava.doLast {
ant.patch(patchfile: "$rootDir\\rbps-api\\ResourceBundle.patch" , originalFile: "$rootDir\\rbps-api\\src\\main\\java\\com\\medtronic\\diabetes\\carelink\\rbps\\api\\resource\\ResourceBundle.java")
}
Files exist on these paths. What could be wrong? Maybe exist another approach?
As Jeff Holt has already mentioned in the comments: the patch Ant task ”requires patch to be on the execution path” (cf. Ant docs).

Failed to apply plugin [class 'io.spring.gradle.dependencymanagement.DependencyManagementPlugin']

I am very much a newbie in programming. so i need help to troubleshoot this error. Please excuse.
16:52:44.590 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
16:52:44.590 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:52:44.590 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Where:
16:52:44.590 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Build file '/opt/eventuate-examples-restaurant-management/restaurants-service/build.gradle' line: 4
16:52:44.590 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:52:44.590 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
16:52:44.590 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred evaluating project ':restaurants-service'.
16:52:44.590 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Failed to apply plugin [class 'io.spring.gradle.dependencymanagement.DependencyManagementPlugin']
16:52:44.590 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Could not create task of type 'DependencyManagementReportTask'.
16:52:44.591 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:52:44.591 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
16:52:44.591 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace.
16:52:44.591 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]
16:52:44.591 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org
16:52:44.591 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger]
16:52:44.591 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 2s
gradle version
------------------------------------------------------------
Gradle 3.4.1
------------------------------------------------------------
Build time: 2012-12-21 00:00:00 UTC
Revision: none
Groovy: 2.4.15
Ant: Apache Ant(TM) version 1.10.3 compiled on July 19 2018
JVM: 10.0.2 (Oracle Corporation 10.0.2+13-Ubuntu-1ubuntu0.18.04.3)
OS: Linux 4.15.0-1021-aws amd64
It seems to be related to the Spring Boot plugin version you are using. See some issues that could be related to your problem: https://issues.gradle.org/browse/GRADLE-3482 and https://github.com/spring-gradle-plugins/dependency-management-plugin/issues/87.
So you should upgrade your plugin version, and (if possible) upgrade Gradle version to latest ( 4.10 )
Current version of the plugin is 2.1.0.RELEASE
plugins {
id 'org.springframework.boot' version '2.1.0.RELEASE'
}

Spring XD dist task fails when building from a branch

gradlew dist -xtest -xjavadoc -xsetupui
When dist from master, build succeeds.
When running from branch, it fails.I did push the branch to my remote, but I am not sure why the gradle task should know about remote branches. I could run successfully with -xpullDocs
Seems something to do with "wikiBranch" property.
FAILURE: Build failed with an exception.
10:34:14.670 [ERROR] [org.gradle.BuildExceptionReporter]
10:34:14.670 [ERROR] [org.gradle.BuildExceptionReporter] * Where:
10:34:14.670 [ERROR] [org.gradle.BuildExceptionReporter] Script '/Users/{$ID}/spring-xd/gradle/build-docs.gradle' line: 58
10:34:14.670 [ERROR] [org.gradle.BuildExceptionReporter]
10:34:14.670 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong:
10:34:14.671 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for task ':pullDocs'.
10:34:14.671 [ERROR] [org.gradle.BuildExceptionReporter] > Error while switching to branch: origin/jms-transport. Cause: Ref origin/{branch} can not be resolved
10:34:14.672 [ERROR] [org.gradle.BuildExceptionReporter]
10:34:14.673 [ERROR] [org.gradle.BuildExceptionReporter] * Exception is:
10:34:14.674 [ERROR] [org.gradle.BuildExceptionReporter] org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':pullDocs'.
10:34:14.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69)
10:34:14.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46)
10:34:14.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)
10:34:14.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64)
10:34:14.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58)
10:34:14.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42)
10:34:14.674 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
10:34:14.675 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53)
10:34:14.675 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
10:34:14.675 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:289)
10:34:14.675 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)
10:34:14.675 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63)
10:34:14.675 [ERROR] [org.gradle.BuildExceptionReporter] at org.gradle.execution.taskgraph.AbstractTaskPlanExecutor$TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51)
Use -PwikiBranch=origin/master
At present, we maintain the documentation separately from the main sources. We found it initially helpful to use the GitHub wiki (with its editing capabilities) as the source for Spring XD's documentation. Github's wiki is a separate Git repo and cause some complexities.
With multiple active XD branches, we had to maintain multiple documentation branches as well.
Therefore, if you use a custom branch, you have to pass the -PwikiBranch parameter using Gradle, e.g.:
./gradlew dist -PwikiBranch=origin/master
For some more details, please also see:
https://github.com/spring-projects/spring-xd/blob/master/gradle/build-docs.gradle#L37

Resources