Maven生命周期错误的顺序

时间:2015-12-29 09:30:09

标签: java maven maven-lifecycle

我在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之前执行。怎么可能?我错过了什么吗?

0 个答案:

没有答案