执行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

猜你喜欢

转载自mistbow.iteye.com/blog/1407526