You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "jira-importer (via GitHub)" <gi...@apache.org> on 2025/02/02 11:48:57 UTC
[I] [MJLINK-77] Update description and parameters of --compress to reflect JDK21 changes [maven-jlink-plugin]
jira-importer opened a new issue, #315:
URL: https://github.com/apache/maven-jlink-plugin/issues/315
**[Benjamin Marwell](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mampf86)** opened **[MJLINK-77](https://issues.apache.org/jira/browse/MJLINK-77?redirect=false)** and commented
Starting from Java 21, the allowed parameters for `compress` have changed, and the old ones are suspect to removal:
```java
$ jlink --help
[…]
--compress <compress> Compression to use in compressing resources:
Accepted values are:
zip-[0-9], where zip-0 provides no compression,
and zip-9 provides the best compression.
Default is zip-6.
Deprecated values to be removed in a future release:
0: No compression. Equivalent to zip-0.
1: Constant String Sharing
2: Equivalent to zip-6.
```
Thus, the current jlink-plugin is incompatible with Java 21:
```java
/**
* Here you can define the compression of the resources being used. The command line equivalent is:
* <code>-c, --compress=level></code>. The valid values for the level are: <code>0, 1, 2</code>.
*/
@Parameter
private Integer compress;
```
---
**Remote Links:**
- [GitHub Pull Request #181
](https://github.com/apache/maven-jlink-plugin/pull/181)
- [GitHub Pull Request #183
](https://github.com/apache/maven-jlink-plugin/pull/183)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org