On Tue, August 21, 2012 6:05 am, mjkelleher wrote:
> Hello,
>
> Is there a variable that I can use within a POM that resolves to the
> local repository path for the "current" project?  The install phase
> knows this path, as it gets displayed during the install phase.  I would
> like to be able to reference this same path.
>
> Thanks,

Maven exposes the settings content just like project content in variable.
E.g. just like you can access ${project.groupId} you can access the local
repo path with

${settings.localRepositoryPath}

More info here

http://www.sonatype.com/books/mvnref-book/reference/resource-filtering-sect-properties.html#resource-filtering-sect-settings-properties

http://www.sonatype.com/books/mvnref-book/reference/appendix-settings.html

and

http://maven.apache.org/settings.html

manfred
http://simpligility.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

  • Variable mjkelleher
    • Re: Variable Manfred Moser

Reply via email to