On Tue, 2005-11-08 at 22:08 -0500, David H. DeWolf wrote:
> I'm developing a plugin which requires an ArtifactFactory and
> ArtifactResolver and am attempting to get them injected. I have tried
> two approaches:
>
> @component role="org.apache.maven.artifact.resolver.ArtifactResolver"
> @component role="org.apache.maven.artifact.factory.ArtifactFactory"
What are you trying to do exactly?
> and
>
> @parameter
> expression="${component.org.apache.maven.artifact.resolver.ArtifactResolver}"
>
> @parameter
> expression="${component.org.apache.maven.artifact.factory.ArtifactFactory}"
>
> It appears the later approach is appropriate for 2.0 and the former is
> appropriate for the current trunk, however, I've tried both and am
> having no luck with either approach.
>
> Both approaches result in a NullPointerException which is hidden by a
> previously fixed bug in DiagnosisUtils (patch applied against the trunk)
> in which a secondary NullPointer is thrown if an exception message is null.
>
> Any ideas?
>
> Thanks,
>
> David
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
jvz.
Jason van Zyl
jason at maven.org
http://maven.apache.org
People develop abstractions by generalizing from concrete examples.
Every attempt to determine the correct abstraction on paper without
actually developing a running system is doomed to failure. No one
is that smart. A framework is a resuable design, so you develop it by
looking at the things it is supposed to be a design of. The more examples
you look at, the more general your framework will be.
-- Ralph Johnson & Don Roberts, Patterns for Evolving Frameworks
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]