[ 
https://issues.apache.org/jira/browse/MNG-8460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17907596#comment-17907596
 ] 

Tamas Cservenak commented on MNG-8460:
--------------------------------------

There is also a PR https://github.com/apache/maven/pull/2006 that makes things 
work, somewhat: {{mvn versions:set}} w/o params to use prompter produces this 
now:
{noformat}
[cstamas@angeleyes versions (master)]$ mvn -V  versions:set
Apache Maven 4.0.0-rc-3-SNAPSHOT (575ad3719c79b061c78d531ec9d29793f159c2ec)
Maven home: /home/cstamas/Tools/maven/apache-maven-4.0.0-rc-3-SNAPSHOT
Java version: 21.0.5, vendor: Eclipse Adoptium, runtime: 
/home/cstamas/.sdkman/candidates/java/21.0.5-tem
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "6.12.5-200.fc41.x86_64", arch: "amd64", family: 
"unix"
[INFO] 
[INFO] 1 problem was encountered while building the effective settings (use -e 
to see details)
[INFO] 
[INFO] Scanning for projects...
[INFO] 
--------------------------------------------------------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] Versions                                                                 
                                            [pom]
[INFO] Versions API                                                             
                                            [jar]
[INFO] Versions Model                                                           
                                            [jar]
[INFO] Versions Test                                                            
                                            [jar]
[INFO] Versions Common                                                          
                                            [jar]
[INFO] Versions Enforcer                                                        
                                            [jar]
[INFO] Versions Model Report                                                    
                                            [jar]
[INFO] Versions Maven Plugin                                                    
                                   [maven-plugin]
[INFO] 
[INFO] -----------------------------------------< 
org.codehaus.mojo.versions:versions >------------------------------------------
[INFO] Building Versions 2.18.1-SNAPSHOT                                        
                                            [1/8]
[INFO]   from pom.xml
[INFO] ---------------------------------------------------------[ pom 
]----------------------------------------------------------
[INFO] 
[INFO] --- versions:2.17.1:set (default-cli) @ versions ---
[INFO] [stdout] Enter the new version to set 2.18.1-SNAPSHOT: 

{noformat}

So prompt is visible now (input did work, it was just the prompt and the fact 
that Maven "wants something from user" that was the problem.

> All Prompter use seems busted
> -----------------------------
>
>                 Key: MNG-8460
>                 URL: https://issues.apache.org/jira/browse/MNG-8460
>             Project: Maven
>          Issue Type: Bug
>            Reporter: Tamas Cservenak
>            Priority: Blocker
>             Fix For: 4.0.0-rc-3
>
>
> With current master (575ad3719c79b061c78d531ec9d29793f159c2ec) seems all 
> prompter actions are defunct:
> * mvn release:prepare
> * mvn versions:set
> These all stalls forever (without any prompt/output) waiting for user 
> input... something is borked.
> Prompt is not shown, but input is picked up. Still, this is bad, as user have 
> no clue what the input should be.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to