You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (Jira)" <ji...@apache.org> on 2020/05/31 09:14:00 UTC
[jira] [Commented] (MCOMPILER-418) NPE when --patch-module is used
in non-modular Project
[ https://issues.apache.org/jira/browse/MCOMPILER-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17120459#comment-17120459 ]
Robert Scholte commented on MCOMPILER-418:
------------------------------------------
The first question that comes to my mind: should we allow passing {{--patch-module}} as a separate argument? My first response would be 'no', as it looks more like a workaround than fixing the root cause.
> NPE when --patch-module is used in non-modular Project
> ------------------------------------------------------
>
> Key: MCOMPILER-418
> URL: https://issues.apache.org/jira/browse/MCOMPILER-418
> Project: Maven Compiler Plugin
> Issue Type: Bug
> Affects Versions: 3.8.1
> Reporter: Stanislav Spiridonov
> Priority: Major
>
> When "--patch-module" argument with reference to jar is added to the compiler, the plugin always throws NullPointerException.
>
> {noformat}
> Caused by: java.lang.NullPointerException
> at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute (AbstractCompilerMojo.java:1051)
> at org.apache.maven.plugin.compiler.CompilerMojo.execute (CompilerMojo.java:187)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) {noformat}
>
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)