You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2023/04/25 07:33:00 UTC

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

    [ https://issues.apache.org/jira/browse/MCOMPILER-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17716139#comment-17716139 ] 

Michael Osipov commented on MCOMPILER-535:
------------------------------------------

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

> jmps.args should be removed from the target/classes/META-INF directory
> ----------------------------------------------------------------------
>
>                 Key: MCOMPILER-535
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-535
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.11.0
>            Reporter: zosrothko
>            Priority: Major
>
> Hello
> When compiling for Java 11 and using --add-exports flag as show below
> {code:java}
> <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>
> {code}
> 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
> {code:java}
> --add-exports
> java.desktop/java.awt.dnd.peer=ALL-UNNAMED
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)