I have a folder of java sources which I wish to exclude from the compilation.
My folder is under qa/apitests/src/main/java/api/test/omi.
qa/apitests/src/main/java/api/test/omi
I added
The top voted answer works fine but it doesn't allow forcing the exclusion when the excluded class/classes is/are being used by not-excluded ones.
Workaround using maven-antrun-plugin:
maven-antrun-plugin
org.apache.maven.plugins maven-antrun-plugin 1.8 process-classes run