I am not able to run the Grails 2.4.4 project directly from the "Run" button from IntelliJ IDEA Ultimate IDE.
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)
This is the build error I get.
Basically the i18n files mentioned above are the files that are not getting copied into the production folder
Resource compiler: Error: Couldn't copy [/project-path/grails-app/i18n/messages_de.properties] to [/out/production/project-name/messages_de.properties]
I am restarting the project every single time I make a small change in the project and it is as good as taking ages to build a single element API which can be done in 2 mins.
CodePudding user response:
I resolved the file copy issue with broadening the Compiler Resource Copy Restrictions.