Hi Charles,
With repository reference filtering, poms are filtered only when requested
via a virtual repo that has this feature turned on (and the original
deployed pom on the local repository is never modified). It helps in
preventing third-party dependencies from adding foreign resolution
repositories to the build, thus circumventing your organizational repo.
Nevertheless, this behavior can be turned off at will.
Keeping repositories in poms is possible and straightforward, but has some
drawbacks:
- Third party users of the pom will inherit the repositories defined (may
not be relevant in your case)
- Putting the repository configuration in the pom that is itself resolved
from that repository creates a chicken & egg problem. Also, when the pom is
cached in users local repository the process of making
any repository configuration changes is more complicated and error
prone, compared to changing a settings configuration file (need to reinstall
the parent pom separately on all user machines).
You may wish to look into the new settings provisioning feature of
Artifactory Pro, where you can just customize your settings with dynamic
logic (such as injecting the current user/pass), and then provision it to
users via a downloadbale URL resource (
http://wiki.jfrog.org/confluence/display/RTF/Filtered+Resources#FilteredResources-ProvisioningBuildToolSettings
).
Yoav
On Thu, May 26, 2011 at 3:52 PM, Charles Hudak <[email protected]> wrote:
> I'm not sure what the 'good reason' is. All of the plugin repository and
> regular repository references that artifactory stripped out pointed back TO
> IT. The idea was that I wanted a super pom that declared most of this stuff
> so that our entire development staff didn't have to maintain this repository
> configuration in their settings.xml.
>
>
> On Thu, May 26, 2011 at 12:18 AM, Yossi Shaul <[email protected]> wrote:
>
>> This is actually a feature of Artifactory virtual repositories. And for a
>> good reason :).
>> You can read about it here:
>> http://wiki.jfrog.org/confluence/display/RTF/Virtual+Repositories#VirtualRepositories-pomcleanup
>>
>> Yossi
>>
>> On Wed, May 25, 2011 at 18:00, Charles Hudak <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> We are using Artifactory 2.3.3.1 Power Pro Pack. I have a company super
>>> pom deployed with a <pluginRepositories> section that has several
>>> repositories configured that resolve to our local Artifactory instance. When
>>> I view that pom on the server I see the <pluginRepositories> section but
>>> when one of my builds pulls that pom down from the Artifactory server and I
>>> view the pom in the local repository, the <pluginRepositories> section has
>>> been stripped out somehow.
>>>
>>> Does anyone know why this is happening?
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> vRanger cuts backup time in half-while increasing security.
>>> With the market-leading solution for virtual backup and recovery,
>>> you get blazing-fast, flexible, and affordable data protection.
>>> Download your free trial now.
>>> http://p.sf.net/sfu/quest-d2dcopy1
>>> _______________________________________________
>>> Artifactory-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> vRanger cuts backup time in half-while increasing security.
>> With the market-leading solution for virtual backup and recovery,
>> you get blazing-fast, flexible, and affordable data protection.
>> Download your free trial now.
>> http://p.sf.net/sfu/quest-d2dcopy1
>> _______________________________________________
>> Artifactory-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> vRanger cuts backup time in half-while increasing security.
> With the market-leading solution for virtual backup and recovery,
> you get blazing-fast, flexible, and affordable data protection.
> Download your free trial now.
> http://p.sf.net/sfu/quest-d2dcopy1
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users