Jason van Zyl wrote:

On Tue, 2003-07-15 at 15:39, Andy Jefferson wrote:


Trying to use the Beta 10 and having problems with repositories. I've
changed nothing in the configs and if I now do a 'maven clean' I get
failure to download for all dependencies.


I have maven installed on Linux in /usr/local/maven and have installed
the JAR's in the repository there. I heard something about using a
$user/.maven directory. On the only dependency that it managed to
download, it decided to put that in the users own space.


Anyone got a definitive statement on what is the policy with local repositories ?

What I would expect would be to try the users home, and then
$MAVEN_HOME, and then complain. What it *seems* to do is just check the
users space. If this is correct, this would be no good for group
working. I have a centralised repository and users shouldn't need to
duplicate this (or even put in symlinks to the ones they need).

Any clues ?



The default value for maven.repo.local is now defined in the default.properties file and it has a value of:

${maven.home.local}/repository

This will default to

~/.maven/repository

So you can override the value of maven.repo.local to set it to whatever
you desire but it now defaults to ~/.maven/repository to enable to use
of shared repositories.


So tell me if I'm getting this right...


I set $MAVEN_HOME to /usr/local/maven and maven.repo.local to /usr/local/maven/repository then I build b10. Now all of the users on the system can add $MAVEN_HOME/bin to their path and set maven.repo.local in their ~/build.properties and by doing so everyone will use the same, shared maven binary and 3rd party jars.

Yes?


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to