maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benson Margulies <bimargul...@gmail.com>
Subject Re: Why doesn't wagon ssh look at exit codes instead of error stream content
Date Tue, 29 Jul 2014 13:49:53 GMT
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
<thomas.larsson@klarna.com> 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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message