elharo commented on issue #526:
URL:
https://github.com/apache/maven-war-plugin/issues/526#issuecomment-5084931479
The underlying `plexus-archiver` already possesses a
`setRecompressAddedZips(boolean)` method designed specifically to prevent the
redundant compression of archive files.
The `maven-war-plugin` can expose this as a direct configuration parameter.
By setting this to `false`, the plugin would instruct the archiver to use the
`STORED` method for any file it identifies as a ZIP-based archive (including
`.jar` files).
```xml
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.4.0</version>
<configuration>
<!-- Instructs the archiver to use STORED for nested archives -->
<recompressZippedFiles>false</recompressZippedFiles>
</configuration>
</plugin>
```
Backward compatibility is maintained by defaulting the parameter to `true`.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]