You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jeff <pr...@gmail.com> on 2011/01/20 08:04:55 UTC
Determining where a value/property is being changed (POM debugging?)
I'm using Maven v2.2.1 with NetBeans 6.9.1 and this could be a NetBeans
issue but thought I'd check here.
I have profiles in my POM that when activated, set a system property via the
maven-surefire-plugin systemPropertyVariables setting to determine which
testing configuration (dev, test, staging, etc.) to load via a properties
file.
I've been fighting how to get this working because the property was not
getting set. I finally figured out that if I explicitly set the value
<skip>false</skip> in the surefire plugin settings for the active profile,
that it works.
If I omit the <skip>false</skip> line, the configuration seems to be
skipped, even though it starts the test class in the debugger.
I don't depend explicitly on a parent POM, nor do I override
maven.test.skip. The command-line being used by NetBeans is activating the
profile using the -P option as expected.
Is there a way to determine where the "skip" property is being change/set?
Thanks!
--
Jeff Vincent
predatorvi@gmail.com
See my LinkedIn profile at:
http://www.linkedin.com/in/rjeffreyvincent