maven-compiler-plugin icon indicating copy to clipboard operation
maven-compiler-plugin copied to clipboard

[MCOMPILER-535] jmps.args should be removed from the target/classes/META-INF directory

Open jira-importer opened this issue 2 years ago • 1 comments

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

jira-importer avatar Apr 25 '23 07:04 jira-importer

Michael Osipov commented

I wonder why this is placed there at all...

jira-importer avatar Apr 25 '23 07:04 jira-importer