Java code using JSch package was not compiling using maven. I found this solution and as suggested by @flash. I included an additional repository. The code compiles now. However, while execution I still get this error
Exception in thread "main" java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException
This shows a solution for similar problem for eclipse. However I don't know how to solve this with maven. Any help will be appreciated.