Might not be lein but I suspect it is.
Wondering why my build target dirs keep reappearing after I delete them.
Background processes?
lein indeed does that, iirc javac or something else is automatically ran as a "prep task" and that's where target-dirs comes from
there is also default profile that sets dev-resources as part of the resource path, among other things