[
{
"MODID": "ms",
"name": "More Stuff",
"description": "This adds more items to minecraft",
"version": "${1.0}",
"mc_version": "${1.7.10}",
"url": "",
"updateUrl": "",
"authorList": ["Sean Blumenfeld"],
"credits": "Sean Blumenfeld",
"logoFile": "",
"screenshots": [],
"dependencies": []
}
]
当我在终端中运行sh gradlew build命令时,我得到了以下结果:
失败:构建失败,并出现异常。
出了什么问题: 任务':processResources'的执行失败。
无法将文件'/ Users / seanblumenfeld / Desktop / Java Review / mod / forge-1.7.10-10.13.4.1614-1.7.10-src / src / src / main / resources / mcmod.info'复制到'/ Users / seanblumenfeld / Desktop / Java评论/mod/forge-1.7.10-10.13.4.1614-1.7.10-src/build/resources/main/mcmod.info'。
尝试: 使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行,以获取更多日志输出。
我不知道这意味着什么或做错了什么。如果您能帮助我解决问题,我将不胜感激。
这是--stacktrace输出,如下所示:
出了什么问题: 任务':processResources'的执行失败。
无法将文件'/Users/seanblumenfeld/Desktop/JavaReview/mod/forge-1.7.10-10.13.4.1614-1.7.10-src/src/main/resources/mcmod.info'复制到'/ Users / seanblumenfeld / Desktop / JavaReview / mod / forge-1.7.10-10.13.4.1614-1.7.10-src / build / resources / main / mcmod.info'。
尝试: 使用--info或--debug选项运行,以获取更多日志输出。
例外是: org.gradle.api.tasks.TaskExecutionException:任务':processResources'的执行失败。 在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:69) 在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:46) 在org.gradle.api.internal.tasks.execution.PostExecutionAnalysisTaskExecuter.execute(PostExecutionAnalysisTaskExecuter.java:35)处 在org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:64) 在org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:58) 在org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:42) 在org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52) 在org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:53) 在org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43) 在org.gradle.api.internal.AbstractTask.executeWithoutThrowingTaskFailure(AbstractTask.java:296) 在org.gradle.execution.taskgraph.AbstractTaskPlanExecutor $ TaskExecutorWorker.executeTask(AbstractTaskPlanExecutor.java:79)处 在org.gradle.execution.taskgraph.AbstractTaskPlanExecutor $ TaskExecutorWorker.processTask(AbstractTaskPlanExecutor.java:63) 在org.gradle.execution.taskgraph.AbstractTaskPlanExecutor $ TaskExecutorWorker.run(AbstractTaskPlanExecutor.java:51) 在org.gradle.execution.taskgraph.DefaultTaskPlanExecutor.process(DefaultTaskPlanExecutor.java:23) 在org.gradle.execution.taskgraph.DefaultTaskGraphExecuter.execute(DefaultTaskGraphExecuter.java:86)处 在org.gradle.execution.SelectedTaskExecutionAction.execute(SelectedTaskExecutionAction.java:29) 在org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) 在org.gradle.execution.DefaultBuildExecuter.access $ 200(DefaultBuildExecuter.java:23) 在org.gradle.execution.DefaultBuildExecuter $ 2.proceed(DefaultBuildExecuter.java:67) 在org.gradle.execution.DryRunBuildExecutionAction.execute(DryRunBuildExecutionAction.java:32) 在org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:61) 在org.gradle.execution.DefaultBuildExecuter.execute(DefaultBuildExecuter.java:54) 在org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:148) 在org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:105) 在org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:85) 在org.gradle.launcher.exec.InProcessBuildActionExecuter $ DefaultBuildController.run(InProcessBuildActionExecuter.java:81) 在org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:33) 在org.gradle.launcher.cli.ExecuteBuildAction.run(ExecuteBuildAction.java:24) 在org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:39) 在org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:29) 在org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:50) 在org.gradle.internal.Actions $ RunnableActionAdapter.execute(Actions.java:171) 在org.gradle.launcher.cli.CommandLineActionFactory $ ParseAndBuildAction.execute(CommandLineActionFactory.java:237) 在org.gradle.launcher.cli.CommandLineActionFactory $ ParseAndBuildAction.execute(CommandLineActionFactory.java:210) 在org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:35) 在org.gradle.launcher.cli.JavaRuntimeValidationAction.execute(JavaRuntimeValidationAction.java:24) 在org.gradle.launcher.cli.CommandLineActionFactory $ WithLogging.execute(CommandLineActionFactory.java:206) 在org.gradle.launcher.cli.CommandLineActionFactory $ WithLogging.execute(CommandLineActionFactory.java:169) 在org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:33) 在org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:22) 在org.gradle.launcher.Main.doAction(Main.java:33) 在org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45) 在org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:54) 在org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:35) 在org.gradle.launcher.GradleMain.main(GradleMain.java:23) 在org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30) 在org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:127) 在org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56) 引起原因:org.gradle.api.GradleException:无法复制文件'/Users/seanblumenfeld/Desktop/JavaReview/mod/forge-1.7.10-10.13.4.1614-1.7.10-src/src/main/resources/mcmod .info”到“ /Users/seanblumenfeld/Desktop/JavaReview/mod/forge-1.7.10-10.13.4.1614-1.7.10-src/build/resources/main/mcmod.info”。 在org.gradle.api.internal.file.AbstractFileTreeElement.copyTo(AbstractFileTreeElement.java:79) 在org.gradle.api.internal.file.copy.DefaultFileCopyDetails.copyTo(DefaultFileCopyDetails.java:102) 在org.gradle.api.internal.file.copy.FileCopyAction $ FileCopyDetailsInternalAction.processFile(FileCopyAction.java:44) 在org.gradle.api.internal.file.copy.NormalizingCopyActionDecorator $ 1 $ 1.processFile(NormalizingCopyActionDecorator.java:65) 在org.gradle.api.internal.file.copy.DuplicateHandlingCopyActionDecorator $ 1 $ 1.processFile(DuplicateHandlingCopyActionDecorator.java:60) 在org.gradle.api.internal.file.copy.CopyFileVisitorImpl.processFile(CopyFileVisitorImpl.java:60) 在org.gradle.api.internal.file.copy.CopyFileVisitorImpl.visitFile(CopyFileVisitorImpl.java:44) 在org.gradle.api.internal.file.collections.DirectoryFileTree.walkDir(DirectoryFileTree.java:157) 在org.gradle.api.internal.file.collections.DirectoryFileTree.visitFrom(DirectoryFileTree.java:125) 在org.gradle.api.internal.file.collections.DirectoryFileTree.visit(DirectoryFileTree.java:115) 在org.gradle.api.internal.file.collections.FileTreeAdapter.visit(FileTreeAdapter.java:96) 在org.gradle.api.internal.file.CompositeFileTree.visit(CompositeFileTree.java:54) 在org.gradle.api.internal.file.copy.CopySpecActionImpl.execute(CopySpecActionImpl.java:37) 在org.gradle.api.internal.file.copy.CopySpecActionImpl.execute(CopySpecActionImpl.java:24) 在org.gradle.api.internal.file.copy.DefaultCopySpec $ DefaultCopySpecResolver.walk(DefaultCopySpec.java:498) 在org.gradle.api.internal.file.copy.DefaultCopySpec $ DefaultCopySpecResolver.walk(DefaultCopySpec.java:500) 在org.gradle.api.internal.file.copy.DefaultCopySpec $ DefaultCopySpecResolver.walk(DefaultCopySpec.java:500) 在org.gradle.api.internal.file.copy.DefaultCopySpec.walk(DefaultCopySpec.java:322) 在org.gradle.api.internal.file.copy.DelegatingCopySpecInternal.walk(DelegatingCopySpecInternal.java:206) 在org.gradle.api.internal.file.copy.CopySpecBackedCopyActionProcessingStream.process(CopySpecBackedCopyActionProcessingStream.java:36) 在org.gradle.api.internal.file.copy.DuplicateHandlingCopyActionDecorator $ 1.process(DuplicateHandlingCopyActionDecorator.java:44) 在org.gradle.api.internal.file.copy.NormalizingCopyActionDecorator $ 1.process(NormalizingCopyActionDecorator.java:56) 在org.gradle.api.internal.file.copy.FileCopyAction.execute(FileCopyAction.java:35) 在org.gradle.api.internal.file.copy.NormalizingCopyActionDecorator.execute(NormalizingCopyActionDecorator.java:52)处 在org.gradle.api.internal.file.copy.DuplicateHandlingCopyActionDecorator.execute(DuplicateHandlingCopyActionDecorator.java:42) 在org.gradle.api.internal.file.copy.CopyActionExecuter.execute(CopyActionExecuter.java:38) 在org.gradle.api.tasks.AbstractCopyTask.copy(AbstractCopyTask.java:83) 在org.gradle.language.jvm.tasks.ProcessResources.copy(ProcessResources.java:33) 在org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:63) 在org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory $ StandardTaskAction.doExecute(AnnotationProcessingTaskFactory.java:218) 在org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory $ StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:211) 在org.gradle.api.internal.project.taskfactory.AnnotationProcessingTaskFactory $ StandardTaskAction.execute(AnnotationProcessingTaskFactory.java:200)处 在org.gradle.api.internal.AbstractTask $ TaskActionWrapper.execute(AbstractTask.java:570) 在org.gradle.api.internal.AbstractTask $ TaskActionWrapper.execute(AbstractTask.java:553) 在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:80) 在org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:61) ...更多47 引起原因:groovy.lang.GroovyRuntimeException:无法解析模板脚本(您的模板可能包含错误或试图使用当前不支持的表达式):启动失败: SimpleTemplateScript1.groovy:7:意外令牌:10 @第7行,第27列。 \“ mc_version \”:\“ $ {1.7.10} \”, ^
1个错误
at org.gradle.api.internal.file.copy.FilterChain$3.transform(FilterChain.java:90)
at org.gradle.api.internal.file.copy.FilterChain$3.transform(FilterChain.java:84)
at org.gradle.api.internal.ChainingTransformer.transform(ChainingTransformer.java:37)
at org.gradle.api.internal.file.copy.FilterChain.transform(FilterChain.java:39)
at org.gradle.api.internal.file.copy.FilterChain.transform(FilterChain.java:46)
at org.gradle.api.internal.file.copy.DefaultFileCopyDetails.open(DefaultFileCopyDetails.java:86)
at org.gradle.api.internal.file.AbstractFileTreeElement.copyTo(AbstractFileTreeElement.java:56)
at org.gradle.api.internal.file.copy.DefaultFileCopyDetails.copyTo(DefaultFileCopyDetails.java:94)
at org.gradle.api.internal.file.AbstractFileTreeElement.copyFile(AbstractFileTreeElement.java:93)
at org.gradle.api.internal.file.AbstractFileTreeElement.copyTo(AbstractFileTreeElement.java:74)
... 82 more
建立失败
总时间:4.389秒
答案 0 :(得分:0)
查看堆栈跟踪的这一行:
原因:groovy.lang.GroovyRuntimeException:无法解析模板脚本(您的模板可能包含错误或试图使用当前不支持的表达式):启动失败:SimpleTemplateScript1.groovy:7:意外令牌:10 @行7,第27列。\“ mc_version \”:\“ $ {1.7.10} \”,^
它指定无法解析mc_version
中的mcmod.info
行。如果您查看forge docs,将看到变量的名称是mcversion
,而不是mc_version
。希望更改变量名称可以解决该错误。