Not sure if this is your situation but I seem to remember that if you have
profiles in a separate profiles.xml file that they don't propagate (as I had
expected they would).
Ryan Breidenbach wrote:
I know this question has been posed many times, but I have yet to find
an adequate answer. I typically find things like this (from the Maven
wiki at http://docs.codehaus.org/display/MAVEN/Build+Profiles):
"Note that the profiles are inherited, but only in such a way as they
are applied to a parent POM before the inheritence of the parent and
child is performed, so the settings required are already present. This
ensures the proper precedence occurs (child and its profiles win over
the profile of a parent)."
I really have no idea what this means. What I really want to know is
that if I have a profile defined in a parent POM, if I explicitly
activate this profile in a module that inherits from that parent POM,
will the configuration in that profile take effect?
For example, I have this configuration in a parent POM:
<profiles>
<profile>
<id>clover-optimized</id>
<build>
<plugins>
<plugin>
<groupId>com.atlassian.maven.plugins</groupId>
<artifactId>maven-clover2-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>setup</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
However, if I execute the following command from a module that inherits
from this POM...
mvn install -Pclover-optimized
... the setup goal is not executed. Therefore, it appears to me that
this profile is *not* inherited. So, my question is this - is it
possible to inherit profile behavior. All documentation and comments on
this issue that I have found so far have been quite vague and unclear to
me.
Thanks.
Ryan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]