Bug 64967 - Add an Automatic-Module-Name attribute to the JARs' MANIFEST.MF
Summary: Add an Automatic-Module-Name attribute to the JARs' MANIFEST.MF
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: POI Overall (show other bugs)
Version: 4.1.2-FINAL
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-08 16:49 UTC by Marc Jakobi
Modified: 2020-12-10 12:56 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Jakobi 2020-12-08 16:49:42 UTC
As of version 4.1.2, the poi and poi-ooxml JARs (and possibly others) do not have an Automatic-Module-Name attribute in the MANIFEST.MF, making their use in modular Java 9+ applications unstable.

I suggest adding attributes using the reverse-DNS naming convention.
Comment 1 PJ Fanning 2020-12-08 17:15:11 UTC
This work is already under way (5.0.0 release)
Comment 2 Dominik Stadler 2020-12-10 12:56:26 UTC
This is fixed in 5.0.0 as far as I see. 

The following sample MANIFEST.MF file is currently produced as part of the release building

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.10.7
Created-By: 1.8.0_252-b09 (Oracle Corporation)
Multi-Release: true
Automatic-Module-Name: org.apache.poi.poi
Built-By: jenkins
Specification-Title: Apache POI
Specification-Version: 5.0.0-SNAPSHOT
Specification-Vendor: The Apache Software Foundation
Implementation-Title: Apache POI
Implementation-Version: 5.0.0-SNAPSHOT
Implementation-Vendor-Id: org.apache.poi
Implementation-Vendor: The Apache Software Foundation


Please reopen if this is still a problem with that version, you can test pre-builds via https://ci-builds.apache.org/job/POI/job/POI-DSL-1.8/