Fix Maven wrapper support for snapshot distributions by gnodet · Pull Request #335 · apache/maven-wrapper (original) (raw)

slawekjaranowski

slawekjaranowski

slawekjaranowski

@gnodet

The Maven wrapper scripts (only-mvnw and only-mvnw.cmd) previously failed when using snapshot distributions because they assumed the directory name inside the ZIP file would match the filename pattern. However, for snapshots:

This mismatch caused the script to fail when trying to access the extracted directory.

Changes:

The fix maintains backward compatibility with regular releases while enabling support for Maven snapshot distributions.

Fixes: apache/maven#10894 (comment)

@gnodet

@gnodet gnodet deleted the fix-snapshot-distribution-support branch

July 22, 2025 05:44

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})