45 lines
2.0 KiB
XML
45 lines
2.0 KiB
XML
<!--This file is used by grapes to download dependencies from a maven repository.
|
|
This is just a template and can be edited to add more repositories.
|
|
-->
|
|
<!--
|
|
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>
|
|
<!--name of the defaultResolver should always be 'downloadGrapes'. -->
|
|
<settings defaultResolver="downloadGrapes"/>
|
|
<!-- Only set maven.local.repository if not already set -->
|
|
<property name="maven.local.repository" value="${user.home}/.m2/repository" override="false" />
|
|
<property name="m2-pattern"
|
|
value="file:${maven.local.repository}/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
|
|
override="false"/>
|
|
<resolvers>
|
|
<!-- more resolvers can be added here -->
|
|
<chain name="downloadGrapes">
|
|
<!-- This resolver uses ibiblio to find artifacts, compatible with maven2 repository -->
|
|
<ibiblio name="central" m2compatible="true"/>
|
|
<url name="local-maven2" m2compatible="true">
|
|
<artifact pattern="${m2-pattern}"/>
|
|
</url>
|
|
<!-- File resolver to add jars from the local system. -->
|
|
<filesystem name="test" checkmodified="true">
|
|
<artifact pattern="/tmp/[module]-[revision](-[classifier]).jar"/>
|
|
</filesystem>
|
|
|
|
</chain>
|
|
</resolvers>
|
|
</ivysettings>
|