Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.1
-
Labels:None
-
Number of attachments :
Description
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.
Issue Links
- is related to
-
MANT-2
error "maven.repo.local" property in the ant file
-
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.