执行main方法

Whether you use the java goal or the special support of Java for the exec goal, you might want to change the scope of the plugin execution. This can be achieved using the classpathScope configuration element, e.g. for a test scope:

        <configuration>
          ...
          <classpathScope>test</classpathScope>
          ...
        </configuration>
or, on the command line,

mvn exec:exec [...] -Dexec.classpathScope="java"


http://stackoverflow.com/questions/1089285/maven-run-project

你可能感兴趣的:(main)