2 <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4 <modelVersion>4.0.0</modelVersion>
7 <artifactId>tools</artifactId>
8 <groupId>com.google.i18n.phonenumbers</groupId>
9 <version>1.0-SNAPSHOT</version>
12 <groupId>com.google.i18n.phonenumbers.tools</groupId>
13 <artifactId>java-build</artifactId>
14 <version>1.0-SNAPSHOT</version>
15 <name>Libphonenumber Java and JavaScript build tools</name>
17 Java and JavaScript build tools that generate the Java and JavaScript metadata code needed to
18 build the libphonenumber library. The Java build tools also transform the geocoding data from
19 text to binary format.
23 <phonenumberutil.resources.dir>
24 ${project.dir}/../../../../java/libphonenumber/src/
25 </phonenumberutil.resources.dir>
29 <sourceDirectory>src</sourceDirectory>
30 <testSourceDirectory>test</testSourceDirectory>
31 <!-- Include the PhoneNumberUtil metadata files. -->
34 <directory>${phonenumberutil.resources.dir}</directory>
39 <directory>${phonenumberutil.resources.dir}</directory>
44 <groupId>org.apache.maven.plugins</groupId>
45 <artifactId>maven-compiler-plugin</artifactId>
52 <groupId>org.codehaus.mojo</groupId>
53 <artifactId>build-helper-maven-plugin</artifactId>
57 <phase>generate-sources</phase>
59 <goal>add-source</goal>
63 <!-- Add ../../../java/libphonenumber/src/ to make Phonemetadata.java available to
64 the source directories. -->
65 <source>../../../java/libphonenumber/src/</source>
66 <!-- Add ../../../java/internal/phoneprefix/src/ to make PhonePrefixMap.java
67 available to the source directories. -->
68 <source>../../../java/internal/prefixmapper/src/</source>
69 <!-- Add ../common/src/ which contains BuildMetadataFromXml.java -->
70 <source>../common/src/</source>
76 <!-- Build a JAR that contains the Java and JavaScript build tools. -->
78 <groupId>org.apache.maven.plugins</groupId>
79 <artifactId>maven-assembly-plugin</artifactId>
82 <descriptorRef>jar-with-dependencies</descriptorRef>
86 <addClasspath>true</addClasspath>
87 <mainClass>com.google.i18n.phonenumbers.EntryPoint</mainClass>
93 <id>make-assembly</id>
94 <phase>package</phase>
106 <groupId>junit</groupId>
107 <artifactId>junit</artifactId>
108 <version>4.8.1</version>