comparison ssdt.default.ivy.settings.xml @ 48:561ece0a8225

Return to using snapshot resolver to ensure ivy.xml file from dependency can be found and improve performance and tracbility. removed changing from chain. Modified local to be treated as local.
author smith@nwoca.org
date Thu, 16 Jun 2011 17:26:39 -0400
parents f1c7d93a41c8
children 9c652e2c5f60
comparison
equal deleted inserted replaced
47:f1c7d93a41c8 48:561ece0a8225
3 the project's local ivysettings.xml file. 3 the project's local ivysettings.xml file.
4 --> 4 -->
5 <ivysettings> 5 <ivysettings>
6 <settings defaultResolver="default"/> 6 <settings defaultResolver="default"/>
7 <caches defaultCacheDir="${user.home}/.ivy2/cache" useOrigin="true"> 7 <caches defaultCacheDir="${user.home}/.ivy2/cache" useOrigin="true">
8 <cache name="ssdt-cache" basedir="${user.home}/.ivy2/ssdt-cache"/> 8 <cache name="snapshot-cache" basedir="${user.home}/.ivy2/snapshot-cache"/>
9 </caches> 9 </caches>
10 <property name="ivy.local.default.root" value="${user.home}/.ivy2/local" override="false"/> 10 <property name="ivy.local.default.root" value="${user.home}/.ivy2/local" override="false"/>
11 <property name="ivy.default.ivy.user.dir" value="${user.home}/.ivy2" override="false"/> 11 <property name="ivy.default.ivy.user.dir" value="${user.home}/.ivy2" override="false"/>
12 <include url="${ivy.default.settings.dir}/ivysettings-public.xml"/> 12 <include url="${ivy.default.settings.dir}/ivysettings-public.xml"/>
13 <include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/> 13 <include url="${ivy.default.settings.dir}/ivysettings-shared.xml"/>
14 <include url="${ivy.default.settings.dir}/ivysettings-local.xml"/> 14 <include url="${ivy.default.settings.dir}/ivysettings-local.xml"/>
15 <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/> 15 <include url="${ivy.default.settings.dir}/ivysettings-main-chain.xml"/>
16 <include url="${ivy.default.settings.dir}/ivysettings-default-chain.xml"/> 16 <include url="${ivy.default.settings.dir}/ivysettings-default-chain.xml"/>
17 <resolvers > 17 <resolvers >
18 <chain name="default" checkmodified="true" changingMatcher="*.*SNAPSHOT"> 18 <chain name="default">
19 <filesystem name="local" checkmodified="true" force="true" cache="ssdt-cache" changingPattern=".*SNAPSHOT" > 19 <filesystem name="local" checkmodified="true" force="true" local="true" changingPattern=".*SNAPSHOT" >
20 <ivy pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" /> 20 <ivy pattern="${ivy.local.default.root}/${ivy.local.default.ivy.pattern}" />
21 <artifact pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}" /> 21 <artifact pattern="${ivy.local.default.root}/${ivy.local.default.artifact.pattern}" />
22 </filesystem> 22 </filesystem>
23 23
24 <url name="ssdt-snapshots" changingMatcher=".*SNAPSHOT" checkmodified="true" m2compatible="true" cache="snapshot-cache">
25 <artifact pattern="http://repos.ssdt.nwoca.org/artifactory/libs-snapshots/[organisation]/[module]/[revision]/[artifact]-[revision](-[classifier]).[ext]" />
26 <ivy pattern="http://repos.ssdt.nwoca.org/artifactory/libs-snapshots/[organisation]/[module]/[revision]/ivy.xml" />
27 </url>
24 28
25 29 <ibiblio name="ssdt-repo" m2compatible="true" root="http://repos.ssdt.nwoca.org/artifactory/ssdt-repo" />
26 <!-- Need two ways to access the Artifactory repository, as it was not getting ALL of the remote repositoires with just the URL. Another
27 way to do this might be to add the pattern used by ibiblio into the url resolver, but it works this way as long as we name the
28 url and ibiblio differently. It's a good way to make sure we get everything. The mscompatible="true" is necessary as it converts dots
29 in organisation into slashes, which is necessary in this case.
30 -->
31 <url name="ssdt-repo-one" m2compatible="true">
32 <ivy pattern="http://repos.ssdt.nwoca.org/artifactory/ssdt-repo/[organisation]/[module]/[revision]/[artifact].[ext]"/>
33 <artifact pattern="http://repos.ssdt.nwoca.org/artifactory/ssdt-repo/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"/>
34 </url>
35
36
37 <ibiblio name="ssdt-repo-two" root="http://repos.ssdt.nwoca.org/artifactory/ssdt-repo/" m2compatible="true"/>
38
39
40 30
41 </chain> 31 </chain>
42 </resolvers> 32 </resolvers>
43 </ivysettings> 33 </ivysettings>