Hi, I am trying to achieve something like this:
In parent pom i
<profile> <activation> <property> <name>Compile</name> <value>${project.artifactId}</value> ...
so if I run mvn -DCompile=mod1 install under the parent pom, it will only apply the profile settings to module 1, but not others.
Similarly, if I have
<profile> <activation> <property> <name>Compile</name> <value>${project.packaging}</value> ...
then running mvn -DCompile=war install under the parent pom, it will only apply the profile settings to those that will be packaged as war, but not jar or pom.
I tried, but it did not work properly. Did I miss something? Please, help.
PS there is no need to suggest workarounds, since I am only interested in this method. Itβs just impossible to answer, if so. thank you
source share