commons-fileupload breaks modulepath
Author: raphwCreated Aug 18, 2026Updated Aug 18, 2026
Labelsbug
Proposal
commons-fileupload 1.6 adds a module-info class file which references retired module names such as the previous java.servlet API. That makes it impossible to use it as a module and one needs to downgrade to 1.5.
There is commons-fileupload2 which resolves this issue, but it creates a new namespace and needs updating.
The dependency is declared here:
Please consider updating to version 2 of the library.
Reproduction steps
Load WireMock on the Module Path with all dependencies.
References
No response
Source: wiremock/wiremock