Sergey Mashkov created MNG-8618: ----------------------------------- Summary: mvnenc init crashes Key: MNG-8618 URL: https://issues.apache.org/jira/browse/MNG-8618 Project: Maven Issue Type: Bug Affects Versions: 4.0.0-rc-2 Reporter: Sergey Mashkov Attachments: image-2025-03-06-19-34-42-478.png
mvnenc init is trying to configure encryption, it opens menu and asks to select the dispatcher, I choose "Master Password Dispatcher", press enter and then it crashes {noformat} Apache Maven 4.0.0-rc-2 (273314404f85ec3c089e295d8b4e0cb18c287cf5) Maven home: /home/cy6ergn0m/.sdkman/candidates/maven/4.0.0-rc-2 Java version: 23.0.2, vendor: Azul Systems, Inc., runtime: /home/cy6ergn0m/.sdkman/candidates/java/23.0.2-zulu Default locale: ru_RU, platform encoding: UTF-8 OS name: "linux", version: "6.4.0-150600.23.38-default", arch: "amd64", family: "unix" Command line: /home/cy6ergn0m/.sdkman/candidates/java/23.0.2-zulu/bin/java --enable-native-access=ALL-UNNAMED -classpath /home/cy6ergn0m/.sdkman/candidates/maven/4.0.0-rc-2/boot/plexus-classworlds-2.8.0.jar -Dclassworlds.conf=/home/cy6ergn0m/.sdkman/candidates/maven/4.0.0-rc-2/bin/m2.conf -Dmaven.home=/home/cy6ergn0m/.sdkman/candidates/maven/4.0.0-rc-2 -Dmaven.mainClass=org.apache.maven.cling.MavenEncCling -Dlibrary.jline.path=/home/cy6ergn0m/.sdkman/candidates/maven/4.0.0-rc-2/lib/jline-native -Dmaven.multiModuleProjectDirectory=/home/cy6ergn0m/projects/word5-native org.codehaus.plexus.classworlds.launcher.Launcher --enc init --verbose Terminal: PosixSysTerminal (type=xterm-256color, provider=ffm, pty=org.jline.terminal.impl.ffm.FfmNativePty) [INFO] Error stacktraces are turned on. [DEBUG] Message scheme: color [DEBUG] Message styles: trace debug info warning error success failure strong mojo project [DEBUG] Reading installation settings from '/home/cy6ergn0m/.sdkman/candidates/maven/4.0.0-rc-2/conf/settings.xml' [DEBUG] Reading project settings from '/home/cy6ergn0m/projects/word5-native/${session.rootDirectory}/.mvn/settings.xml' [DEBUG] Reading user settings from '/home/cy6ergn0m/.m2/settings.xml' Maven Encryption 4.0.0-rc-2 Tool for secure password management on workstations. This tool is part of Apache Maven 4 distribution.goal: init? Which dispatcher you want to use as default? master [ERROR] Terminal is not in raw mode! Maybe ConsolePrompt is closed? java.lang.IllegalStateException: Terminal is not in raw mode! Maybe ConsolePrompt is closed? at org.jline.consoleui.prompt.ConsolePrompt.prompt(ConsolePrompt.java:176) at org.jline.consoleui.prompt.ConsolePrompt.prompt(ConsolePrompt.java:131) at org.apache.maven.cling.invoker.mvnenc.goals.Init.doExecute(Init.java:121) at org.apache.maven.cling.invoker.mvnenc.goals.InteractiveGoalSupport.execute(InteractiveGoalSupport.java:48) at org.apache.maven.cling.invoker.mvnenc.EncryptInvoker.doExecute(EncryptInvoker.java:93) at org.apache.maven.cling.invoker.mvnenc.EncryptInvoker.execute(EncryptInvoker.java:46) at org.apache.maven.cling.invoker.mvnenc.EncryptInvoker.execute(EncryptInvoker.java:38) at org.apache.maven.cling.invoker.LookupInvoker.doInvoke(LookupInvoker.java:145) at org.apache.maven.cling.invoker.LookupInvoker.invoke(LookupInvoker.java:116) at org.apache.maven.cling.ClingSupport.run(ClingSupport.java:64) at org.apache.maven.cling.MavenEncCling.main(MavenEncCling.java:51) at jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.lang.reflect.Method.invoke(Method.java:580) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:255) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:201) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:361) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:314) [DEBUG] Created adapter factory; available factories [file-lock, rwlock-local, semaphore-local, noop]; available name mappers [discriminating, file-gav, file-hgav, file-static, gav, static] [DEBUG] Shutting down adapter factory; available factories [file-lock, rwlock-local, semaphore-local, noop]; available name mappers [discriminating, file-gav, file-hgav, file-static, gav, static] [DEBUG] Shutting down 'file-lock' factory [DEBUG] Shutting down 'rwlock-local' factory [DEBUG] Shutting down 'semaphore-local' factory [DEBUG] Shutting down 'noop' factory {noformat} !image-2025-03-06-19-34-42-478.png! -- This message was sent by Atlassian Jira (v8.20.10#820010)