用maven运行指定java类main方法

mvn exec:java -Dexec.mainClass="com.java2s.ide.App"

原文地址:https://www.cnblogs.com/silvestris/p/5162264.html