<?xml version="1.0" encoding="UTF-8"?>

<!--
 *
 * See the NOTICE file distributed with this work for additional
 * information regarding copyright ownership.
 *
 * This 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 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software 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
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 *
-->

<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.xwiki.platform</groupId>
    <artifactId>xwiki-platform-core</artifactId>
    <version>5.3</version>
  </parent>
  <artifactId>xwiki-platform-legacy</artifactId>
  <name>XWiki Platform - Legacy</name>
  <packaging>pom</packaging>
  <description>XWiki Platform - Legacy</description>
  <properties>
    <!-- We don't really care about checkstyle in legacy -->
    <xwiki.checkstyle.skip>true</xwiki.checkstyle.skip>
  </properties>
  <modules>
    <!-- Sorted Alphabetically -->
    <module>xwiki-platform-legacy-annotation</module>
    <module>xwiki-platform-legacy-model</module>
    <module>xwiki-platform-legacy-observation</module>
    <module>xwiki-platform-legacy-office-importer</module>
    <module>xwiki-platform-legacy-oldcore</module>
    <module>xwiki-platform-legacy-url</module>
    <module>xwiki-platform-legacy-web</module>
  </modules>
  <build>
    <pluginManagement>
      <plugins>
        <!-- Skip aspectj when in M2Eclipse, it's useless, slow and a bad practice anyway to develop with deprecated methods. Plus it make the build failed when AJDT is not installed. -->
        <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
        <plugin>
          <groupId>org.eclipse.m2e</groupId>
          <artifactId>lifecycle-mapping</artifactId>
          <version>1.0.0</version>
          <configuration>
            <lifecycleMappingMetadata>
              <pluginExecutions>
                <pluginExecution>
                  <pluginExecutionFilter>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-antrun-plugin</artifactId>
                    <versionRange>[1.6,)</versionRange>
                    <goals>
                      <goal>run</goal>
                    </goals>
                  </pluginExecutionFilter>
                  <action>
                    <ignore />
                  </action>
                </pluginExecution>
              </pluginExecutions>
            </lifecycleMappingMetadata>
          </configuration>
        </plugin>
        <!-- Apply Backward compatibility Aspects using the strategy described at
          http://blogs.sonatype.com/john/2007/11/09/1194630418546.html -->
        <plugin>
          <groupId>org.codehaus.mojo</groupId>
          <artifactId>aspectj-maven-plugin</artifactId>
          <executions>
            <execution>
              <id>backward-compatibility-aspects</id>
              <goals>
                <goal>compile</goal>
              </goals>
              <configuration>
                <aspectDirectory>src/main/aspect/compatibility</aspectDirectory>
              </configuration>
            </execution>
          </executions>
        </plugin>
        <!-- Don't check for legacy dependency usages in legacy modules since they can depend on one another -->
        <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-enforcer-plugin</artifactId>
          <executions>
            <execution>
              <id>enforce-no-legacy-dependencies</id>
              <configuration>
                <skip>true</skip>
              </configuration>
            </execution>
          </executions>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>
</project>
