Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven resources compiler: Failed to copy xx to yy: Couldn't copy xx to yy [duplicate]

Getting the following error during build/rebuild in Intellij v.2022.2.3.

Maven resources compiler: Failed to copy 'absolute_path_to_module/src/test/test-resources/test-app-camel-settings.properties' to 'absolute_path_to_module/target/test-classes/.': Couldn't copy [absolute_path_to_module/src/test/test-resources/test-app-camel-settings.properties] to [absolute_path_to_module/target/test-classes/.]

Tried the following but still getting the same issue:

  • build and rebuild project/module
  • mvn clean install
  • invalidate caches and restart
  • reverted all project changes to last time it was working

Was working earlier, only made normal code changes

like image 861
user19717413 Avatar asked Oct 21 '25 01:10

user19717413


1 Answers

Solved it by deleting the old resources folder and creating a new one

like image 120
user19717413 Avatar answered Oct 24 '25 14:10

user19717413



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!