Skip to content

CommandLine can't execute commands in PowerShell #49

Closed as not planned
Closed as not planned

Description

@Riduidel

Seems like CommandLine on Windows always use cmd.exe, even on Windows 10 platforms.
However, on these platforms, PowerShell provides longer command(line, which is very useful for projects running java commands with full CLASSPATH in (take a look, as an example, to On Windows, command line may be too long)

Activity

  1. michael-o commented on Nov 21, 2018

    @michael-o
    Member

    The entire concept is illdesigned by invoking a shell instead of the processes directly. This needs to be changed as a whole.

  2. slachiewicz commented on Apr 17, 2025

    @slachiewicz
    Member

    see #37

  3. wilx commented on Aug 5, 2026

    @wilx

    Is this fixed by native PowerShell wrapper scripts apache/maven#12541?

  4. michael-o commented on Aug 5, 2026

    @michael-o
    Member

    Is this fixed by native PowerShell wrapper scripts apache/maven#12541?

    Completely unrelated

  5. slachiewicz commented on Aug 17, 2026

    @slachiewicz
    Member

    Closing as stale, and because the project is heading the other way.

    There has been no follow-up from the reporter since 2018, and the direction agreed on #110 is to stop wrapping commands in a shell at all rather than to add PowerShell alongside cmd.exe — see michael-o in #110 (comment). Adding a third shell would move against that.

    Callers that need PowerShell can set it as the executable and pass the command as arguments. If that turns out not to work on a current release, please open a fresh issue with a reproducer.

    This comment was created with AI assistance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions