The exclude statements seem to work fine for Fedora 23, but do not work for Fedora 24+. The working maven-compiler-plugin rpm is: maven-compiler-plugin-3.3-2.fc23.noarch Not working: maven-compiler-plugin-3.5.1-1.fc24.noarch See the results of build in copr: https://copr.fedorainfracloud.org/coprs/g/db-sig/pgjdbc-migrate-to-maven/build/173968/
Exclusions work in normal directories. The problem occurs, because you put (via the jcp plugin) the sources into generated-sources/annotations, where compiler plugin doesn't expect external inputs. We'll discuss how you problem should be solved and let you know.
(In reply to Michael Simacek from comment #1) > Exclusions work in normal directories. The problem occurs, because you put > (via the jcp plugin) the sources into generated-sources/annotations, where > compiler plugin doesn't expect external inputs. We'll discuss how you > problem should be solved and let you know. Is the changing of the directory to generated-sources/annotations unsupported? This should thus be reported to java-comment-preprocessor?
Putting additional sources into generated-sources/annotations and then excluding them doesn't seem to be supported by maven-compiler-plugin. We discussed this with Pavel and agreed on different solution for the particular package.