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
If you want to exclude the java sources from compiling, then mention them in the Maven Compiler Plugin definition
org.apache.maven.plugins maven-compiler-plugin 2.0.2 src/main/java/api/test/omi/*.java
The resources plugin only defines what all resources to bundle in your final artifact.