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 <version>2.3.2</version>
45 <groupId>org.apache.maven.plugins</groupId>
46 <artifactId>maven-compiler-plugin</artifactId>
52 <!-- Add ../../../java/libphonenumber/src/ to make Phonemetadata.java available to the source
55 <groupId>org.codehaus.mojo</groupId>
56 <artifactId>build-helper-maven-plugin</artifactId>
57 <version>1.5</version>
61 <phase>generate-sources</phase>
63 <goal>add-source</goal>
67 <source>../../../java/libphonenumber/src/</source>
68 <!-- Also add ../common/src/ which contains BuildMetadataFromXml.java -->
69 <source>../common/src/</source>
75 <!-- Build a JAR that contains the Java and JavaScript build tools. -->
77 <groupId>org.apache.maven.plugins</groupId>
78 <artifactId>maven-assembly-plugin</artifactId>
79 <version>2.2.1</version>
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>