如何解决maven工程中main方法无法运行的问题

在myeclipse7好新建了一个maven工程。运行测试类的main方法是弹出警告框“could not find the main  class.Program will exit .”
并且控制台打出如下信息:
java.lang.NoClassDefFoundError: ssh/Test
Exception in thread "main"

开始也以为是网上所说的jdk版本问题。结果换了多个版本也不行。现在认为可能与maven的目录结构有关系

你可能感兴趣的:(jdk,thread,maven,ssh)