Shows how to deploy the current artifact (ear or war) to a target environment.

<plugins>
    <plugin>
        <groupId>com.xebialabs.deployit</groupId>
        <artifactId>maven-deployit-plugin</artifactId>
        <version>3.9.1</version>
        <executions>
            <execution>
                <id>deployit-plugin-test</id>
                <phase>pre-integration-test</phase>
                <goals>
                    <goal>deploy</goal>
                </goals>
            </execution>
        </executions>
        <configuration>
            <environmentId>Environments/MyProjectEnvironment</environmentId>
        </configuration>
    </plugin>
</plugins>

Shows how to customize the current artifact (ear or war) deployable definition.

<plugins>
    <plugin>
        <groupId>com.xebialabs.deployit</groupId>
        <artifactId>maven-deployit-plugin</artifactId>
        <version>3.9.1</version>
        <executions>
            <execution>
                <id>deployit-plugin-test</id>
                <phase>pre-integration-test</phase>
                <goals>
                    <goal>deploy</goal>
                </goals>
            </execution>
        </executions>
        <configuration>
            <deployables>
                <deployable>
                    <artifactId>petclinic</artifactId>    <!-- must be the same name as artifact id defined for this pom -->
                    <type>wls.War</type>
                    <stageMode>stage</stageMode>
                </deployable>
            </deployables>
            <environmentId>Environments/MyProjectEnvironment</environmentId>
        </configuration>
    </plugin>
</plugins>