You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Bruno P. Kinoshita (Jira)" <ji...@apache.org> on 2021/12/15 10:02:00 UTC

[jira] [Resolved] (CSV-292) No Automatic-Module-Name prevents usage in JPMS projects without repacking the JAR

     [ https://issues.apache.org/jira/browse/CSV-292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bruno P. Kinoshita resolved CSV-292.
------------------------------------
    Fix Version/s: 1.10.0
       Resolution: Fixed

> No Automatic-Module-Name prevents usage in JPMS projects without repacking the JAR
> ----------------------------------------------------------------------------------
>
>                 Key: CSV-292
>                 URL: https://issues.apache.org/jira/browse/CSV-292
>             Project: Commons CSV
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 1.8, 1.9.0
>         Environment: JPMS application
>            Reporter: Rob Vesse
>            Assignee: Bruno P. Kinoshita
>            Priority: Major
>             Fix For: 1.10.0
>
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> Currently the Commons CSV release JAR does not include an {{Automatic-Module-Name}} meaning it cannot be used in JPMS based projects, any attempt to do so results in errors like the following:
> {noformat}
> Error occurred during initialization of boot layer
> java.lang.module.FindException: Module org.apache.commons.csv not found, required by com.github.rvesse.airline.examples
> {noformat}
> Whereas other Commons modules e.g. Lang, do have {{Automatic-Module-Name}} present and can be used in a JPMS based project.
> Digging into the {{pom.xml}} it looks like the difference between the two modules is that Lang adds JAR plugin configuration to add the {{Automatic-Module-Name}} whereas CSV does not.  Copying the configuration across between the modules should be sufficient to resolve this issue.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)