我在package
阶段部署我的应用程序:
<plugin>
<groupId>org.glassfish.maven.plugin</groupId>
<artifactId>maven-glassfish-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<id>gf-redeploy</id>
<goals>
<goal>redeploy</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
在integration-test
阶段
<plugin>
<groupId>com.lazerycode.jmeter</groupId>
<artifactId>jmeter-maven-plugin</artifactId>
<version>1.10.1</version>
<executions>
<execution>
<id>jmeter-tests</id>
<phase>integration-test</phase>
<goals>
<goal>jmeter</goal>
</goals>
</execution>
</executions>
</plugin>
然而,当我查看我的控制台时,JMeter测试在redeploy
之前执行。怎么可能?我错过了什么吗?