我在我的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
有人能在这里帮助我吗?
<phase>test</phase>
绑定项添加到<execution>
元素中。 - Donal Fellows