[ 
http://jira.codehaus.org/browse/MANT-34?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_128221
 ] 

Benjamin Bentmann commented on MANT-34:
---------------------------------------

I just tweaked your original fix such that the {{maven-build.xml}} always uses 
the generic value "${user.home}/.m2/repository". This build file is meant to be 
under version control and hence shared among different users, absolute paths 
are not of any use here.

The path to the local repo is a user-specific setting, it should therefore be 
configured in the {{${user.home\}/.m2/maven.properties}} that is imported by 
the {{maven-build.xml}}.

> The generated maven-build.xml and maven-build.properties contains absolute 
> path to local repository
> ---------------------------------------------------------------------------------------------------
>
>                 Key: MANT-34
>                 URL: http://jira.codehaus.org/browse/MANT-34
>             Project: Maven 2.x Ant Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Dennis Lundberg
>            Assignee: Dennis Lundberg
>             Fix For: 2.1
>
>
> Even though the local repository is in the default location 
> ${user.home}/.m2/repository, the generated files contains absolute paths for 
> maven.repo.local. Ant knows about ${user.home} so that can be used in both 
> files.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to