Skip to content

[Maintenance]: Allow the JAR release to be run without --add-opens #5975

Description

@kwvanderlinde

Describe the problem

Most of the effort in running the JAR file comes from the several --add-opens options required to make JPMS happy. If users didn't have to do this, it would be a much more friendly option for running MapTool.

The improvement you'd like to see

I'm not sure which approach is most achievable, but something along the lines of one of these options:

  1. Change our release JAR to be modular. How this could interact with the shadow JAR I don't know. And maybe not all our dependencies will like to be in a modular build.
  2. Change the JAR main class to act as a shim, forking a separate process with the necessary --add-opens provided.

Expected Benefits

Users will be able to run our JAR without having to worry about the implementation detail of how modular we are.

Additional Context

No response

Metadata

Metadata

Assignees

Labels

code-maintenanceAdding/editing javadocs, unit tests, formatting.
No fields configured for Code Maintenance.

Projects

Status
In-Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions