On Jun 13, 2008, at 11:17 AM, Lilianne E. Blaze wrote:
Hello,
Vincent Massol wrote:
2) It needed mailsender plugin moved from plugins module to core module to avoid circulars and other nasties.
We need to find a solution for this since we'd like to keep the modules separate. This is actually our current effort: modularize XWiki and move everything to components.
One solution for now could be to set a dependency on the last released version of core with a provided scope.
I'm not sure I get it. MailSender depending on Core isn't the problem. The problem is Core depending on MailSender to get the glue code in XWiki.sendMessage working.
xwiki-core SNAPSHOT --> mailsender plugin SNAPSHOT version mailsender --> xwiki-core LATEST (i.e. 1.5M1 or 1.4.1)
The only other idea I have is to use reflection instead of direct use, which is not very pretty.
Besides, isn't MailSender 'core enough' to be in Core? It's a pretty basic functionality. There are about two dozen different packages in Core / com.xpn.xwiki.plugin already.
Yes, some plugins are core plugins and should be moved to xwiki- platform-core/ directory. But what we don't want is moved them inside xwiki-platform-core/xwiki-core module. I'm not sure my solution works with maven. It might still create a circular dep but it's worth verifying it.
And what about the other two questions?
I don't know the answers... Thanks -Vincent