You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Charles Oliver Nutter (JIRA)" <ji...@apache.org> on 2018/09/06 04:48:00 UTC

[jira] [Commented] (MCOMPILER-361) module-info in multi-release jar is not picked up by compile

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

Charles Oliver Nutter commented on MCOMPILER-361:
-------------------------------------------------

Here's verbose output for the "bytelist" project when I try to depend on a "jcodings" with module-info in the multi-release jar location. It appears that it does pass --release 9 but the module is still not detected.
{noformat}
[INFO] Changes detected - recompiling the module!

[DEBUG] Classpath:

[DEBUG]  /Users/headius/projects/bytelist/target/classes

[DEBUG]  /Users/headius/.m2/repository/org/jruby/jcodings/jcodings/1.0.32-SNAPSHOT/jcodings-1.0.32-SNAPSHOT.jar

[DEBUG] Source roots:

[DEBUG]  /Users/headius/projects/bytelist/src

[DEBUG]  /Users/headius/projects/bytelist/target/generated-sources/annotations

[DEBUG] Command line options:

[DEBUG] -d /Users/headius/projects/bytelist/target/classes -classpath /Users/headius/projects/bytelist/target/classes:/Users/headius/.m2/repository/org/jruby/jcodings/jcodings/1.0.32-SNAPSHOT/jcodings-1.0.32-SNAPSHOT.jar: -sourcepath /Users/headius/projects/bytelist/src:/Users/headius/projects/bytelist/target/generated-sources/annotations:/Users/headius/projects/bytelist/target/generated-sources/annotations: -s /Users/headius/projects/bytelist/target/generated-sources/annotations -g -nowarn --release 9 -encoding UTF-8

[DEBUG] incrementalBuildHelper#beforeRebuildExecution

[INFO] Compiling 1 source file to /Users/headius/projects/bytelist/target/classes

[DEBUG] incrementalBuildHelper#afterRebuildExecution

[INFO] -------------------------------------------------------------

[ERROR] COMPILATION ERROR :

[INFO] -------------------------------------------------------------

[ERROR] /Users/headius/projects/bytelist/src/module-info.java:[2,23] module not found: org.jruby.jcodings

[INFO] 1 error{noformat}

> module-info in multi-release jar is not picked up by compile
> ------------------------------------------------------------
>
>                 Key: MCOMPILER-361
>                 URL: https://issues.apache.org/jira/browse/MCOMPILER-361
>             Project: Maven Compiler Plugin
>          Issue Type: Bug
>    Affects Versions: 3.8.0
>            Reporter: Charles Oliver Nutter
>            Priority: Major
>
> I have struggled with this all day and come to the determination that the compiler plugin is *not* picking up module-info from dependency jars that put it in the multi-release jar location.
> If you reconfigure the dependency to build with module-info at jar root, the dependencies get picked up just fine.
> I've prepared a gist based on two projects I help maintain. org.jruby.jcodings:jcodings and org.jruby:bytelist.
> [https://gist.github.com/headius/30359f2bbd26852ef545fd54f6fef248]
> As you can see, with the jcodings module-info in the "release 9" multi-release jar location, the bytelist module-info is unable to see the exported module.
> This makes the multi-release jar feature largely useless for hiding the module-info, but putting it in the root of the jar affects any projects or libraries that can't understand it.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)