<?xml version="1.0" encoding="UTF-8"?>
<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.mtvi</groupId>
    <artifactId>master-public</artifactId>
    <packaging>pom</packaging>
    <version>22</version>

    <name>Master Maven POM for MTV Networks Public Projects</name>
    <description>Master Maven POM for MTV Networks Public Projects</description>

    <organization>
        <name>MTV Networks</name>
        <url>http://www.mtvnetworks.com/</url>
    </organization>
    <inceptionYear>1981</inceptionYear>

    <properties>
        <plugin.version.antrun>1.3</plugin.version.antrun>
        <plugin.version.cargo>1.0</plugin.version.cargo>
        <plugin.version.checkstyle>2.2</plugin.version.checkstyle>
        <plugin.version.changes>2.1</plugin.version.changes>
        <plugin.version.changelog>2.1</plugin.version.changelog>
        <plugin.version.clean>2.3</plugin.version.clean>
        <plugin.version.compiler>2.0.2</plugin.version.compiler>
        <plugin.version.deploy>2.4</plugin.version.deploy>
        <plugin.version.enforcer>1.0-beta-1</plugin.version.enforcer>
        <plugin.version.gpg>1.0-alpha-4</plugin.version.gpg>
        <plugin.version.help>2.1</plugin.version.help>
        <plugin.version.install>2.3</plugin.version.install>
        <plugin.version.resources>2.3</plugin.version.resources>
        <plugin.version.site>2.0</plugin.version.site>
        <plugin.version.verifier>1.0-beta-1</plugin.version.verifier>
        <plugin.version.license>1.4.0</plugin.version.license>
        <plugin.version.project-info-reports>2.1.1</plugin.version.project-info-reports>
        <plugin.version.rar>2.2</plugin.version.rar>
        <plugin.version.release>2.0-beta-9</plugin.version.release>
        <plugin.version.source>2.0.4</plugin.version.source>
        <plugin.version.surefire>2.4.3</plugin.version.surefire>
        <plugin.version.taglist>2.3</plugin.version.taglist>
        <plugin.version.jetty>6.1.16</plugin.version.jetty>
        <plugin.configuration.licenseURL>
            http://buildtools.mtvitech.com/resources/asl.txt
        </plugin.configuration.licenseURL>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <maven.compiler.encoding>${project.build.sourceEncoding}</maven.compiler.encoding>
    </properties>

    <build>
        <plugins>
            <plugin>
                <groupId>com.google.code.maven-license-plugin</groupId>
                <artifactId>maven-license-plugin</artifactId>
                <version>${plugin.version.license}</version>
                <configuration>
                    <header>${plugin.configuration.licenseURL}</header>
                    <failIfMissing>false</failIfMissing>
                    <excludes>
                        <exclude>target-eclipse/**</exclude>
                        <exclude>**/*.class</exclude>
                    </excludes>
                    <mapping>
                        <as>java</as>
                    </mapping>
                </configuration>
            </plugin>
        </plugins>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <version>${plugin.version.antrun}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-changes-plugin</artifactId>
                    <version>${plugin.version.changes}</version>
                    <configuration>
                        <finalName>${project.name} ${project.version}</finalName>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-changelog-plugin</artifactId>
                    <version>${plugin.version.changelog}</version>
                    <configuration>
                        <type>range</type>
                        <range>30</range>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>${plugin.version.compiler}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-clean-plugin</artifactId>
                    <version>${plugin.version.clean}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-deploy-plugin</artifactId>
                    <version>${plugin.version.deploy}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-enforcer-plugin</artifactId>
                    <version>${plugin.version.enforcer}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-gpg-plugin</artifactId>
                    <version>${plugin.version.gpg}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-help-plugin</artifactId>
                    <version>${plugin.version.help}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-install-plugin</artifactId>
                    <version>${plugin.version.install}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-resources-plugin</artifactId>
                    <version>${plugin.version.resources}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-site-plugin</artifactId>
                    <version>${plugin.version.site}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-verifier-plugin</artifactId>
                    <version>${plugin.version.verifier}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-rar-plugin</artifactId>
                    <version>${plugin.version.rar}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>${plugin.version.release}</version>
                    <configuration>
                        <arguments>-Prelease</arguments>
                        <preparationGoals>clean install</preparationGoals>
                    </configuration>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-source-plugin</artifactId>
                    <version>${plugin.version.source}</version>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-surefire-plugin</artifactId>
                    <version>${plugin.version.surefire}</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.cargo</groupId>
                    <artifactId>cargo-maven2-plugin</artifactId>
                    <version>${plugin.version.cargo}</version>
                </plugin>
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>taglist-maven-plugin</artifactId>
                    <version>${plugin.version.taglist}</version>
                </plugin>
                <plugin>
                    <groupId>org.mortbay.jetty</groupId>
                    <artifactId>maven-jetty-plugin</artifactId>
                    <version>${plugin.version.jetty}</version>
                    <configuration>
                        <scanIntervalSeconds>5</scanIntervalSeconds>
                        <tmpDir>target/work</tmpDir>
                        <useTestClasspath>true</useTestClasspath>
                        <connectors>
                            <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                                <port>9090</port>
                                <maxIdleTime>60000</maxIdleTime>
                            </connector>
                        </connectors>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>

    <reporting>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-project-info-reports-plugin</artifactId>
                <version>${plugin.version.project-info-reports}</version>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changes-plugin</artifactId>
                <version>${plugin.version.changes}</version>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>changes-report</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-changelog-plugin</artifactId>
                <version>${plugin.version.changelog}</version>
                <configuration>
                    <type>range</type>
                    <range>30</range>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>taglist-maven-plugin</artifactId>
                <version>${plugin.version.taglist}</version>
            </plugin>
        </plugins>
    </reporting>

    <developers>
        <developer>
            <id>justinedelson</id>
            <email>justin.edelson@mtvstaff.com</email>
            <name>Justin Edelson</name>
            <roles>
                <role>Project Lead</role>
            </roles>
        </developer>
    </developers>

    <repositories>
        <repository>
            <id>maven2-repository.dev.java.net</id>
            <name>Java.net Repository for Maven</name>
            <url>http://download.java.net/maven/2/</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>ddsteps.org</id>
            <url>http://repo.ddsteps.org/maven/release/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </repository>
        <repository>
            <id>sonatype-mtvi</id>
            <url>http://oss.sonatype.org/content/groups/mtvi/</url>
        </repository>
    </repositories>

    <pluginRepositories>
        <pluginRepository>
            <id>maven2-repository.dev.java.net</id>
            <name>Java.net Repository for Maven</name>
            <url>http://download.java.net/maven/2/</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>false</enabled>
            </snapshots>
        </pluginRepository>

        <pluginRepository>
            <id>sonatype-mtvi</id>
            <url>http://oss.sonatype.org/content/groups/mtvi/</url>
        </pluginRepository>
    </pluginRepositories>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>ant-contrib</groupId>
                <artifactId>ant-contrib</artifactId>
                <version>1.0b2</version>
                <exclusions>
                    <exclusion>
                        <artifactId>ant</artifactId>
                        <groupId>ant</groupId>
                    </exclusion>
                </exclusions>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <distributionManagement>
        <repository>
            <id>sonatype-oss</id>
            <url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
        <snapshotRepository>
            <id>sonatype-oss</id>
            <url>http://oss.sonatype.org/content/repositories/mtvi-snapshots/</url>
        </snapshotRepository>
    </distributionManagement>

    <scm>
        <url>http://kenai.com/projects/mtvn-master-pom/sources/source/show/tags/master-public-22</url>
        <developerConnection>scm:svn:https://kenai.com/svn/mtvn-master-pom~source/tags/master-public-22</developerConnection>
        <connection>scm:svn:http://kenai.com/svn/mtvn-master-pom~source /tags/master-public-22</connection>
    </scm>

    <modules>
        <module>master-public-flex</module>
        <module>master-public-java</module>
    </modules>

    <profiles>
        <profile>
            <id>release</id>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>
</project>