Working with post-processed classes


I am working with JDO, and I wonder how I should organize my directories to have my JUnit tests working.

IDEA output path (target/classes) is for transient classes. I use Maven to enhance classes in another output path (target/enhances/classes).

The problem is that for IDEA, classes reside in target/classes. It knows nothing about target/enhances/classes. But for unit tests, enhanced classes must be used.

I have the feeling that IDEA is simply not designed for such use case, and that I must run unit tests using Maven.

This raises another issue: lack of Maven integration. I know of the Maven plugin, but I wish something more official would exist.


Please sign in to leave a comment.