• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- © 2019 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    <!-- Include the parent POM file to add the CLDR API dependency. -->
12    <parent>
13        <groupId>org.unicode.icu</groupId>
14        <artifactId>cldr-lib</artifactId>
15        <version>1.0</version>
16        <relativePath>../lib</relativePath>
17    </parent>
18
19    <properties>
20        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
21    </properties>
22
23    <!-- No need for <groupId> here (it's defined by the parent POM). -->
24    <artifactId>cldr-to-icu</artifactId>
25    <version>1.0-SNAPSHOT</version>
26    <build>
27        <plugins>
28            <plugin>
29                <groupId>org.apache.maven.plugins</groupId>
30                <artifactId>maven-compiler-plugin</artifactId>
31                <version>3.5.1</version>
32                <configuration>
33                    <source>8</source>
34                    <target>8</target>
35                </configuration>
36            </plugin>
37            <plugin>
38                <groupId>org.codehaus.mojo</groupId>
39                <artifactId>exec-maven-plugin</artifactId>
40                <version>1.6.0</version>
41                <configuration>
42                    <mainClass>
43                        org.unicode.icu.tool.cldrtoicu.LdmlConverter
44                    </mainClass>
45                    <systemProperties>
46                        <property>
47                            <key>ICU_DIR</key>
48                            <value>${project.basedir}/../../..</value>
49                        </property>
50                    </systemProperties>
51                </configuration>
52            </plugin>
53            <plugin>
54                <groupId>org.apache.maven.plugins</groupId>
55                <artifactId>maven-assembly-plugin</artifactId>
56                <version>3.1.1</version>
57                <executions>
58                    <execution>
59                        <phase>compile</phase>
60                        <goals>
61                            <goal>single</goal>
62                        </goals>
63                        <configuration>
64                            <archive>
65                                <manifest>
66                                    <mainClass>
67                                        org.unicode.icu.tool.cldrtoicu.LdmlConverter
68                                    </mainClass>
69                                </manifest>
70                            </archive>
71                            <descriptorRefs>
72                                <descriptorRef>jar-with-dependencies</descriptorRef>
73                            </descriptorRefs>
74                        </configuration>
75                    </execution>
76                </executions>
77            </plugin>
78        </plugins>
79    </build>
80
81    <dependencies>
82        <!-- ICU4J - which should be kept as up-to-date as possible. -->
83        <dependency>
84            <groupId>com.ibm.icu</groupId>
85            <artifactId>icu4j</artifactId>
86            <version>67.1</version>
87        </dependency>
88
89        <!-- Useful common libraries. Note that some of the code in the CLDR library is also
90             built against a version of Guava that might not be as recent as this, so they
91             be kept approximately in sync for good measure. -->
92        <dependency>
93            <groupId>com.google.guava</groupId>
94            <artifactId>guava</artifactId>
95            <version>27.1-jre</version>
96        </dependency>
97
98        <!-- Ant: Only used for running the conversion tool, not compiling it. -->
99        <dependency>
100            <groupId>org.apache.ant</groupId>
101            <artifactId>ant</artifactId>
102            <version>1.10.9</version>
103        </dependency>
104
105        <!-- Testing only dependencies. -->
106        <dependency>
107            <groupId>com.google.truth</groupId>
108            <artifactId>truth</artifactId>
109            <version>1.0</version>
110            <scope>test</scope>
111        </dependency>
112        <dependency>
113            <groupId>com.google.truth.extensions</groupId>
114            <artifactId>truth-java8-extension</artifactId>
115            <version>1.0</version>
116            <scope>test</scope>
117        </dependency>
118    </dependencies>
119</project>
120