Thursday, May 24, 2012

Cannot find the main class after converting java project to maven



This is because by default, Eclipse puts Java codes in src, but maven conventions are src/main/java. If you do not place or move the Java code to this place Maven will not find any main in your Eclipse when you are trying to run or compile.

No comments:

Post a Comment