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"

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]

Reply via email to