You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Scott Tailor <sc...@netgiro.com> on 2006/03/27 09:21:39 UTC

[M2] Is there a variable for the local repository?

Is there a variable for the path to the user's local repository? I tried
using "${maven.home}/repository" in the pom but maven.home wasn't resolved.
Is there a ${repo.local} variable I could use? Or better yet anyway I can
look up the path of a dependency? Something like:

 

${pom.getDependencyPath?
<http://wiki.taylorit.com/jsp/Wiki?topic=DependencyPath&action=action_edit>
('org.springframework:spring-hibernate ')}?

 

/Scott

 

 

 


Re: [M2] Is there a variable for the local repository?

Posted by dan tran <da...@gmail.com>.
check out http://docs.codehaus.org/display/MAVENUSER/FAQs on how to lookup
path to dependencies

-D




On 3/26/06, dan tran <da...@gmail.com> wrote:
>
>  I assume this is maven2 question,  Your need to get a hold of
> maven-setting object to retreive the local repo path
> check maven-release-plugin source (AbstractReleaseMojo.java)
>
> -D
>
>
>  On 3/26/06, Scott Tailor <sc...@netgiro.com> wrote:
> >
> > Is there a variable for the path to the user's local repository? I tried
> > using "${maven.home}/repository" in the pom but maven.home wasn't
> > resolved.
> > Is there a ${repo.local} variable I could use? Or better yet anyway I
> > can
> > look up the path of a dependency? Something like:
> >
> >
> >
> > ${pom.getDependencyPath?
> > <http://wiki.taylorit.com/jsp/Wiki?topic=DependencyPath&action=action_edit
> > >
> > ('org.springframework:spring-hibernate ')}?
> >
> >
> >
> > /Scott
> >
> >
> >
> >
> >
> >
> >
> >
> >
>

Re: [M2] Is there a variable for the local repository?

Posted by dan tran <da...@gmail.com>.
I assume this is maven2 question,  Your need to get a hold of maven-setting
object to retreive the local repo path
check maven-release-plugin source (AbstractReleaseMojo.java)

-D


On 3/26/06, Scott Tailor <sc...@netgiro.com> wrote:
>
> Is there a variable for the path to the user's local repository? I tried
> using "${maven.home}/repository" in the pom but maven.home wasn't
> resolved.
> Is there a ${repo.local} variable I could use? Or better yet anyway I can
> look up the path of a dependency? Something like:
>
>
>
> ${pom.getDependencyPath?
> <http://wiki.taylorit.com/jsp/Wiki?topic=DependencyPath&action=action_edit
> >
> ('org.springframework:spring-hibernate ')}?
>
>
>
> /Scott
>
>
>
>
>
>
>
>
>