jira-importer commented on issue #264: URL: https://github.com/apache/maven-jlink-plugin/issues/264#issuecomment-2629101451
**[Gili](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=cowwoc)** commented [Karl Heinz Marbaise](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=khmarbaise) Per https://stackoverflow.com/a/46573805/14731 no single directory may contain two elements that export the same module (because iteration order of a directory is undefined) but two separate elements on the modulepath (whose ordering is explicit) are allowed to export the same name. My understanding is that when importing a module, the first element exporting that name gets used. Further, if you test this outside of Maven (using `javac` and `java`) tools, they work just fine with modulepath-style shadowing. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org