Hello all, I am wondering why it is that org.apache.maven.wagon.providers.ssh.jsch.AbstractJschWagon is not looking at non-zero exit codes instead of non-null error streams to determine whether a command has succeeded or not?
We have a case where we execute an Apache Hive query over ssh using the maven wagon plugin, with a command looking something like "hive -e 'show databases'". When doing this, hive outputs parts of the result over stderr (which is very weird I grant) but the command exits with exit code 0, i.e. no error. However, since wagon (and in extension the wagon-plugin) sees stderr content, it considers this a failed step. I found some TODOs in the code surrounding this but no JIRA Issue. So I am wondering what the concrete reason is for doing it in this slightly weird way. Best Regards Thomas
