Excluding package with maven-compiler-plugin works for one package but doesn't work for another
Ok, I found the reason why the exclusion doesn't work.
Because some java classes under the package which I tried to exclude have been used in other packages. Seems maven-compiler-plugin is smart to detect that.