Hi Farhan,

I think you can do what you want with a profile:

<http://maven.apache.org/guides/introduction/introduction-to-profiles.html>

If you put your plugin's settings in a profile, then you could then use
a cmdline something like:

  mvn -P profile-id plugin:goal

Steve

Farhan Sarwar wrote:
> Basically I would want to run some maven goal for which I have provided the
> configuration (e.g. the parameters it expects and other stuff) in a pom for
> a project. Now what I would want to achieve is somehow associate a unique id
> (which I guess in ant is called a target) associated with these settings I
> have defined (like the plugin-name, the goal to execute, and the parameters
> required for that goal) and call it directly (giving it just the id)  like
> mvn "[uniqueID]" and hence run that plugin/goal associated with that id
> instead of running an entire build and process everything defined in that
> pom (or otherwise where I could still achieve the objective)? I know maven
> does provide a way to call a goal directly but I would want to further
> xmlify the settings/parameters for that goal (within a plugin) and run it
> independently.


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

Reply via email to