javac-compiler-plugin

Maven: How to specify Javac plugin argument with maven-compiler-plugin?

北城以北 提交于 2019-12-21 06:18:36
问题 Javac provides the following nonstandard option (from "javac -X" command line help): -Xplugin:"name args" Name and optional arguments for a plug-in to be run However, Maven does not handle that format. For example, the following does not work: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerArgs> <arg>-Xplugin:"Manifold static"</arg> </compilerArgs> </configuration> </plugin> I've tried several different variations

Maven: How to specify Javac plugin argument with maven-compiler-plugin?

半腔热情 提交于 2019-12-03 17:31:17
Javac provides the following nonstandard option (from "javac -X" command line help): -Xplugin:"name args" Name and optional arguments for a plug-in to be run However, Maven does not handle that format. For example, the following does not work: <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerArgs> <arg>-Xplugin:"Manifold static"</arg> </compilerArgs> </configuration> </plugin> I've tried several different variations and tried replacing the space with '=', still no bueno. Is there a workaround? Note I am using the