| <!-- |
| 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 |
| |
| https://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> |
| <properties file="ivysettings.properties"/> |
| <caches default="mycache2" resolutionCacheDir="${ivy.basedir}/resolution" |
| repositoryCacheDir="${ivy.basedir}/repository" |
| ivyPattern="[module]/ivys/ivy-[revision].xml" |
| artifactPattern="[module]/[type]s/[artifact]-[revision].[ext]" |
| useOrigin="true" |
| lockStrategy="artifact-lock"> |
| <cache name="mycache" |
| basedir="${ivy.basedir}/mycache" |
| ivyPattern="[module]/ivy-[revision].xml" |
| artifactPattern="[module]/[artifact]-[revision].[ext]" |
| useOrigin="false" |
| lockStrategy="no-lock" |
| defaultTTL="1s"> |
| <ttl revision="latest.integration" duration="200ms" /> |
| <ttl organisation="org1" duration="10m 20s" /> |
| <ttl organisation="org2" duration="5h" /> |
| <ttl organisation="org3" duration="2d 12h" /> |
| </cache> |
| <cache name="mycache2" /> |
| </caches> |
| <resolvers> |
| <filesystem name="A"> |
| <ivy pattern="${shared}/[organisation]/[module]/ivys/ivy-[revision].xml"/> |
| <artifact pattern="${shared}/[organisation]/[module]/[type]s/[artifact]-[revision].[type]"/> |
| </filesystem> |
| <filesystem name="B" cache="mycache"> |
| <ivy pattern="${libraries.dir}/[organisation]/[module]/ivys/ivy-[revision].xml"/> |
| <artifact pattern="${libraries.dir}/[organisation]/[module]/[type]s/[artifact]-[revision].[type]"/> |
| </filesystem> |
| </resolvers> |
| </ivysettings> |