Hi,

I was getting an exception when deploying, so I needed to figure out exactly 
what SFTP commands were being issued. The stack trace indicated that JSch was 
issuing the commands, but it didn't seem to have any kind of debug switch, at 
least not one that I could enable from Maven. I decided to build JSch from 
source with my own logging statements inserted. This would require overriding 
the JSch dependency with my own version, as described here:

http://www.sonatype.com/people/2008/04/how-to-override-a-plugins-dependency-in-maven/

But this didn't work at all. No matter what I tried, Maven refused to load my 
version of JSch. Fast forward through 90 minutes of hair pulling, and I finally 
figured out that Maven was ignoring my local repository and instead loading a 
copy of JSch that happened to be in its uberjar.

So my question is... Is there some way I should have known this? What knowledge 
could I have had that would have told me that any attempt at loading a 
dependency from my local repo would fail because the dependency is in the 
uberjar?

I'm asking not only to improve my understanding of Maven but also to question 
if there's some way to change Maven, or simply add to its documentation, so 
that this problem doesn't bite other users.

Thanks,

Trevor


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to