Details
-
Backlog Task
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
None
-
Small
Description
After a first mvn clean install, the second time, the build will fail as it will not be able to clear the Spark module.
Restarting the computer is required to clean afterwards. The created files seems to still be in use/open after first build.
Following error is displayed:
[INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 05:19 min [INFO] Finished at: 2021-10-20T16:27:37+02:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:3.1.0:clean (default-clean) on project component-runtime-testing-spark: Failed to clean project: Failed to delete C:\Github\component-runtime\component-runtime-testing\component-runtime-testing-spark\target\junit373944444951613854\spark\work\app-20211020153446-0000\0\test-classes_generated_108767220307200.jar -> [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 [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <args> -rf :component-runtime-testing-spark
Attaching logs from the build:
Build was done on Windows 10, using Powershell.