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

  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>
  <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>http://parent.url/</url>
  <inceptionYear>2008</inceptionYear>
  <organization>
    <name>parent-org</name>
    <url>http://parent-org.url/</url>
  </organization>
  <licenses>
    <license>
      <name>parent-license</name>
      <url>http://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>
    <connection>http://parent.url/scm</connection>
    <developerConnection>https://parent.url/scm</developerConnection>
    <url>http://parent.url/trunk</url>
  </scm>
  <issueManagement>
    <url>http://parent.url/issues</url>
  </issueManagement>
  <ciManagement>
    <url>http://parent.url/ci</url>
  </ciManagement>
  <distributionManagement>
    <repository>
      <id>parent.distros</id>
      <url>http://parent.url/dist</url>
    </repository>
    <snapshotRepository>
      <id>parent.snaps</id>
      <url>http://parent.url/snaps</url>
    </snapshotRepository>
    <site>
      <id>parent.site</id>
      <url>http://parent.url/site</url>
    </site>
    <relocation>
      <message>parent-reloc-msg</message>
    </relocation>
    <downloadUrl>http://parent.url/download</downloadUrl>
  </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>http://parent.url/remote</url>
    </repository>
  </repositories>

  <build>
    <defaultGoal>initialize</defaultGoal>
    <directory>out</directory>
    <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>
            <goals>
              <goal>eval</goal>
            </goals>
            <phase>validate</phase>
            <configuration>
              <outputFile>target/pom.properties</outputFile>
              <expressions>
                <expression>project</expression>
              </expressions>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
    <sourceDirectory>src/main</sourceDirectory>
    <scriptSourceDirectory>src/scripts</scriptSourceDirectory>
    <testSourceDirectory>src/test</testSourceDirectory>
    <outputDirectory>out/main</outputDirectory>
    <testOutputDirectory>out/test</testOutputDirectory>
  </build>

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

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