<?xml version="1.0" encoding="UTF-8"?>
<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>

    <groupId>org.bonej</groupId>
    <artifactId>bonej-aggregator</artifactId>
    <version>3.1.0-SNAPSHOT</version>
    <packaging>pom</packaging>

    <modules>
        <module>Modern</module>
    </modules>

    <properties>
      <maven.deploy.skip>true</maven.deploy.skip>
    </properties>

    <profiles>
        <profile>
            <id>legacy</id>
            <modules>
                <module>Legacy</module>
            </modules>
        </profile>
    </profiles>
</project>

<?xml version="1.0" encoding="UTF-8"?>
<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>

    <groupId>org.bonej</groupId>
    <artifactId>bonej-aggregator</artifactId>
    <version>4.0.0</version>
    <packaging>pom</packaging>

    <modules>
        <module>Modern</module>
        <module>Legacy</module>
    </modules>

    <properties>
      <maven.deploy.skip>true</maven.deploy.skip>
    </properties>
</project>

Include Legacy in aggregator POM
Include Legacy in aggregator POM
