Browse Source

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
pull/567/head
Daniel Pocock 11 years ago
committed by Mihaela Rosca
parent
commit
b22d1f80ba
2 changed files with 26 additions and 6 deletions
  1. +0
    -6
      java/pom.xml
  2. +26
    -0
      pom.xml

+ 0
- 6
java/pom.xml View 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.


+ 26
- 0
pom.xml View File

@ -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>

Loading…
Cancel
Save