You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "bonepl (via GitHub)" <gi...@apache.org> on 2023/07/03 11:18:54 UTC

[GitHub] [maven-mvnd] bonepl opened a new issue, #865: mvnd fails to run through powershell

bonepl opened a new issue, #865:
URL: https://github.com/apache/maven-mvnd/issues/865

   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 <plugin-prefix>:<goal> or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. 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)


-- 
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: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] ppalaga commented on issue #865: mvnd fails to run through powershell

Posted by "ppalaga (via GitHub)" <gi...@apache.org>.
ppalaga commented on issue #865:
URL: https://github.com/apache/maven-mvnd/issues/865#issuecomment-1618331949

   > mvnd stopped working
   
   Did it work (which mvnd version?) for you before?


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] bonepl closed issue #865: mvnd fails to run through powershell

Posted by "bonepl (via GitHub)" <gi...@apache.org>.
bonepl closed issue #865: mvnd fails to run through powershell
URL: https://github.com/apache/maven-mvnd/issues/865


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] ppalaga commented on issue #865: mvnd fails to run through powershell

Posted by "ppalaga (via GitHub)" <gi...@apache.org>.
ppalaga commented on issue #865:
URL: https://github.com/apache/maven-mvnd/issues/865#issuecomment-1618647893

   Not sure how escaping of `$foo` placeholders works in PowerShell, but do you happen to pass some special chars via some of those ? Would enclosing them in quotes `"$foo"` change anything?


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] bonepl commented on issue #865: mvnd fails to run through powershell

Posted by "bonepl (via GitHub)" <gi...@apache.org>.
bonepl commented on issue #865:
URL: https://github.com/apache/maven-mvnd/issues/865#issuecomment-1618410962

   As I have scripts that keep mvnd binaries up to date - hard to tell. I know that this probably won't be much helpful but definitely worked one year ago.


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] ppalaga commented on issue #865: mvnd fails to run through powershell

Posted by "ppalaga (via GitHub)" <gi...@apache.org>.
ppalaga commented on issue #865:
URL: https://github.com/apache/maven-mvnd/issues/865#issuecomment-1619924481

   > It looks like mvn just drops "" arguments but mvnd tries to parse them as phases.
   
   This is interesting. I think we'd be interested to behave in the same way as stock Maven. WDYT, @gnodet?


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] mvnd fails to run through powershell [maven-mvnd]

Posted by "slachiewicz (via GitHub)" <gi...@apache.org>.
slachiewicz closed issue #865: mvnd fails to run through powershell
URL: https://github.com/apache/maven-mvnd/issues/865


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] gnodet commented on issue #865: mvnd fails to run through powershell

Posted by "gnodet (via GitHub)" <gi...@apache.org>.
gnodet commented on issue #865:
URL: https://github.com/apache/maven-mvnd/issues/865#issuecomment-1621347790

   > > It looks like mvn just drops "" arguments but mvnd tries to parse them as phases.
   > 
   > This is interesting. I think we'd be interested to behave in the same way as stock Maven. WDYT, @gnodet?
   
   Definitely. 


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] bonepl commented on issue #865: mvnd fails to run through powershell

Posted by "bonepl (via GitHub)" <gi...@apache.org>.
bonepl commented on issue #865:
URL: https://github.com/apache/maven-mvnd/issues/865#issuecomment-1619885594

   okay, I debugged stuff more - something doesn't work between powershell and mvnd - some double quotes were passed "as is" to executable. It looks like mvn just drops `""` arguments but mvnd tries to parse them as phases.
   
   Thanks for feedback anyway.


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [maven-mvnd] bonepl commented on issue #865: mvnd fails to run through powershell

Posted by "bonepl (via GitHub)" <gi...@apache.org>.
bonepl commented on issue #865:
URL: https://github.com/apache/maven-mvnd/issues/865#issuecomment-1621271046

   I'm pasting powershell scripts that recreate this behaviour
   
   This works:
   ```
   $test_param = ""
   mvn clean $test_param
   ```
   
   This fails:
   ```
   $test_param = ""
   mvnd clean $test_param
   ```
   


-- 
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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org