{"record":{"id":"18937fe63b85958f","repo":"JetBrains/intellij-community","slug":"build-manager-launch-build-process-failed-to-copy","errorCode":"build.manager.launch.build.process.failed.to.copy.external.project.configuration","errorMessage":"Failed to copy external project configuration","messagePattern":"Failed to copy external project configuration","errorType":"exception","errorClass":"ExecutionException","httpStatus":null,"severity":"error","filePath":"java/compiler/impl/src/com/intellij/compiler/server/BuildManager.java","lineNumber":1539,"sourceCode":"    if (requestProjectPreload) {\n      cmdLine.addPathParameter(\"-Dpreload.project.path=\", FileUtil.toCanonicalPath(getProjectPath(project)));\n      cmdLine.addPathParameter(\"-Dpreload.config.path=\", FileUtil.toCanonicalPath(PathManager.getOptionsPath()));\n    }\n\n    if (ProjectUtilCore.isExternalStorageEnabled(project)) {\n      var externalProjectConfig = ProjectUtil.getExternalConfigurationDir(project);\n      if (!localProject) {\n        try {\n          cmdLine.addPathParameter(\n            \"-D\" + GlobalOptions.EXTERNAL_PROJECT_CONFIG + '=',\n            cmdLine.syncProjectSpecificPathWithTarget(project, externalProjectConfig)\n          );\n        }\n        catch (NoSuchFileException ignored) {\n          // No external project cache -- no copy of external project cache.\n        }\n        catch (FileSystemException err) {\n          throw new ExecutionException(\n            JavaCompilerBundle.message(\"build.manager.launch.build.process.failed.to.copy.external.project.configuration\"), err);\n        }\n      }\n      else {\n        var pathToExternalStorage = externalProjectConfig.toString();\n        cmdLine.addPathParameter(\"-D\" + GlobalOptions.EXTERNAL_PROJECT_CONFIG + '=', pathToExternalStorage);\n      }\n    }\n\n    cmdLine.addParameter(\"-D\" + GlobalOptions.COMPILE_PARALLEL_OPTION + '=' + projectConfig.isParallelCompilationEnabled());\n    if (projectConfig.isParallelCompilationEnabled()) {\n      if (!Registry.is(\"compiler.automake.allow.parallel\", true)) {\n        cmdLine.addParameter(\"-D\" + GlobalOptions.ALLOW_PARALLEL_AUTOMAKE_OPTION + \"=false\");\n      }\n    }\n    cmdLine.addParameter(\"-D\" + GlobalOptions.REBUILD_ON_DEPENDENCY_CHANGE_OPTION + '=' + config.REBUILD_ON_DEPENDENCY_CHANGE);\n    cmdLine.addParameter(\"-Didea.IntToIntBtree.page.size=32768\");\n","sourceCodeStart":1521,"sourceCodeEnd":1557,"githubUrl":"https://github.com/JetBrains/intellij-community/blob/be881553f2a76ac8b4ea53950d93f0de78295c19/java/compiler/impl/src/com/intellij/compiler/server/BuildManager.java#L1521-L1557","documentation":"Error \"Failed to copy external project configuration\" thrown in JetBrains/intellij-community.","triggerScenarios":"BuildManager fails to copy the external project's configuration files into the build system working directory.","commonSituations":"File permission problems, antivirus locks, or a corrupted external system config directory under the project system directory.","solutions":["Check that the external system (Maven/Gradle) project configuration directory is readable and the build working directory is writable.","Re-sync the external project and retry the build; check the IDE log for the underlying I/O exception."],"exampleFix":"Gradle tool window -> Reload All Gradle Projects, then Build | Build Project again.","handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"be881553f2a76ac8b4ea53950d93f0de78295c19","analyzedAt":"2026-08-14T14:13:06.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}