Issue Details (XML | Word | Printable)

Key: MAVEN-1591
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Jamie Bisotti
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 1

'maven.repo.local' not honored by all

Created: 11/Apr/05 12:51 PM   Updated: 13/Apr/06 05:52 PM
Return to search
Component/s: None
Affects Version/s: 1.0.2
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Windows XP SP2; Java 1.5.0_02; Maven 1.0.2


 Description  « Hide

1. In project.properties file, set maven.repo.local=C:\blah\repository
2. Delete, completely, %HOMEDRIVE%%HOMEPATH%\.maven\repository, if it already exists
3. Run maven java:compile
4. I see where it downloads my project's dependencies, and places them in the appropriate local repository location (see maven.repo.local above)
5. However, it also downloads commons-lang, antlr & commons-jelly-tags-antlr, which I'm assuming Maven is using under the covers. That wouldn't be a problem, except they are still being put in %HOMEDRIVE%%HOMEPATH%\.maven\repository. Am I missing some other property, or is this a bug?



Brett Porter added a comment - 16/May/05 02:21 AM

confirmed bug


Davy Toch added a comment - 04/Sep/05 09:00 AM

I think it's best to override maven.repo.local it in ${user.home}/build.properties. In this case the problem you indicated doesn't appear.

On the other hand : is there a sense in overriding the default value of maven.repo.local in project.properties?

  • if you have 20 Maven projects that have to use the same local repository, then you have to verify 20 times project.properties
  • having several local Maven repositories on your machine seems pointless to me (it is only a local cache of what is available on the central repositories)

Jamie Bisotti added a comment - 06/Sep/05 11:03 AM

If a property can be over-ridden, it should be capable of being over-ridden from anywhere (i.e. command line, ${user.home|/build.properties, project.properties, etc.). A new user might not think to try all 10,000 different ways of doing the same thing; they might (probably will) stop after the first, obvious, way of doing it does not work. I'm not saying putting it in project.propeties makes sense or is the best way to do it; I'm saying it isn't working as advertised.

So, are you saying putting it in ${user.home}/build.properties works with 1.0.2?

Jamie


Davy Toch added a comment - 07/Sep/05 06:10 PM

Regarding your question:

"So, are you saying putting it in ${user.home}/build.properties works with 1.0.2?"

Answer : yes (tested on Maven 1.0.2 and Maven 1.1 beta1)