【发布时间】:2011-01-27 20:50:04
【问题描述】:
我的 pom 中有以下 exec 任务:
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<executable>${project.basedir}/src/test/javascript/EnvJasmine/bin/run_all_tests.sh</executable>
</configuration>
</plugin>
</plugins>
这在我运行时效果很好
mvn exec:exec
但我也希望它在执行时运行
mvn test
有人可以帮我吗?
【问题讨论】: