Build the tools and libraries all at once with Maven.
authorroubert@google.com <roubert@google.com@ee073f10-1060-11df-b6a4-87a95322a99c>
Fri, 22 Aug 2014 14:43:11 +0000 (14:43 +0000)
committerroubert@google.com <roubert@google.com@ee073f10-1060-11df-b6a4-87a95322a99c>
Fri, 22 Aug 2014 14:43:11 +0000 (14:43 +0000)
This patch adds a top level pom.xml so it is now possible to checkout
the repository and do

  mvn clean install

and it will build the tools JAR and then the library itself without
requiring any pre-built JARs in the repository

I've also tweaked the Debian packaging to work using maven-debian-helper
and without using Ant or build.xml any more. I'll submit that as a
separate patch.

The patch also removes a reference to oss-parent that appears to be in
java/pom.xml by mistake, this was causing the maven-debian-helper builds
to fail.

Author: daniel@pocock.pro

R=jia.shao.peng@gmail.com
BUG=

Review URL: https://codereview.appspot.com/125530043

git-svn-id: http://libphonenumber.googlecode.com/svn/trunk@687 ee073f10-1060-11df-b6a4-87a95322a99c

java/pom.xml
pom.xml [new file with mode: 0644]

index 2733623..4e7cdb5 100644 (file)
@@ -7,12 +7,6 @@
   <packaging>pom</packaging>
   <url>http://code.google.com/p/libphonenumber/</url>
 
-  <parent>
-    <groupId>org.sonatype.oss</groupId>
-    <artifactId>oss-parent</artifactId>
-    <version>7</version>
-  </parent>
-
   <description>
     Google's common Java library for parsing, formatting, storing and validating international phone numbers.
     Optimized for running on smartphones.
diff --git a/pom.xml b/pom.xml
new file mode 100644 (file)
index 0000000..d5aa0b3
--- /dev/null
+++ b/pom.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <groupId>com.google.i18n.phonenumbers</groupId>
+  <artifactId>libphonenumber-build-parent</artifactId>
+  <packaging>pom</packaging>
+  <version>1.0-SNAPSHOT</version>
+
+  <properties>
+    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+  </properties>
+
+  <licenses>
+    <license>
+      <name>Apache 2</name>
+      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
+      <comments>Copyright (C) 2011 The Libphonenumber Authors</comments>
+    </license>
+  </licenses>
+
+  <modules>
+    <module>tools/java</module>
+    <module>java</module>
+  </modules>
+
+</project>