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
Adding an exclude as the other answers suggested worked for me, except the path shouldn't include "src/main/java":
org.apache.maven.plugins maven-compiler-plugin com/filosync/store/StoreMain.java