Test project for java preprocessor
As you execute mvn clean package
you get pre-processed sources in the source jar.
Note:
jar-no-fork
should be used formaven-source-plugin
to avoid reexecution ofgenerate-sources
phase- Pre-processed sources are placed to custom
target/gen-src
folder, so IDEA does not warn you on "duplicate classes"