talios/clojure-maven-plugin — pull request #76 by biiwide (2014-01-31 04:14:38+00:00)
Title: Added temporaryTestOutputDirectory parameter

I like to AOT compile one of my larger projects, both main and test, to catch any compiler issues, and the temporaryOutputDirectory flag has almost been the answer for keeping the statically generated class files out of Eclipse's classpath. Unfortunately, the clojure:test-compile goal does not use this flag, and leaves class files in target/test-classes, which Eclipse also sees, so I still run into cases of statically loaded class files trumping the dynamically compiled code in my REPL. To fix my own problem in a non-disruptive fashion, I've added a temporaryTestOutputDirectory parameter to TestClojureCompilerMojo, and moved the logic for creating temporary directories up to AbstractClojureCompilerMojo so that it's more readily available to both of the *ClojureCompiler Mojos.