<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->

<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.atlassian.maven.plugins</groupId>
    <artifactId>maven-clover2-plugin</artifactId>
    <packaging>maven-plugin</packaging>
    <name>Maven Clover Plugin</name>
    <version>3.1.0</version>
    <description>Maven plugin for Clover</description>
    <url>http://confluence.atlassian.com/x/dIDBBQ</url>
    <organization>
        <name>Atlassian Pty Ltd</name>
        <url>http://www.atlassian.com/</url>
    </organization>
    <issueManagement>
        <system>jira</system>
        <url>http://developer.atlassian.com/jira/browse/CLMVN</url>
    </issueManagement>
    <licenses>
        <license>
            <name>Apache 2</name>
            <url>http://www.apache.org/licenses/LICENSE-2.0</url>
        </license>
    </licenses>
    <scm>
        <connection>scm:svn:https://studio.plugins.atlassian.com/svn/CLMVN/tags/maven-clover2-plugin-3.1.0</connection>
        <url>https://studio.plugins.atlassian.com/svn/CLMVN/tags/tags/maven-clover2-plugin-3.1.0</url>
    </scm>
    <prerequisites>
        <maven>2.0.1</maven>
    </prerequisites>
    <properties>
        <cloverVersion>3.1.0</cloverVersion>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-compiler-api</artifactId>
            <version>1.5.3</version>
        </dependency>
        <dependency>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-resources</artifactId>
            <version>1.0-alpha-7</version>
        </dependency>
        <dependency>
            <groupId>org.codehaus.plexus</groupId>
            <artifactId>plexus-utils</artifactId>
            <version>1.5.6</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-project</artifactId>
            <version>2.2.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-plugin-api</artifactId>
            <version>2.2.0</version>
        </dependency>
        <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant</artifactId>
            <version>1.7.1</version>
        </dependency>

        <dependency>
            <groupId>org.apache.ant</groupId>
            <artifactId>ant-launcher</artifactId>
            <version>1.7.1</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.reporting</groupId>
            <artifactId>maven-reporting-impl</artifactId>
            <version>2.0.4</version>
        </dependency>
        <dependency>
            <groupId>org.apache.maven</groupId>
            <artifactId>maven-artifact</artifactId>
            <version>2.2.0</version>
        </dependency>
        <dependency>
            <groupId>com.cenqua.clover</groupId>
            <artifactId>clover</artifactId>
            <version>${cloverVersion}</version>
        </dependency>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jmock</groupId>
            <artifactId>jmock-junit3</artifactId>
            <version>2.5.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.jmock</groupId>
            <artifactId>jmock-legacy</artifactId>
            <version>2.5.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.maven.shared</groupId>
            <artifactId>maven-plugin-testing-harness</artifactId>
            <version>1.0-beta-1</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
    <build>
        <extensions>
            <extension>
                <groupId>org.apache.maven.wagon</groupId>
                <artifactId>wagon-webdav</artifactId>
                <version>1.0-beta-2</version>
            </extension>
        </extensions>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>com.atlassian.maven.plugins</groupId>
                    <artifactId>maven-clover2-plugin</artifactId>
                    <version>${version}</version>
                    <configuration>
                        <generateHistorical>true</generateHistorical>
                        <generateHtml>true</generateHtml>
                        <licenseLocation>${clover.licenseLocation}</licenseLocation>
                        <jdk>1.4</jdk>
                        <reportDescriptor>${basedir}/clover-report.xml</reportDescriptor>
                    </configuration>
                </plugin>

                <plugin> <!-- Compile tests with target jdk 1.5, but source code with 1.3, via:
                http://www.nabble.com/RE%3A-compiler-plugin%3A-separate-test-compiler-configuration-p20417613.html -->
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <configuration>
                        <source>1.3</source>
                        <target>1.3</target>
                        <excludes>
                            <exclude>foo</exclude>
                        </excludes>
                        <testExcludes>
                            <exclude>**</exclude>
                        </testExcludes>
                    </configuration>
                    <executions>
                        <execution>
                            <id>compile-jdk15</id>
                            <configuration>
                                <source>1.5</source>
                                <target>1.5</target>
                                <excludes>
                                    <exclude>**</exclude>
                                </excludes>
                                <testExcludes>
                                    <exclude>foo</exclude>
                                </testExcludes>
                            </configuration>
                            <goals>
                                <goal>compile</goal>
                                <goal>testCompile</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-javadoc-plugin</artifactId>
                    <configuration>
                        <quiet>true</quiet>
                        <tags>
                            <tag>
                                <name>goal</name>
                                <placement>a</placement>
                            </tag>
                            <tag>
                                <name>execute</name>
                                <placement>a</placement>
                            </tag>
                            <tag>
                                <name>aggregator</name>
                                <placement>a</placement>
                            </tag>
                            <tag>
                                <name>phase</name>
                                <placement>a</placement>
                            </tag>
                            <tag>
                                <name>requiresDependencyResolution</name>
                                <placement>a</placement>
                            </tag>
                            <tag>
                                <name>parameter</name>
                                <placement>a</placement>
                            </tag>
                        </tags>
                    </configuration>
                </plugin>
            </plugins>
        </pluginManagement>
    </build>
    <profiles>
        <profile>
            <id>integration-tests</id>
            <reporting>
                <excludeDefaults>true</excludeDefaults>
                <plugins>
                    <plugin>
                        <groupId>com.atlassian.maven.plugins</groupId>
                        <artifactId>maven-clover2-plugin</artifactId>
                        <version>${version}</version>
                        <configuration>
                            <generateHistorical>true</generateHistorical>
                            <generateHtml>true</generateHtml>
                            <licenseLocation>${clover.licenseLocation}</licenseLocation>
                            <jdk>1.4</jdk>
                        </configuration>
                    </plugin>
                </plugins>
            </reporting>
            <build>
                <plugins>
                    <plugin>
                        <artifactId>maven-clean-plugin</artifactId>
                        <configuration>
                            <filesets>
                                <fileset>
                                    <directory>src/it</directory>
                                    <includes>
                                        <include>**/target</include>
                                        <include>**/build.log</include>
                                    </includes>
                                </fileset>
                            </filesets>
                        </configuration>
                    </plugin>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-plugin-management-plugin</artifactId>
                        <version>1.0-atlassian-3</version>
                        <executions>
                            <execution>
                                <id>handle-plugin-staging</id>
                                <goals>
                                    <goal>stage</goal>
                                    <goal>unstage</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                    <plugin>
                        <artifactId>maven-invoker-plugin</artifactId>
                        <version>1.3</version>
                        <configuration>
                            <debug>true</debug>
                            <projectsDirectory>src/it</projectsDirectory>
                            <pomIncludes>
                                <pomInclude>**/optmized/pom.xml</pomInclude>
                                <pomInclude>**/contexts/pom.xml</pomInclude>
                                <pomInclude>**/simple/pom.xml</pomInclude>
                                <pomInclude>**/multiproject/pom.xml</pomInclude>
                                <pomInclude>**/license/pom.xml</pomInclude>
                                <pomInclude>**/xdoclet/pom.xml</pomInclude>
                                <pomInclude>**/instrument-tests/pom.xml</pomInclude>
                                <pomInclude>**/allSrcExcluded/pom.xml</pomInclude>
                                <pomInclude>**/someSrcExcluded/pom.xml</pomInclude>
                                <pomInclude>**/someSrcIncluded/pom.xml</pomInclude>
                                <pomInclude>**/groovy/pom.xml</pomInclude>
                                <!--pomInclude>**/mclover77a/pom.xml</pomInclude>
                                <pomInclude>**/mclover77b/pom.xml</pomInclude-->
                                <!--<pomInclude>**/mclover80/pom.xml</pomInclude>-->
                            </pomIncludes>
                            <postBuildHookScript>verify.bsh</postBuildHookScript>
                        </configuration>
                        <executions>
                            <execution>
                                <id>integration-test</id>
                                <phase>integration-test</phase>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

    <reporting>
        <plugins>
            <plugin>
                <artifactId>maven-plugin-plugin</artifactId>
                <version>2.4.1</version>
            </plugin>
        </plugins>
    </reporting>

    <distributionManagement>
        <repository>
            <id>atlassian-m2-repository</id>
            <name>Atlassian Public Repository</name>
            <url>dav:https://maven.atlassian.com/public</url>
        </repository>
        <snapshotRepository>
            <id>atlassian-private-snapshot</id>
            <name>Atlassian Private Snapshot Repository</name>
            <url>dav:https://maven.atlassian.com/private-snapshot</url>
        </snapshotRepository>
        <site>
            <id>atlassian-documentation</id>
            <url>dav:https://docs.atlassian.com/${project.artifactId}/${project.version}</url>
        </site>
    </distributionManagement>

</project>
