A Plugin, IMHO, is atomic. I don't think you can actually have 2 plugins inter-communicate (the way you need it), except for reading the configuration from pom.xml, which was on one of the threads on the user@ or dev@ list just a couple of days ago.

What is your use-case - there might be another way of doing what you want to?

Cheers,
Rahul


----- Original Message ----- From: "Jimisola Laursen" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, July 14, 2006 2:45 AM
Subject: Inter Plugin communication



Hi!

Is it possible to communicate between plugins run in the same build?
I would like a "Build Conext" where plugins can set properties/objects for
use by plugins following in execution.

E.g. Plugin A gathers some information that is input for plugin B. Now, I solve it by having plugin A write to file(s) and this/these then acts as
input for plugin B.

I notice in the generated plugin.xml (see below) that there are  some
"interesting" tags (like <instantiationStrategy> and <executionStrategy>), but I can't seem to find information on these. "Use the source Luke" or is
it available and if so where?


Regards,
Jimisola

     <goal>generate</goal>
     <description></description>
     <requiresDirectInvocation>false</requiresDirectInvocation>
     <requiresProject>true</requiresProject>
     <requiresReports>false</requiresReports>
     <aggregator>false</aggregator>
     <requiresOnline>false</requiresOnline>
     <inheritedByDefault>true</inheritedByDefault>

<implementation>se.stickybit.maven.plugins.buildinfo.BuildInfoMojo</implementation>
     <language>java</language>
     <instantiationStrategy>per-lookup</instantiationStrategy>
     <executionStrategy>once-per-session</executionStrategy>

Regards,
Jimisola

--
View this message in context: http://www.nabble.com/Inter-Plugin-communication-tf1937787.html#a5309638
Sent from the Apache Maven Developers List forum at Nabble.com.


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



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

Reply via email to