Uploaded image for project: 'Commons CSV'
  1. Commons CSV
  2. CSV-292

No Automatic-Module-Name prevents usage in JPMS projects without repacking the JAR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8, 1.9.0
    • 1.10.0
    • Build
    • None
    • JPMS application

    Description

      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:

      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
      

      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.

      Attachments

        Issue Links

          Activity

            People

              kinow Bruno P. Kinoshita
              rvesse Rob Vesse
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m