The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
<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>
    <parent>
        <groupId>org.openqa.selenium.client-drivers</groupId>
        <version>1.0-SNAPSHOT</version>
        <artifactId>selenium-client-drivers</artifactId>
    </parent>
    <groupId>org.openqa.selenium.client-drivers</groupId>
    <artifactId>selenium-perl-client-driver</artifactId>
    <packaging>pom</packaging>
    <name>Selenium RC Perl Client</name>
    <repositories>
        <repository>
            <id>openqa-releases</id>
            <name>OpenQA Releases</name>
            <url>http://archiva.openqa.org/repository/releases/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>openqa-snapshots</id>
            <name>OpenQA Snapshots</name>
            <url>http://archiva.openqa.org/repository/snapshots/</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>openqa-thirdparty</id>
            <name>OpenQA Third Party</name>
            <url>http://archiva.openqa.org/repository/thirdparty/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
    </repositories>
    <properties>
        <headless>true</headless>
    </properties>
    <profiles>
        <profile>
            <id>test</id>
            <activation>
                <property>
                    <name>!notest</name>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <version>1.2-SNAPSHOT</version>
                        <executions>
                            <execution>
                                <id>test</id>
                                <phase>test</phase>
                                <configuration>
                                    <tasks>
                                        <ant target="test">
                                            <property name="selenium-server"
                                                      value="${maven.dependency.org.openqa.selenium.server.selenium-server.standalone.jar.path}"/>
                                            <property name="project.version" value="${project.version}" />
                                            <property name="headless" value="${headless}" />
                                        </ant>
                                    </tasks>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                        </executions>
                        <dependencies>
                            <dependency>
                                <groupId>ant</groupId>
                                <artifactId>ant-trax</artifactId>
                                <version>1.6.5</version>
                            </dependency>
                        </dependencies>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-antrun-plugin</artifactId>
                <version>1.2-SNAPSHOT</version>
                <executions>
                    <execution>
                        <id>generate-sources</id>
                        <phase>generate-sources</phase>
                        <configuration>
                            <tasks>
                                <ant target="generate-sources">
                                    <property name="selenium-server"
                                              value="${maven.dependency.org.openqa.selenium.server.selenium-server.standalone.jar.path}"/>
                                    <property name="project.version" value="${project.version}" />
                                </ant>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>package</id>
                        <phase>package</phase>
                        <configuration>
                            <tasks>
                                <ant target="dist">
                                    <property name="selenium-server"
                                              value="${maven.dependency.org.openqa.selenium.server.selenium-server.standalone.jar.path}"/>
                                    <property name="project.version" value="${project.version}" />
                                </ant>
                            </tasks>
                        </configuration>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
                <dependencies>
                    <dependency>
                        <groupId>ant</groupId>
                        <artifactId>ant-nodeps</artifactId>
                        <version>1.6.5</version>
                    </dependency>
                    <dependency>
                        <groupId>ant</groupId>
                        <artifactId>ant-trax</artifactId>
                        <version>1.6.5</version>
                    </dependency>
                </dependencies>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
                <executions>
                    <execution>
                        <id>attach-artifacts</id>
                        <phase>package</phase>
                        <goals>
                            <goal>attach-artifact</goal>
                        </goals>
                        <configuration>
                            <artifacts>
                                <artifact>
                                    <file>target/selenium-perl-client-driver-${project.version}.zip</file>
                                    <type>zip</type>
                                </artifact>
                                <artifact>
                                    <file>target/selenium-perl-client-driver-${project.version}-doc.zip</file>
                                    <type>zip</type>
                                    <classifier>doc</classifier>
                                </artifact>
                            </artifacts>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <artifactId>maven-clean-plugin</artifactId>
                <configuration>
                    <filesets>
                        <fileset>
                            <directory>.</directory>
                            <includes>
                                <include>iedoc.xml</include>
                                <include>lib/WWW/Selenium.pm</include>
                                <include>t/selenium-core.t</include>
                                <include>pm_to_blib</include>
                                <include>Makefile</include>
                                <include>*.tmp</include>
                            </includes>
                        </fileset>
                        <fileset>
                            <directory>blib</directory>
                        </fileset>
                        <fileset>
                            <directory>doc</directory>
                        </fileset>
                    </filesets>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>