[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aether-users] Disabling artifact installation to local-repo?
|
Why are you trying to do that?
In the Maven world if you dont want users to have to compile and install dependencies you just ensure that they are available via a remote repository.
E,g, a CI build creates them automatically and installs them into a repository manager like Sonatype Nexus.
Then any other build that needs it just downloads them.
The same works with Leiningen. What is the problem you are trying to solve with your approach?
manfred
Colin Fleming wrote on 2015-08-07 14:13:
I dug into the code a little bit to see if I could figure out how this works. I was hoping to be able to have a DelegatingLocalRepositoryManager which accepted two local repos and read from both but only wrote to one, but I don't think it's possible. LocalRepositoryManager seems to only handle relative paths which are then calculated relative to its LocalRepository, of which there can be only one. And the LocalRepository doesn't know the context for which it's being called, so I can't mock anything out there. I also couldn't see a way to use a custom RemoteRepository for this - perhaps there's no way to do what I want?
Cheers,
Colin