<?xml version="1.0" encoding="UTF-8"?>
<!--
   Copyright (C) 2024, Obeo

   All rights reserved. This program and the accompanying materials
   are made available under the terms of the Eclipse Public License v2.0
   which accompanies this distribution, and is available at
   http://www.eclipse.org/legal/epl-v20.html
-->

<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>org.eclipse.acceleo</groupId>
  <artifactId>org.eclipse.acceleo-parent</artifactId>
  <version>4.2.1</version>
  <packaging>pom</packaging>
  <name>Acceleo Maven Parent</name>

  <properties>
    <maven-repository>repository</maven-repository>
    <maven.compiler.source>17</maven.compiler.source>
    <maven.compiler.target>17</maven.compiler.target>
    <maven-dependency-plugin-version>3.8.1</maven-dependency-plugin-version>
    <maven-deploy-plugin-version>3.1.3</maven-deploy-plugin-version>
    <maven-clean-plugin-version>3.4.0</maven-clean-plugin-version>
    <deployURL>file://${maven.multiModuleProjectDirectory}/${maven-repository}</deployURL>
  </properties>

  <repositories>
    <repository>
      <id>Acceleo Repository</id>
      <url>${deployURL}-p2</url>
    </repository>
  </repositories>

  <distributionManagement>
    <repository>
      <id>repo.eclipse.org</id>
      <name>Acceleo Repository - Releases</name>
      <url>${deployURL}</url>
    </repository>
    <snapshotRepository>
      <id>repo.eclipse.org</id>
      <name>Acceleo Repository - Snapshots</name>
      <url>${deployURL}</url>
    </snapshotRepository>
  </distributionManagement>

  <modules>
    <module>aql</module>
    <module>acceleo</module>
  </modules>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clean-plugin</artifactId>
        <version>${maven-clean-plugin-version}</version>
        <configuration>
          <filesets>
            <fileset>
              <directory>${maven-repository}</directory>
            </fileset>
          </filesets>
        </configuration>
      </plugin>
    </plugins>
  </build>

</project>
