Suppose I have a module A:jar, whose runtime and compilation set of dependencies depends on the JDK version. In my example, I have a pre-jdk6-profile
Several notes way after the fact:
-P profName, it activates a profile named 'profName' tag for them. It doesn't matter whether they are activated by the java version, as in the example, or by default or env value or anything.Solution: Either use or use -P but do not use both.