<?xml version="1.0" encoding="UTF-8"?>
<!--
  #%L
  Maven License Plugin
  
  $Id: pom.xml 1887 2010-11-18 21:20:13Z tchemit $
  $HeadURL: http://svn.nuiton.org/svn/maven-license-plugin/tags/maven-license-plugin-3.0/pom.xml $
  %%
  Copyright (C) 2008 - 2010 CodeLutin, Tony Chemit
  %%
  This program is free software: you can redistribute it and/or modify
  it under the terms of the GNU Lesser General Public License as
  published by the Free Software Foundation, either version 3 of the
  License, or (at your option) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Lesser Public License for more details.

  You should have received a copy of the GNU General Lesser Public
  License along with this program.  If not, see
  <http://www.gnu.org/licenses/lgpl-3.0.html>.
  #L%
  -->
<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>

  <!-- ************************************************************* -->
  <!-- *** POM Relationships *************************************** -->
  <!-- ************************************************************* -->

  <parent>
    <groupId>org.nuiton</groupId>
    <artifactId>mavenpom4redmineAndCentral</artifactId>
    <version>2.4</version>
  </parent>

  <artifactId>maven-license-plugin</artifactId>
  <version>3.0</version>

  <dependencies>

    <dependency>
      <groupId>org.nuiton.processor</groupId>
      <artifactId>nuiton-processor</artifactId>
      <version>${processorVersion}</version>
      <scope>compile</scope>
    </dependency>

    <dependency>
      <groupId>org.nuiton</groupId>
      <artifactId>maven-helper-plugin</artifactId>
      <version>${helperPluginVersion}</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-artifact</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-artifact-manager</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-model</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-profile</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-settings</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-httpclient</groupId>
          <artifactId>commons-httpclient</artifactId>
        </exclusion>

        <exclusion>
          <groupId>plexus</groupId>
          <artifactId>plexus-mail-sender-simple</artifactId>
        </exclusion>

        <exclusion>
          <groupId>plexus</groupId>
          <artifactId>plexus-mail-sender-api</artifactId>
        </exclusion>

        <exclusion>
          <groupId>plexus</groupId>
          <artifactId>plexus-mail-sender-javamail</artifactId>
        </exclusion>

        <exclusion>
          <groupId>javax.mail</groupId>
          <artifactId>mail</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.sonatype.plexus</groupId>
          <artifactId>plexus-cipher</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.sonatype.plexus</groupId>
          <artifactId>plexus-sec-dispatcher</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.codehaus.plexus</groupId>
          <artifactId>plexus-velocity</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.apache.velocity</groupId>
          <artifactId>velocity</artifactId>
        </exclusion>

      </exclusions>
    </dependency>

    <dependency>
      <groupId>commons-lang</groupId>
      <artifactId>commons-lang</artifactId>
      <version>2.5</version>
    </dependency>

    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>1.1.1</version>
    </dependency>

    <!-- FIXME si on ne le rajoute pas, on se retrouve avec la version 1.1 qui ne convient pas -->
    <dependency>
      <groupId>org.codehaus.plexus</groupId>
      <artifactId>plexus-utils</artifactId>
      <version>1.5.15</version>
      <scope>compile</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-core</artifactId>
      <version>${mavenVersion}</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-project</artifactId>
      <version>${mavenVersion}</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-model</artifactId>
      <version>${mavenVersion}</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-artifact</artifactId>
      <version>${mavenVersion}</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>org.apache.maven</groupId>
      <artifactId>maven-plugin-api</artifactId>
      <version>${mavenVersion}</version>
      <scope>provided</scope>
    </dependency>

    <dependency>
      <groupId>commons-collections</groupId>
      <artifactId>commons-collections</artifactId>
      <version>3.2.1</version>
    </dependency>

    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.16</version>
      <scope>runtime</scope>
    </dependency>

    <!-- tests dependencies -->

    <dependency>
      <groupId>org.nuiton</groupId>
      <artifactId>maven-helper-plugin</artifactId>
      <version>${helperPluginVersion}</version>
      <scope>test</scope>
      <classifier>tests</classifier>
      <exclusions>

        <exclusion>
          <groupId>org.apache.maven.shared</groupId>
          <artifactId>maven-dependency-tree</artifactId>
        </exclusion>

        <exclusion>
          <groupId>commons-httpclient</groupId>
          <artifactId>commons-httpclient</artifactId>
        </exclusion>

        <exclusion>
          <groupId>plexus</groupId>
          <artifactId>plexus-mail-sender-simple</artifactId>
        </exclusion>

        <exclusion>
          <groupId>plexus</groupId>
          <artifactId>plexus-mail-sender-api</artifactId>
        </exclusion>

        <exclusion>
          <groupId>plexus</groupId>
          <artifactId>plexus-mail-sender-javamail</artifactId>
        </exclusion>

        <exclusion>
          <groupId>javax.mail</groupId>
          <artifactId>mail</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.sonatype.plexus</groupId>
          <artifactId>plexus-cipher</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.sonatype.plexus</groupId>
          <artifactId>plexus-sec-dispatcher</artifactId>
        </exclusion>

        <exclusion>
          <groupId>org.codehaus.plexus</groupId>
          <artifactId>plexus-velocity</artifactId>
        </exclusion>

      </exclusions>
    </dependency>

    <dependency>
      <groupId>org.apache.maven.plugin-testing</groupId>
      <artifactId>maven-plugin-testing-harness</artifactId>
      <version>1.2</version>
      <scope>test</scope>
      <exclusions>

        <exclusion>
          <groupId>org.apache.maven.reporting</groupId>
          <artifactId>maven-reporting-api</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.apache.maven</groupId>
          <artifactId>maven-monitor</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.apache.maven.wagon</groupId>
          <artifactId>wagon-file</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.apache.maven.wagon</groupId>
          <artifactId>wagon-http-lightweight</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.apache.maven.wagon</groupId>
          <artifactId>wagon-ssh</artifactId>
        </exclusion>
        <exclusion>
          <groupId>org.codehaus.plexus</groupId>
          <artifactId>plexus-archiver</artifactId>
        </exclusion>
        <exclusion>
          <groupId>commons-cli</groupId>
          <artifactId>commons-cli</artifactId>
        </exclusion>

      </exclusions>
    </dependency>

    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.8.2</version>
    </dependency>

  </dependencies>

  <!-- ************************************************************* -->
  <!-- *** Project Information ************************************* -->
  <!-- ************************************************************* -->
  <name>Maven License Plugin</name>

  <description>
    Plugin de gestion des licenses (et en-têtes) dans un project maven 2.
  </description>
  <inceptionYear>2008</inceptionYear>
  <url>http://maven-site.nuiton.org/maven-license-plugin</url>

  <developers>

    <developer>
      <name>Tony Chemit</name>
      <id>tchemit</id>
      <email>chemit@codelutin.com</email>
      <organization>CodeLutin</organization>
      <timezone>+2</timezone>
      <roles>
        <role>lead</role>
        <role>developer</role>
      </roles>
    </developer>
    <developer>
      <name>Yannick Martel</name>
      <id>ymartel</id>
      <email>martel@codelutin.com</email>
      <organization>CodeLutin</organization>
      <timezone>+2</timezone>
      <roles>
        <role>developer</role>
      </roles>
    </developer>
    <developer>
      <name>Jean Couteau</name>
      <id>jcouteau</id>
      <email>couteau@codelutin.com</email>
      <organization>CodeLutin</organization>
      <timezone>+2</timezone>
      <roles>
        <role>Technical writer</role>
      </roles>
    </developer>
  </developers>

  <!-- ************************************************************* -->
  <!-- *** Build Environment  ************************************** -->
  <!-- ************************************************************* -->

  <!-- Source control management. -->
  <scm>
    <connection>
      scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/tags/maven-license-plugin-3.0
    </connection>
    <developerConnection>
      scm:svn:http://svn.nuiton.org/svn/maven-license-plugin/tags/maven-license-plugin-3.0
    </developerConnection>
    <url>
      http://www.nuiton.org/repositories/browse/maven-license-plugin/tags/maven-license-plugin-3.0
    </url>
  </scm>

  <!-- ************************************************************* -->
  <!-- *** Build Settings ****************************************** -->
  <!-- ************************************************************* -->

  <packaging>maven-plugin</packaging>

  <properties>

    <!-- processor version -->
    <processorVersion>1.0.4</processorVersion>

    <!-- helper version -->
    <helperPluginVersion>1.2.9</helperPluginVersion>

    <!-- documentation is in apt format -->
    <siteSourcesType>apt</siteSourcesType>

    <!-- documentation is in english then french -->
    <locales>en,fr</locales>

    <mavenVersion>2.2.1</mavenVersion>

  </properties>

  <build>

    <plugins>

      <!-- expose new plexus components -->
      <plugin>
        <groupId>org.codehaus.plexus</groupId>
        <artifactId>plexus-component-metadata</artifactId>
        <executions>
          <execution>
            <goals>
              <goal>generate-metadata</goal>
            </goals>
          </execution>
        </executions>
      </plugin>

    </plugins>

    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-release-plugin</artifactId>
          <version>2.1</version>
        </plugin>

        <plugin>
          <groupId>org.nuiton</groupId>
          <artifactId>maven-license-plugin</artifactId>
          <version>2.4.1</version>
          <configuration>
            <excludes>
              <exclude>**/it/ano-947/**</exclude>
              <exclude>**/it/evol-952/**</exclude>
              <exclude>**/it/evol-884/**</exclude>
              <exclude>**/it/update-file-header/src/**</exclude>
              <exclude>**/it/update-project-license/src/**</exclude>
              <exclude>**/updateFileHeaderMojoTest/**</exclude>
              <exclude>**/updateLicenseMojoTest/**</exclude>
            </excludes>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>

  </build>

  <profiles>

    <profile>
      <id>run-its</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>
      <build>
        <defaultGoal>integration-test</defaultGoal>
        <plugins>
          <plugin>
            <artifactId>maven-invoker-plugin</artifactId>
            <configuration>
              <pomIncludes>
                <pomInclude>ano-812/pom.xml</pomInclude>
                <pomInclude>ano-816/pom.xml</pomInclude>
                <pomInclude>ano-947/pom.xml</pomInclude>
                <pomInclude>evol-952/pom.xml</pomInclude>
                <pomInclude>evol-818/excluded-included/pom.xml</pomInclude>
                <pomInclude>evol-818/multimodule-filters/pom.xml</pomInclude>
                <pomInclude>evol-884/update-project-license/pom.xml</pomInclude>
                <pomInclude>evol-884/update-file-header/pom.xml</pomInclude>
                <pomInclude>evol-884/update-file-header-specific/pom.xml
                </pomInclude>
                <pomInclude>add-third-party/no-encoding/pom.xml</pomInclude>
                <pomInclude>aggregate-add-third-party/pom.xml</pomInclude>
                <pomInclude>add-third-party/merge-licenses/pom.xml</pomInclude>
                <pomInclude>add-third-party/no-deps/pom.xml</pomInclude>
                <pomInclude>add-third-party/with-deps/pom.xml</pomInclude>
                <pomInclude>update-file-header/pom.xml</pomInclude>
                <pomInclude>update-project-license/pom.xml</pomInclude>
              </pomIncludes>
              <postBuildHookScript>verify</postBuildHookScript>
              <localRepositoryPath>${basedir}/target/local-repo
              </localRepositoryPath>
              <settingsFile>src/it/settings.xml</settingsFile>
              <cloneProjectsTo>${project.build.directory}/its</cloneProjectsTo>
              <debug>${maven.verbose}</debug>
            </configuration>
            <executions>
              <execution>
                <id>integration-test</id>
                <goals>
                  <goal>install</goal>
                  <goal>run</goal>
                </goals>
                <phase>integration-test</phase>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>

    <!-- perform only on a release stage when using the maven-release-plugin -->
    <profile>
      <id>release-profile</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>

      <build>

        <plugins>

          <plugin>
            <artifactId>maven-plugin-plugin</artifactId>
            <executions>
              <execution>
                <goals>
                  <goal>helpmojo</goal>
                </goals>
              </execution>
            </executions>
          </plugin>

        </plugins>

      </build>

    </profile>

    <!-- perform only on a release stage when using the maven-release-plugin -->
    <profile>
      <id>reporting</id>
      <activation>
        <property>
          <name>performRelease</name>
          <value>true</value>
        </property>
      </activation>

      <reporting>

        <plugins>

          <plugin>
            <artifactId>maven-plugin-plugin</artifactId>
            <version>2.5.1</version>
          </plugin>

          <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>cobertura-maven-plugin</artifactId>
            <version>2.3</version>
          </plugin>

        </plugins>
      </reporting>

    </profile>

  </profiles>

</project>
