I am writing a maven 2 plugin that can be used to invoke some JMX operations on
a server and I would like it to be able to be run the plugin from any
directory. This plugin has parameters that's values are set from properties set
in a profile defined in the settings.xml (bad form, I know). I have added the
requiresProject=false annotation to the plugin so I can run it in the absence
of a POM file. The plugin works fine when a POM is present.
However, when I run the plugin without a POM the plugin's parameters thats
values are set with expressions that reference the properties from the
settings.xml profile are not set. It seems the settings.xml file is not loaded
and the active profiles properties are not loaded into the plugin.
Is this an expected behavior? Even without a POM present the super-pom is
loaded so I would think the settings.xml should still be loaded and the profile
properties applied to the plugin.