maven-compiler-plugin
maven-compiler-plugin copied to clipboard
[MCOMPILER-535] jmps.args should be removed from the target/classes/META-INF directory
zosrothko opened MCOMPILER-535 and commented
Hello When compiling for Java 11 and using --add-exports flag as show below
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>
<arg>--add-exports</arg>
<arg>java.desktop/java.awt.dnd.peer=ALL-UNNAMED</arg>
</compilerArgs>
</configuration>
</plugin>
the maven-compiler-plugin is generating a file named jmps.args in the target/classes/META-INF directory. This file should removed after the compilation otherwise one gets multiple identical file name when used in a multimodule projects.
The jmps.args file contains
--add-exports
java.desktop/java.awt.dnd.peer=ALL-UNNAMED
Affects: 3.11.0