<?xml version='1.0'?>
<!--
  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>
  <parent>
    <groupId>org.apache.rat</groupId>
    <artifactId>apache-rat-project</artifactId>
    <version>0.6</version>
  </parent>
  <artifactId>apache-rat</artifactId>
  <packaging>jar</packaging>
  <name>RAT Application</name>
  <description>
    This library provides upwards compatibility for projects,
    which are based on RAT versions upto 0.5: Basically, it
    provides a jar file, which is the combination of
    rat-core, rat-anttasks, and its dependencies.
  </description>

  <dependencies>
    <dependency>
      <groupId>org.apache.rat</groupId>
      <artifactId>apache-rat-core</artifactId>
    </dependency>
    <dependency>
      <groupId>org.apache.rat</groupId>
      <artifactId>apache-rat-tasks</artifactId>
    </dependency>
  </dependencies>

  <build>
    <resources>
      <resource>
        <directory>src/main/resources</directory>
      </resource>
      <resource>
        <directory>..</directory>
        <targetPath>META-INF</targetPath>
        <includes>
          <include>DISCLAIMER.txt</include>
          <include>RELEASE_NOTES.txt</include>
          <include>LICENCE</include>
          <include>NOTICE</include>
        </includes>
      </resource>
    </resources>    
    <plugins>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <configuration>
          <attach>false</attach>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-dependency-plugin</artifactId>
        <executions>
          <execution>
            <phase>compile</phase>
            <goals>
              <goal>unpack-dependencies</goal>
            </goals>
            <configuration>
              <includeScope>runtime</includeScope>
              <outputDirectory>${project.build.outputDirectory}</outputDirectory>
              <overWriteIfNewer>false</overWriteIfNewer>
              <excludes>META-INF/LICENSE,META-INF/NOTICE,META-INF/LICENSE.*,META-INF/NOTICE.*</excludes>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <artifactId>maven-jar-plugin</artifactId>
        <configuration>
          <excludes>
            <exclude>META-INF/maven</exclude>
          </excludes>
          <archive>
            <manifestEntries>
              <Main-Class>org.apache.rat.Report</Main-Class>
              <Extension-Name>rat</Extension-Name>
              <Specification-Title>Release Audit Tool</Specification-Title>
              <Specification-Vendor>apache.org</Specification-Vendor>
              <Specification-Version>${project.version}</Specification-Version>
              <Implementation-Vendor-Id>apache.org</Implementation-Vendor-Id>
              <Implementation-Title>Release Audit Tool</Implementation-Title>
              <Implementation-Vendor>Apache Software Foundation</Implementation-Vendor>
              <Implementation-Version>${project.version}</Implementation-Version>
            </manifestEntries>
          </archive>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>2.2-beta-3</version>
            <configuration>
              <descriptorSourceDirectory>${basedir}/src/assemble/</descriptorSourceDirectory>
              <tarLongFileMode>gnu</tarLongFileMode>
            </configuration>
            <executions>
              <execution>
                <id>make-assembly</id>
                  <phase>package</phase> <!-- append to the packaging phase. -->
                  <goals>
                    <goal>single</goal>
                  </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

  <scm>
    <connection>scm:svn:http://svn.apache.org/repos/asf/incubator/rat/main/tags/apache-rat-project-0.6/apache-rat</connection>
    <developerConnection>scm:svn:https://svn.apache.org/repos/asf/incubator/rat/main/tags/apache-rat-project-0.6/apache-rat</developerConnection>
    <url>http://svn.apache.org/repos/asf/incubator/rat/main/tags/apache-rat-project-0.6/apache-rat</url>
  </scm>
</project>