If you want to do this in a mojo, look at 'resolving an artifact' in the Mojo Developer Cookbook: http://docs.codehaus.org/display/MAVENUSER/Mojo+Developer+Cookbook Use an artifact of type 'pom'.
On 11/21/06, Ole Ersoy <[EMAIL PROTECTED]> wrote:
Hi, I need to to create a path string representing a location of a pom in the local maven repository on Linux. What is the best way of going about this? One thought I had was to just get the USER environment variable and construct the repository path manually, but that assumes that the repository is located under /home/$user/.m2/repository And ideally Maven would be able to inject a parameter telling the plugin where the plugin what the path to the local repository base directory is. ideas? Thanks, - Ole ____________________________________________________________________________________ Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]