I get a build error: 
   
  [INFO] Cannot execute mojo: effective-settings. It requires a project with an 
ex
isting pom.xml, but the build is not using one.
  

Alexandre Poitras <[EMAIL PROTECTED]> wrote:
  What does "mvn help:effective-settings" output?

On 4/20/06, Aaron Anderson wrote:
> 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.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to