Geerbte Profile in Maven

Ich habe die folgenden Profile in meinem übergeordneten POM

<profile>
    <id>P1</id>
    <activation>
        <activeByDefault>true</activeByDefault>
    </activation>
</profile>

<profile>
    <id>P2</id>
    <activation>
        <file>
            <exists>${project.basedir}/src/main/whatever</exists>
        </file>
    </activation>
</profile>

Warum ist P1 im Kind-POM aktiv und P2 nicht?

Das Verzeichnis${project.basedir}/src/main/whatever, ist im übergeordneten Projekt nicht vorhanden, im untergeordneten Projekt jedoch.

Antworten auf die Frage(5)

Ihre Antwort auf die Frage