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/04/17 07:54:00 UTC

[jira] [Commented] (MCOMPILER-412) Support --process-module-path

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

Robert Scholte commented on MCOMPILER-412:
------------------------------------------

I expect this will work exactly the same as for the classpath/modulepath: feed all jars of the annotationProcessorPaths together with the module-info to the locationManager and it'll split up the jars into groups that belong either to the {{-processorPath}} or {{--processor-module-path}}.

> Support --process-module-path
> -----------------------------
>
>                 Key: MCOMPILER-412
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-412
>             Project: Maven Compiler Plugin
>          Issue Type: Improvement
>    Affects Versions: 3.8.0, 3.8.1
>            Reporter: remi forax
>            Priority: Major
>
> {quote}
> In the modular world, javac will look for annotation processor in the module-path (only if the annotation processor module is required by the module-info, you can use "required static" or uses with the service) and javac will also look to the --processor-module-path with again a nice separation because the source code doesn't see the module inside the module.
> Everything works cleanly if there is no module-info.java, if you have a module-info.java, you have two cases
>  1) your annotation processor is itself a module, if you do a requires on it, Maven will put it in the module-path, so it will work (but there is no nice separation provided by --processor-module-path)
>  2) your annotation processor is not a module, you can do a require on it but Maven will not put it on the module-path because it's not a module, so you have to use the <processor-path> of the Maven compiler plugin
> {quote}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)