On Wed, Jan 21, 2009 at 8:47 AM, keepfocusing <[email protected]>wrote:

>
> Hi,
>
> I want to set the local repository position with this expression
> "~/m2/repo", which is also used as an example in settings.xml. But it seems
> not working unless I change it into absolute path such as
> "/home/abc/m2/repo".
>
> 1) Is it a bug of maven?
> 2) How can I do if a reference to home directory is needed here?

I havn't tried it, but did you try referencing it by ${user.home}?

Found this example here:
http://maven.apache.org/settings.html

  ...
  <profiles>
    <profile>
      ...
      <properties>
        <user.install>${user.home}/our-project</user.install>
      </properties>
      ...
    </profile>
  </profiles>
  ...



Bye


>
>
> Thanks!
> --
> View this message in context:
> http://www.nabble.com/How-to-reference-home-directory-in-linux--tp21577957p21577957.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Haim

Reply via email to