ivysettings.xml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <!--This file is used by grapes to download dependencies from a maven repository.
  16. This is just a template and can be edited to add more repositories.
  17. -->
  18. <ivysettings>
  19. <!--name of the defaultResolver should always be 'downloadGrapes'. -->
  20. <settings defaultResolver="downloadGrapes"/>
  21. <!-- Only set maven.local.repository if not already set -->
  22. <property name="maven.local.repository" value="${user.home}/.m2/repository" override="false" />
  23. <property name="m2-pattern"
  24. value="file:${maven.local.repository}/[organisation]/[module]/[revision]/[module]-[revision](-[classifier]).[ext]"
  25. override="false"/>
  26. <resolvers>
  27. <!-- more resolvers can be added here -->
  28. <chain name="downloadGrapes">
  29. <!-- This resolver uses ibiblio to find artifacts, compatible with maven2 repository -->
  30. <ibiblio name="central" m2compatible="true"/>
  31. <url name="local-maven2" m2compatible="true">
  32. <artifact pattern="${m2-pattern}"/>
  33. </url>
  34. <!-- File resolver to add jars from the local system. -->
  35. <filesystem name="test" checkmodified="true">
  36. <artifact pattern="${test.tmp.dir}/[module]-[revision](-[classifier]).jar"/>
  37. </filesystem>
  38. </chain>
  39. </resolvers>
  40. </ivysettings>