Hi,

as the plugin developer list over at codehaus seems to be down, I hope to
get an answer here:

I want to get the full absolute path to some artifact in the local
repository. So what I want is:
input: groupId, artifactId, version
output: absolute path to that artifact in local repository
For reasons not to be explained here, the plugin can not have
@requiresDependencyResolution set and can not have the wanted artifact in
its dependencies in the POM.

Does the Maven API offer such a function for use inside of a plugin?
What I currently do and what works is having a parameter with
     * @parameter
expression="${settings.localRepository}/<groupId>/<artifactId>/<version>/<ar
tifactId>-<version>.jar"
(fill in <groupId>, <artifactId>, <version> with the appropriate values)
It works, but does not look like a clean way to me as it involves knowledge
about the inner structure of the local repository, which might be subject to
change.

A surplus would be to have a way to get this artifact downloaded if it's not
present - but remember, without having to add it to the POM.


thanks in advance!
greetings,

Mit freundlichen Grüßen

i.A. Detlef Pleiß
________________________________________________________________

Mit einem Klick alles im Blick, dank Informatik
Partner im Wissenschaftsjahr 2006 – www.Informatikjahr.de
________________________________________________________________

Datenverarbeitungskaufmann
Detlef Pleiß


Senior IT-Berater

comundus GmbH
Schüttelgrabenring 3, 71332 Waiblingen

Telefon  +49 (0)71 51-5 00 28-22
Internet www.comundus.com

IT EXCELLENCE by comundus.
________________________________________________________________


Reply via email to