apache / apache/maven-mvnd

mvnd fails to run through powershell

Open
#865 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
3.5k
Forks
250
Avg merge
16h 22m
Merged PRs (30d)
36

Description

Hi,
mvnd stopped working for my project as it throws
`[ERROR] Unknown lifecycle phase "". You must specify a valid lifecycle phase or a goal in the format : or :[:]:. Available lifecycle phases are: pre-clean, clean, post-clean, validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy, pre-site, site, post-site, site-deploy. -> [Help 1]`

when I'm trying to run it through my powershell script:

`& $mvn_executable install -DskipTests $profiles "-Dsource.skip=true" -nsu $verbose $threads "-Dmaven.javadoc.skip=true"`
where $mvn_executable is either mvn or mvnd

standalone mvn works fine from the script
mvnd command run from terminal works fine

mvn version: 3.9.3
mvnd version: 1.0-m6
powershell version: 7.3.4

any idea why it started to behave that way (it worked fine some time ago)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the failure from the reported PowerShell script using mvnd 1.0-m6, comparing it with the working mvn invocation and standalone mvnd command. Inspect how the script passes $profiles, $verbose, and $threads, and verify that the fix lets mvnd install complete with the same arguments.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, powershell
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.