Tags your deployables

A special markup exists to specify the tags.

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

    <modelVersion>4.0.0</modelVersion>
    <groupId>com.xebialabs.deployit</groupId>
    <artifactId>maven-deployit-plugin-dar-format</artifactId>

    <packaging>dar</packaging> <!-- DAR packaging -->

    <version>1.0</version>
    <name>Dar Format</name>
    <url>http://www.xebialabs.com</url>
    <build>
        <plugins>
            <plugin>
                <groupId>com.xebialabs.deployit</groupId>
                <artifactId>maven-deployit-plugin</artifactId>
                <version>3.9.1</version>

                <extensions>true</extensions> <!-- tells maven the plugin contains extensions -->

                <configuration>
                    <deployables>

                        <deployable>
                            <name>petclinic</name>
                            <type>jee.War</type>
                            <groupId>com.xebialabs.deployit.demo.petclinic-war</groupId>
                            <artifactId>PetClinic</artifactId>
                            <tags>
                                <tag>frontend</tag>
                            </tags>
                        </deployable>

                        <deployable>
                            <name>petclinic-backend</name>
                            <type>jee.War</type>
                            <groupId>com.xebialabs.deployit.demo.petclinic-war</groupId>
                            <artifactId>PetClinic-Backend</artifactId>
                            <tags>
                                <tag>backend</tag>
                            </tags>
                        </deployable>

                        <deployable>
                            <type>file.Archive</type>
                            <groupId>mysql</groupId>
                            <artifactId>mysql-connector-java</artifactId>
                            <tags>
                                <tag>frontend</tag>
                                <tag>backend</tag>
                            </tags>
                        </deployable>

                        <deployable>
                            <name>configuration</name>
                            <type>file.Folder</type>
                            <location>config</location>
                            <tags>
                                <tag>frontend</tag>
                                <tag>backend</tag>
                            </tags>
                        </deployable>

                        <deployable>
                            <name>petclinicDS</name>
                            <type>wls.DataSourceSpec</type>
                            <jndiNames>jndi/toto</jndiNames>
                            <tags>
                                <tag>frontend</tag>
                                <tag>backend</tag>
                            </tags>
                            <driverName>com.mysql.jdbc.Driver</driverName>
                            <url>jdbc:mysql://localhost/petclinic</url>
                            <username>{{DB_USERNAME}}</username>
                            <password>{{DB_PASSWORD}}</password>
                        </deployable>


                    </deployables>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>