Hi Kristian, Igor,

I think i have found the way to inject custom objects into plugin execution
without SPI.

Look at this example
http://docs.codehaus.org/display/GMAVENPLUS/Examples#Examples-ExecuteScripts

The user can write a trivial script launched like this



and write a RunOrder servis by setting it in to execution property:

<<someScript.groovy>>
hook.set(new RunOrder());

Tha's it, very simple. 
All we need to do is to provide the execution property 'hook' - the name is
just for illustration purposes only.



--
View this message in context: 
http://maven.40175.n5.nabble.com/Plugable-Softcoded-Customized-Maven-Plugins-tp5823365p5823467.html
Sent from the Maven Developers mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to