[ https://issues.apache.org/jira/browse/MCOMPILER-464?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17347797#comment-17347797 ]
Naman Nigam commented on MCOMPILER-464: --------------------------------------- [~adrian.her...@gmail.com] It's easier said than done. Imagine what should the plugin decide as an alternate name to ensure it's both compatible with the JDK guidelines and also as closely related to the author's intent. The manipulation responsibility lies with the author of the artifacts, esp given the 'Automatic-Module-Name' capability with MANIFEST.MF. Besides, if the plugins would start doing it without author's taking a step at it. There could be certain circumstances of people ending up in chaos with various versions of artifacts resolved in a project. > Can't extract module name > ------------------------- > > Key: MCOMPILER-464 > URL: https://issues.apache.org/jira/browse/MCOMPILER-464 > Project: Maven Compiler Plugin > Issue Type: Bug > Affects Versions: 3.8.1 > Environment: N/R > Reporter: Adrian Herscu > Priority: Critical > > While trying to upgrade to JDK 11+ I am getting this :( > Also opened issue to one of module owners: > [https://github.com/mrwilson/java-8-matchers/issues/20] > (will add the rest here) > Just thinking that the "right" solution would be to allow overriding the > module name via the pom.xml – perhaps there is such an option? Maybe > something not documented yet? > {{[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) @ > my-module ---}} > {{[WARNING] Can't extract module name from json-path-assert-2.5.0.jar: > json.path.assert: Invalid module name: 'assert' is not a Java identifier}} > {{[WARNING] Can't extract module name from xalan-2.7.2.jar: Provider class > org.apache.bsf.BSFManager not in module}} > {{[WARNING] Can't extract module name from java-8-matchers-1.9.jar: > java.8.matchers: Invalid module name: '8' is not a Java identifier > [INFO] Changes detected - recompiling the module!}} > {{[INFO] ------------------------------------------------------------- > [ERROR] COMPILATION ERROR : > [INFO] -------------------------------------------------------------}} > {{[ERROR] module not found: org.openqa.selenium.core}} > {{[ERROR] module not found: httpcore}} > {{[ERROR] module not found: httpclient}} > {{[INFO] 3 errors }} -- This message was sent by Atlassian Jira (v8.3.4#803005)