Maven lifecycle wrong order

174 Views Asked by At

I deploy my application during the package phase:

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

And run some integration-tests in the integration-test phase

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

However when I look into my console, the JMeter test is executed before the redeploy. How is that possible? Did I miss something?

0

There are 0 best solutions below