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>cpp-build</artifactId>
14 <version>1.0-SNAPSHOT</version>
15 <name>Libphonenumber C++ build tools</name>
17 C++ build tools that download dependencies under base/ from the Chromium source repository, and
18 generate the C++ metadata code needed to build the libphonenumber library.
22 <sourceDirectory>src</sourceDirectory>
23 <testSourceDirectory>test</testSourceDirectory>
26 <groupId>org.apache.maven.plugins</groupId>
27 <artifactId>maven-compiler-plugin</artifactId>
33 <!-- Create a directory called 'generated'. -->
35 <groupId>org.apache.maven.plugins</groupId>
36 <artifactId>maven-antrun-plugin</artifactId>
39 <id>create-generated-directory</id>
40 <phase>generate-sources</phase>
43 <mkdir dir="generated"/>
52 <!-- Add generated/ to the source directories. -->
54 <groupId>org.codehaus.mojo</groupId>
55 <artifactId>build-helper-maven-plugin</artifactId>
59 <phase>generate-sources</phase>
61 <goal>add-source</goal>
65 <source>generated/</source>
66 <!-- Also add ../common/src/ which contains BuildMetadataFromXml.java -->
67 <source>../common/src/</source>
73 <!-- Invoke Protocol Buffers compiler to generate Phonemetadata.java. -->
75 <groupId>org.codehaus.mojo</groupId>
76 <artifactId>exec-maven-plugin</artifactId>
79 <phase>generate-sources</phase>
86 <executable>protoc</executable>
88 <argument>--java_out=generated</argument>
89 <argument>../../../resources/phonemetadata.proto</argument>
90 <argument>--proto_path=../../../resources</argument>
95 <groupId>org.apache.maven.plugins</groupId>
96 <artifactId>maven-jar-plugin</artifactId>
100 <addClasspath>true</addClasspath>
101 <mainClass>com.google.i18n.phonenumbers.EntryPoint</mainClass>
106 <!-- Build a JAR with its dependencies (protocol buffers and common library). This JAR
107 contains the C++ build tools invoked by CMake during the libphonenumber C++ build. -->
109 <groupId>org.apache.maven.plugins</groupId>
110 <artifactId>maven-assembly-plugin</artifactId>
113 <descriptorRef>jar-with-dependencies</descriptorRef>
117 <addClasspath>true</addClasspath>
118 <mainClass>com.google.i18n.phonenumbers.EntryPoint</mainClass>
124 <id>make-assembly</id>
125 <phase>package</phase>
137 <groupId>junit</groupId>
138 <artifactId>junit</artifactId>
139 <version>4.8.1</version>
143 <groupId>com.google.protobuf</groupId>
144 <artifactId>protobuf-java</artifactId>
145 <version>2.4.0a</version>