<?xml version="1.0" encoding="ISO-8859-1"?>
<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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <!--
        $ docker run -it -\-rm -v "$(pwd)":/wd -w /wd/child-2 maven:3.3-jdk-8 mvn dependency:tree
        ...
        [INFO] my.org:child-2:jar:2.1.90
        [INFO] +- org.apache.commons:commons-lang3:jar:3.13.0:compile
        [INFO] +- org.apache.commons:commons-math3:jar:3.5:compile
        [INFO] +- org.apache.commons:commons-exec:jar:1.3:compile
        [INFO] +- org.apache.commons:commons-text:jar:1.12.0:compile
        [INFO] +- org.apache.commons:commons-collections4:jar:4.2:compile
        [INFO] \- junit:junit:jar:4.12:test
        [INFO]    \- org.hamcrest:hamcrest-core:jar:1.3:test
    -->

    <parent>
        <groupId>my.org</groupId>
        <artifactId>parent-one</artifactId>
        <version>3.11.0</version>
    </parent>

    <groupId>${project.parent.groupId}</groupId>
    <artifactId>child-two</artifactId>
    <version>2.1.90</version>
    <packaging>jar</packaging>

    <properties>
        <commons.collections4.version>4.2</commons.collections4.version>
        <commons.junit.version>4.12</commons.junit.version>
        <project.parent.groupId>my.other.org</project.parent.groupId>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-math${project.parent.version}</artifactId>
            <version>3.5</version>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-exec</artifactId>
            <version>1.${commons-exec_subversion}</version>
        </dependency>
    </dependencies>

</project>
