danthe1st opened a new issue, #14217: URL: https://github.com/apache/maven/issues/14217
### Affected version Apache Maven 4.0.0-rc-7 (6d8f301b38af7399b36b862969d520974944f0b9) ### Bug description ## Actual result When I run `mvn org.apache.maven.plugins:maven-archetype-plugin:3.4.1:generate`, it shows the list of archetypes followed by a line like: ``` Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 2434: ``` When I press Enter, I would expect it to choose the default value (in this case `2434`). However, it still waits for any value (it wants me to enter a number before pressing Enter). ``` Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 2434: 2434 Choose org.apache.maven.archetypes:maven-archetype-quickstart version: 1: 1.0-alpha-1 2: 1.0-alpha-2 3: 1.0-alpha-3 4: 1.0-alpha-4 5: 1.0 6: 1.1 7: 1.3 8: 1.4 9: 1.5 Choose a number: 9: ``` When I enter a value, the same issue happens with other prompts. ## Expected result I would like it to continue with the next prompt: ``` Choose a number or apply filter (format: [groupId:]artifactId, case sensitive contains): 2434: Choose org.apache.maven.archetypes:maven-archetype-quickstart version: 1: 1.0-alpha-1 2: 1.0-alpha-2 3: 1.0-alpha-3 4: 1.0-alpha-4 5: 1.0 6: 1.1 7: 1.3 8: 1.4 9: 1.5 Choose a number: 9: ``` This works in `Apache Maven 4.0.0-rc-3 (3952d00ce65df6753b63a51e86b1f626c55a8df2)` but is broken since `Apache Maven 4.0.0-rc-4 (bed0f8174bf728978f86fac533aa38a9511f3872)`. As far as I can see, the archetype plugin just [calls `Prompter#prompt`](https://github.com/apache/maven-archetype/blob/473725b0be8ee293017e874568d25009e5af2134/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/ui/generation/DefaultArchetypeGenerationQueryer.java#L74) which is defined [here](https://github.com/apache/maven/blob/7a362a7f5c771def6e4c0d714358ac8a8b4bc44a/api/maven-api-core/src/main/java/org/apache/maven/api/services/Prompter.java#L55-L58). -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
