Wendy Smoak wrote:
> What about the declaration for docletArtifact itself?  What type
> should it be?  I would think, 'Artifact' except that you wrote:
> 
>> Artifact artifact = factory.createArtifact( docletArtifact.getGroupId(),
>> docletArtifact.getArtifactId(), docletArtifact.getVersion(), "jar" );
> 
> And yet... all the methods you're calling on docletArtifact look like
> the ones from the Artifact interface.  I'm lost.  How does this work?

There is no plexus configuration handler for the "Artifact" type. So it
can't create it (you could pass implementation=o.a.m.a.DefaultArtifact,
but it has no default constructor so in this case it won't work and
that's verbose in the POM anyway).

You need to create your own class in the same package as the plugin with
the given fields. Sorry I omitted that information :)

> I'm looking at SiteMojo.java but can't quite match up the pieces.

Actually, I just remembered though I did this originally, I moved the
configuration of the skin out to the site descriptor, so its different
for configuring (though the usage is the same).

- Brett

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

Reply via email to