groovy IntelliJIdea Ultimate中的Grails 2.4.4项目生成和运行错误

o7jaxewo  于 2022-11-01  发布在  其他
关注(0)|答案(1)|浏览(167)

我无法直接从IntelliJ IDEA Ultimate IDE的“Run”按钮运行Grails 2.4.4项目。

Resource compiler: Error: Couldn't copy [/project-path/grails-app/i18n/messages_de.properties] to [/out/production/project-name/messages_de.properties]
java.io.IOException: Couldn't copy [/project-path/grails-app/i18n/messages_de.properties] to [/out/production/project-name/messages_de.properties]
    at com.intellij.openapi.util.io.FileUtil.performCopy(FileUtil.java:425)
    at com.intellij.openapi.util.io.FileUtil.copyContent(FileUtil.java:415)
    at org.jetbrains.jps.incremental.FSOperations.copy(FSOperations.java:476)
    at org.jetbrains.jps.incremental.resources.ResourcesBuilder.copyResource(ResourcesBuilder.java:122)
    at org.jetbrains.jps.incremental.resources.ResourcesBuilder.lambda$build$0(ResourcesBuilder.java:67)
    at org.jetbrains.jps.incremental.fs.BuildFSState.processFilesToRecompile(BuildFSState.java:375)
    at org.jetbrains.jps.incremental.IncProjectBuilder$6.processDirtyFiles(IncProjectBuilder.java:1257)
    at org.jetbrains.jps.incremental.resources.ResourcesBuilder.build(ResourcesBuilder.java:56)
    at org.jetbrains.jps.incremental.resources.ResourcesBuilder.build(ResourcesBuilder.java:27)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildTarget(IncProjectBuilder.java:1262)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:1162)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1299)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:1114)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:885)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:467)
    at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:197)
    at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:150)
    at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:348)
    at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:175)
    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:218)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)

这是我遇到的构建错误。

基本上,上面提到的i18n文件是不会被复制到生产文件夹中的文件

Resource compiler: Error: Couldn't copy [/project-path/grails-app/i18n/messages_de.properties] to [/out/production/project-name/messages_de.properties]

我重新启动项目,每次我做了一个小的变化,在项目中,这是一样好的时间来建立一个单一的元素API,可以在2分钟内完成。

2nbm6dog

2nbm6dog1#

我通过放宽编译器资源复制限制解决了文件复制问题。

相关问题