On 1/10/06, Brett Porter <[EMAIL PROTECTED]> wrote:

> <docletArtifact>
>   <groupId>umlgraph</groupId>
>   <artifactId>umlgraph</artifactId>
>   <version>4.2</version>
> </docletArtifact>
>
> Then in the javadoc plugin:
>
> /** @component */
> private ArtifactResolver resolver;
>
> /** @component */
> private ArtifactFactory factory;
>
> /** @parameter expression="${localRepository}" */
> private ArtifactRepository localRepository;
>
> /** @parameter expression="${project.remoteArtifactRepositories}" */
> private List remoteRepositories;

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?

I think all I'm missing is this part and it should just work:

/** @something */
private SomeType docletArtifact;

> I did this recently in the site plugin for skins as an example. It takes
> care of all the repository stuff. Any volunteers to write this up as a
> howto? :)

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

Thanks,
--
Wendy

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

Reply via email to