jira-importer opened a new issue, #466:
URL: https://github.com/apache/maven-jlink-plugin/issues/466

   **[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&gt;</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-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to