In my experience, trying to use the wagon-maven-plugin to do anything except move Maven artifacts around is a really exciting experience. If you describe your entire use case perhaps someone can offer another approach?
On Tue, Jul 29, 2014 at 9:47 AM, Thomas Larsson <[email protected]> wrote: > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
