Hi,
I have one query on IVY repository.
My Ivy repository is placed in a different time zone (Let's assume United
States Central), And I am working in a different time zone (Let's assume
India). Now I need to download the latest time stamped jar from the remote ivy
repository to my workstation (located in India).
Problem being faced: Ivy on my workstation is not downloading the file from
remote repository and is picking up the one in local repository because the
clock on my workstation is on a different time zone that the clock on the
remote repository.
What I would like to know is how to resolve dependencies and download latest
jar across time zones.
And also I am attaching the ivysettings xml file.
Please send reply ASAP.
Prakkash K
Development | HJS
Mobile: +91 9620207756
Email: [email protected]
[email protected]
www.sapientnitro.com<http://www.sapientnitro.com/>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<ivysettings>
<settings defaultResolver="chain-resolver"/>
<property name="repository.dir" value="${basedir}/../../../ivyrepository/"/>
<property name="local-cache.dir" value="${repository.dir}/.ivy2/cache"/>
<property name="ivy.local.default.root" value="${ivy.default.ivy.user.dir}/local" override="false"/>
<property name="ivy.local.thirdpary.root" value="${ivy.default.ivy.user.dir}/sprintThirdPartyJars" override="false"/>
<property name="ivy.public.default.ivy.pattern" value="[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" override="true"/>
<property name="ivy.public.default.artifact.pattern" value="[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" override="true"/>
<property name="ivy.remote.ivyrepo" value="http://144.226.220.254:8001/ivyrepository" override="true"/>
<!-- Create a local cache of any downloads, and never delete them. -->
<caches defaultCacheDir="${local-cache.dir}"/>
<resolvers>
<!--Third Party Reslover -->
<filesystem name="sprint-local" checkmodified="true" changingPattern="GBL-.*" latest="latest-time">
<ivy pattern="${ivy.local.thirdpary.root}/${ivy.public.default.ivy.pattern}" />
<artifact pattern="${ivy.local.thirdpary.root}/${ivy.public.default.artifact.pattern}" />
</filesystem>
<chain name="chain-resolver" checkmodified="true" changingPattern="GBL-.*" latest="latest-time">
<filesystem name="local-ivy-repo" checkmodified="true" changingPattern="GBL-.*" latest="latest-time">
<ivy pattern="${ivy.local.default.root}/${ivy.public.default.ivy.pattern}" />
<artifact pattern="${ivy.local.default.root}/${ivy.public.default.artifact.pattern}" />
</filesystem>
<url name="sprint-module-ivy-repo" checkmodified="true" changingPattern="GBL-.*" latest="latest-time">
<!-- remote enterprise repository -->
<ivy pattern="${ivy.remote.ivyrepo}/${ivy.public.default.ivy.pattern}" />
<artifact pattern="${ivy.remote.ivyrepo}/${ivy.public.default.artifact.pattern}" />
</url>
<url name="sprint-ivy-repo" checkmodified="true" changingPattern="GBL-.*" latest="latest-time">
<!-- remote enterprise repository -->
<ivy pattern="${ivy.remote.ivyrepo}/sprintThirdPartyJars/${ivy.public.default.ivy.pattern}" />
<artifact pattern="${ivy.remote.ivyrepo}/sprintThirdPartyJars/${ivy.public.default.artifact.pattern}" />
</url>
</chain>
</resolvers>
<latest-strategies>
<latest-time/>
</latest-strategies>
<modules>
<module organisation="sprint" name=".*" resolver="chain-resolver" />
</modules>
</ivysettings>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]