On Wednesday 21 January 2009 keepfocusing wrote:
> 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?

No. "~" is (usually) interpreted by the shell you are using. If it's in a 
configuration file the shell never sees it thus cannot replace it with the 
user's home directory. For maven "~" is just a character, nothing more.

> 2) How can I do if a reference to home directory is needed here?

As Haim said, try ${user.home}. I think this is a system property.

hth,
- martin

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to