In javac I can add compile time plugin as follows:
javac -cp plugin/test/target/test-1.0.0-SNAPSHOT-jar-with-dependencies.jar -Xplugin:TestPlugin A.java
How can I achieve the same effect in maven?
I think the Pass Compiler Arguments
is what you are searching for. See http://maven.apache.org/plugins/maven-compiler-plugin/examples/pass-compiler-arguments.html
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.