apache / apache/maven-wrapper

[MWRAPPER-78] Rewrite mvnw.cmd in PowerShell (mvnw.ps1)

Open
#264 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Java
Stars
254
Forks
78
Avg merge
5h 26m
Merged PRs (30d)
2

Description

**[Jorge Solórzano](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=jorsol)** opened **[MWRAPPER-78](https://issues.apache.org/jira/browse/MWRAPPER-78?redirect=false)** and commented

More and more features in the Batch script for Windows are requiring PowerShell, one feature is the web client to download the wrapper jar, and the next one will be the sha256sum feature.

Batch scripting is showing its age and even Microsoft doesn't really want to be used anymore, PowerShell 2.0 is integrated with Windows 7 and Windows Server 2008 R2, and is released for Windows XP with Service Pack 3, Windows Server 2003 with Service Pack 2, and Windows Vista with Service Pack 1, it would make sense to migrate the Batch script into PowerShell.

There is even a PowerShell Core version that could be installed on Linux, but I'm not sure about the compatibility with older versions of Windows PowerShell, one goal could be to make it compatible with Windows 7 and higher, but honestly, I'm not sure if we should be supporting an OS that out of support.

---

**Issue Links:**
- [MNG-7541](https://issues.apache.org/jira/browse/MNG-7541) Native support for PowerShell to start Maven

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by comparing the existing mvnw.cmd entry point with the proposed mvnw.ps1 script and review how the wrapper jar is downloaded. Clarify the supported Windows PowerShell versions and preserve the current wrapper behavior, including the web-client and future sha256sum requirements; the issue provides no test path.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, powershell
Domain
build-system
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.