1<?xml version="1.0" encoding="UTF-8"?> 2<!-- © 2020 and later: Unicode, Inc. and others. 3 License & terms of use: http://www.unicode.org/copyright.html 4 See README.txt for instructions on updating the local repository. 5 --> 6<project xmlns="http://maven.apache.org/POM/4.0.0" 7 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 8 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 9 <modelVersion>4.0.0</modelVersion> 10 11 <!-- This POM file acts as a parent POM file for any tool which is built 12 via Maven and requires access to the CLDR data APIs. This POM file 13 and the other files in this directory encapsulate the somewhat messy 14 task of including the Ant-built CLDR JAR file in Maven projects. --> 15 16 <!-- Declares this to be a POM that's included by other POM files. --> 17 <packaging>pom</packaging> 18 19 <!-- This must match any child POM file's <parent> declaration. --> 20 <groupId>org.unicode.icu</groupId> 21 <artifactId>cldr-lib</artifactId> 22 <version>1.0</version> 23 24 <!-- Important: The "${project.basedir}" property is the directory of the 25 child POM file, not this directory (and there's no easy way in Maven 26 to identify the absolute path of a parent POM file). However since 27 child POM files should have a <parent> declaration with the relative 28 path in it, we can use that. Note however that this is a bit fragile 29 and relies on <relativePath> being a directory, not a POM file. 30 31 In order to allow the local repository to work either when it is used 32 by a child POM file or when it's used directly (e.g. for installing 33 or purging the cache) when it is invoked from this directory, the 34 -Dproject.parent.relativePath="" 35 argument must be given. --> 36 <repositories> 37 <repository> 38 <id>local-maven-repo</id> 39 <url>file://${project.basedir}/${project.parent.relativePath}</url> 40 </repository> 41 </repositories> 42 43 <!-- Ant-built JAR file(s) installed into the local Maven repository in this 44 directory by the 'install-cldr-jars.sh' script. --> 45 <dependencies> 46 <dependency> 47 <groupId>org.unicode.cldr</groupId> 48 <artifactId>cldr-api</artifactId> 49 <version>0.1-SNAPSHOT</version> 50 </dependency> 51 </dependencies> 52</project> 53 54