>
> Presumably you are trying to separate artifacts used by plugins during
> your build (where you might use e.g. GPL licensed modules) from artifacts
> used as dependencies in your project proper (where using that same GPL
> licensed modules would make your legal department scream) by separating the
> repositories used to provide them.
>
> As far as I know/understand all artifacts are downloaded to the same local
> cache repository (~/.m2/repository), regardless of whether they were
> required by some plugin or as a dependency of your project.
>
> This makes them available for both purposes and thus obliterates all your
> efforts of keeping them separate.
>
> Maven Masters: Please correct me if I'm wrong.
>

I don't think this is correct with Maven 3. Maven 3 uses Aether which AFAIK
keeps the repository id for the artifact to verify from where it was
downloaded. Haven't verified for this use case though.

So, using Maven 3 it should be possible to specify one repository
declaration for your deps and one pluginRepository declaration (with a
different repo id) for your plugins (incl deps). If you msut use mirror
declarations, I would use this for the deps and add exclusions (using '!')
for any pluginRepository.

/Anders


>
> Cheers,
> Wolf
>
>
>>
>>
>> On Mon, May 5, 2014 at 11:59 PM, Christian Domsch <[email protected]>
>> wrote:
>>
>>  Hi Dan,
>>>
>>> Did you consider using nexus? There you can setup any kind of strange
>>> repo
>>> setup your mind can come up with ;-) For your case, create one repo for
>>> your project stuff and one repo for your plugin stuff. Create a group for
>>> both for easy access and control access by authorization...
>>>
>>> Christian
>>>
>>>
>>> On 06.05.2014 06:29, Dan Tran wrote:
>>>
>>>  Thanks Barrie,
>>>>
>>>> Will see what I can can do.
>>>>
>>>>
>>>> On Mon, May 5, 2014 at 5:04 PM, Barrie Treloar <[email protected]>
>>>> wrote:
>>>>
>>>>   On 6 May 2014 09:21, Dan Tran <[email protected]> wrote:
>>>>
>>>>>   for legal purpose ( btw, please dont drill me here), I would like to
>>>>> use
>>>>>
>>>>>> one mirror as a gate way for all of of my project dependencies,and
>>>>>>
>>>>>>  another
>>>>>
>>>>>  mirror as a gate way for all of my plugins and their dependencies
>>>>>>
>>>>>>
>>>>>> is it possible? Posting a settings.xml config here is very much
>>>>>>
>>>>>>  appreciated
>>>>>
>>>>>
>>>>> Having not done this, here is some more insane advice.
>>>>>
>>>>> I'd use three.
>>>>> One proxy to proxy the other two proxies.
>>>>> All developers point to the master proxy.
>>>>> You can then configure the master proxy to refer to the project
>>>>> dependencies proxy and another for plugins dependencies proxy.
>>>>>
>>>>> You might need a more sophisticated maven repository manager that you
>>>>> can
>>>>> restrict what is allowed in the proxies (i.e. it just doesn't go and
>>>>> grab
>>>>> stuff for you).
>>>>>
>>>>> You're going to have to do a lot of fiddling to get this to work.
>>>>> I'm not convinced it is going to give you what legal thinks it will...
>>>>>
>>>>> If you could write up what you tried and whether it worked it would be
>>>>> helpful for anyone else attempting the same thing...
>>>>>
>>>>>
>>>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to