| //// |
| 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. |
| //// |
| |
| = URL resolver |
| |
| [] |
| |======= |
| |Tag|url |
| |Handle latest|yes with HTTP URLs (and Apache server) and with file URLs, no with other URLs |
| |Handle publish|yes with HTTP URLs whose destination supports publishing (as of Ivy 2.0) |
| |======= |
| |
| |
| [ivysettings.resolvers.url]#This resolver is one of the most generic. In fact, most of the previous resolvers can be obtained by a particular configuration of this one.# Indeed it uses URLs to find Ivy files and artifacts. The URLs it uses are defined through Ivy and artifact children, each giving a pattern to find Ivy files or artifacts. |
| |
| *Limitation*: in `m2compatible` mode, this resolver is not able list available organizations. It means some features like link:../use/repreport{outfilesuffix}[repreport] are not available. |
| |
| |
| == Attributes |
| |
| This resolver shares the link:../settings/resolvers{outfilesuffix}#common[common attributes] of standard resolvers. |
| |
| [options="header",cols="15%,50%,35%"] |
| |======= |
| |Attribute|Description|Required |
| |m2compatible|True if this resolver should be Maven 2 compatible, false otherwise (*__since 1.3__*)|No, defaults to false |
| |======= |
| |
| |
| == Child elements |
| |
| |
| [options="header"] |
| |======= |
| |Element|Description|Cardinality |
| |ivy|defines a pattern for Ivy files, using the pattern attribute|0..n |
| |artifact|defines a pattern for artifacts, using the pattern attribute|1..n |
| |======= |
| |
| |
| |
| == Example |
| |
| |
| [source, xml] |
| ---- |
| |
| <url name="two-patterns-example"> |
| <ivy pattern="http://ivyrep.mycompany.com/[module]/[revision]/ivy-[revision].xml"/> |
| <artifact pattern="http://ivyrep.mycompany.com/[module]/[revision]/[artifact]-[revision].[ext]"/> |
| <artifact pattern="http://ivyrep.mycompany.com/[module]/[revision]/[artifact].[ext]"/> |
| </url> |
| |
| ---- |
| |
| Looks for Ivy files in one place and for artifacts in two places: with or without revision in name (revision being already in the directory structure). |