Skip to content
Browse files

Build the tools and libraries all at once with Maven.

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
  • Loading branch information...
1 parent 32d7cfd commit b22d1f80ba924cb021b07179b358be0df2208682 @dpocock dpocock committed with mihaelacr-google
Showing with 26 additions and 6 deletions.
  1. +0 −6 java/pom.xml
  2. +26 −0 pom.xml
View
6 java/pom.xml
@@ -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.
View
26 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>

0 comments on commit b22d1f8

Please sign in to comment.
Something went wrong with that request. Please try again.