Description
When wagon-ssh encounter none prompt eror ( like account is lock) it throws
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.apache.maven.wagon.providers.ssh.jsch.interactive.UserInfoUIKeyboardInteractiveProxy.promptKeyboardInteractive(UserInfoUIKeyboardInteractiveProxy.java:53)
at com.jcraft.jsch.UserAuthKeyboardInteractive.start(UserAuthKeyboardInteractive.java:141)
at com.jcraft.jsch.Session.connect(Session.java:470)
at com.jcraft.jsch.Session.connect(Session.java:183)
at org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon.openConnectionInternal(AbstractJschWagon.java:254)
at org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:115)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:215)
at org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:152)
This is due to empty array UserInfoUIKeyboardInteractiveProxy
The solution is not handle the empty promt