On 2007-04-24 15:25:48 +0200, Jason van Zyl <[EMAIL PROTECTED]> said:
On 24 Apr 07, at 5:48 AM 24 Apr 07, Jochen Kuhnle wrote:
Ok, did some further investigation: What I have is an extension
containing a class (C). This class is referenced in the fields of two
different Mojos, the fields are not even initialized by Plexus.
Looking at the new DefaultExtensionManager, I suppose this cannot work
any more, because the newly introduced extension container has its own
ClassRealm. When any of the plugins is instantiated by the
PluginManager, I get a NoClassDefFoundError for class C.
Does this mean that I cannot access classes from extensions in a
plugin any more? And that I cannot share data between plugins, except
by using JDK and Maven core classes?
This would be a major setback for us. We're using maven to build C+ +
projects and wrote a bunch of plugins, which absolutely need to share
data.
Provided they are in the same plugin you can always use the plugin context.
We also wrote a huge slew of plugins for C development and we created
a facility called the BuildContext for 2.1 because all these other
methods were brittle and we wanted a stated way to do it.
I'll think about a work around, you can probably use the plexus context.
How about letting the extension specify where it wants to go, main
container or extension container, with the last one as default? If
that's ok, I can create a patch.
Regards,
Jochen
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]