Not able to run java main method using maven

This question already has an answer here:

  • What causes and what are the differences between NoClassDefFoundError and ClassNotFoundException? 15 answers
  • How can I create an executable JAR with dependencies using Maven? 33 answers

  • If you came across the error:Not able to run java main method using maven do this it worked for me: Reason for the error: The reason for this error is the jar file or dependency to run a maven project is not installed correctly.

    Solution for the error: Go to the project folder (eg: D:officeOIA-service-app) in the address bar of computer type command "cmd" and press enter. In the command prompt type command "mvn clean install"[image][1] make sure you have the internet connection.

    链接地址: http://www.djcxy.com/p/29644.html

    上一篇: 我如何使用Maven获取最新的Hibernate版本?

    下一篇: 无法使用maven运行java main方法