Wendy Smoak wrote:
> Can you expand on that? :) I gather this would keep me from having to
> give the path to the jar file (which is obviously not portable, but I
> was in "just make it work" mode at that point.)
Yep, exactly.
eg:
<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;
...
Artifact artifact = factory.createArtifact( docletArtifact.getGroupId(),
docletArtifact.getArtifactId(), docletArtifact.getVersion(), "jar" );
resolver.resolve( artifact, remoteRepositories, localRepository );
String docletPath = artifact.getFile().getAbsolutePath();
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? :)
- Brett
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]