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

<!--
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

  https://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>
  <modelVersion>4.0.0</modelVersion>

  <!--
  This parent POM overrides most super POM defaults to test inheritance in child modules.
  -->

  <groupId>org.apache.maven.its.mng3843</groupId>
  <artifactId>parent-1</artifactId>
  <version>0.1</version>
  <packaging>pom</packaging>

  <name>parent-name</name>
  <description>parent-description</description>
  <url>https://parent.url/</url>
  <inceptionYear>2008</inceptionYear>
  <organization>
    <name>parent-org</name>
    <url>https://parent-org.url/</url>
  </organization>
  <licenses>
    <license>
      <name>parent-license</name>
      <url>https://parent.url/license</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <developers>
    <developer>
      <name>parent-developer</name>
    </developer>
  </developers>
  <contributors>
    <contributor>
      <name>parent-contributor</name>
    </contributor>
  </contributors>

  <mailingLists>
    <mailingList>
      <name>parent-mailing-list</name>
    </mailingList>
  </mailingLists>

  <prerequisites>
    <maven>2.0</maven>
  </prerequisites>

  <modules>
    <module>child-1</module>
    <module>child-2</module>
  </modules>

  <scm>
    <url>https://parent.url/trunk</url>
    <connection>http://parent.url/scm</connection>
    <developerConnection>https://parent.url/scm</developerConnection>
  </scm>
  <issueManagement>
    <url>https://parent.url/issues</url>
  </issueManagement>
  <ciManagement>
    <url>https://parent.url/ci</url>
  </ciManagement>
  <distributionManagement>
    <repository>
      <url>https://parent.url/dist</url>
      <id>parent.distros</id>
    </repository>
    <snapshotRepository>
      <url>https://parent.url/snaps</url>
      <id>parent.snaps</id>
    </snapshotRepository>
    <site>
      <url>https://parent.url/site</url>
      <id>parent.site</id>
    </site>
    <downloadUrl>http://parent.url/download</downloadUrl>
    <relocation>
      <message>parent-reloc-msg</message>
    </relocation>
  </distributionManagement>

  <properties>
    <parentProperty>parent-property</parentProperty>
    <overriddenProperty>parent-property</overriddenProperty>
  </properties>

  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>org.apache.maven.its.mng3843</groupId>
        <artifactId>parent-dep-a</artifactId>
        <version>1</version>
        <scope>test</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.apache.maven.its.mng3843</groupId>
      <artifactId>parent-dep-b</artifactId>
      <version>1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <repositories>
    <repository>
      <id>parent-remote-repo</id>
      <url>https://parent.url/remote</url>
    </repository>
  </repositories>

  <build>
    <defaultGoal>initialize</defaultGoal>
    <directory>out</directory>
    <sourceDirectory>src/main</sourceDirectory>
    <scriptSourceDirectory>src/scripts</scriptSourceDirectory>
    <testSourceDirectory>src/test</testSourceDirectory>
    <outputDirectory>out/main</outputDirectory>
    <testOutputDirectory>out/test</testOutputDirectory>
    <resources>
      <resource>
        <directory>res/main</directory>
      </resource>
    </resources>
    <testResources>
      <testResource>
        <directory>res/test</directory>
      </testResource>
    </testResources>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.its.plugins</groupId>
        <artifactId>maven-it-plugin-expression</artifactId>
        <version>2.1-SNAPSHOT</version>
        <executions>
          <execution>
            <phase>validate</phase>
            <goals>
              <goal>eval</goal>
            </goals>
            <configuration>
              <outputFile>target/pom.properties</outputFile>
              <expressions>
                <expression>project</expression>
              </expressions>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <reporting>
    <excludeDefaults>true</excludeDefaults>
    <outputDirectory>site</outputDirectory>
  </reporting>

  <profiles>
    <profile>
      <id>parent-profile</id>
    </profile>
  </profiles>
</project>
