> -----Original Message-----
> From: Stephen McConnell [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 17, 2003 3:20 PM
> The problem is that you are setting the merlin cache directory to a
> value that is also included in the set of remote hosts.
>
> You can see this in the following debug statement:
>
> [DEBUG ] (kernel): repository established:
> cache:file:\C:\Data\OBergner\Maven\repository,
> file:/C:/Data/OBergner/Maven/repository/, http://dpml.net/,
> http://www.ibiblio.org/maven/
I thought so, too, but looking at
final File cache = new File(getBaseDirectory(), "cache");
final File repo = new File(getMavenLocalHome(), "repository");
final String repository = repo.toURL().toExternalForm();
final String[] hosts =
{
repository,
"http://dpml.net",
"http://www.ibiblio.org/maven/" };
InitialContext context = new DefaultInitialContext(cache, hosts);
Builder builder = new DefaultBuilder(context, artifact);
you will notice that I pass the *cache* (which is definitely different from
the repo) to the DefaultInitialContext ctor, whereas the hosts contain the
maven repo. Why would merlin end up using "cache" both as a cache and as a
repository?
> You can correct the problem by removing the
> file:/C:/Data/OBergner/Maven/repository/ from the list of remote hosts.
No, this does not work, either. What's more, this would directly contravene
what I am trying to achieve: controlling merlin's usage of (remote/local)
repositories.
Thanks,
Olaf
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]