Skip to content

How to integrate the Java version in your Maven project

Gregor B. Rosenauer edited this page Dec 14, 2018 · 4 revisions

Introduction

This document explains how to depend on the Java version of libphonenumber from your Maven project.

Details

The Java version of libphonenumber is available via the central Maven repository. Add libphonenumber as a dependency in your POM using the following information:

<dependency>
    <groupId>com.googlecode.libphonenumber</groupId>
    <artifactId>libphonenumber</artifactId>
    <version>8.10.2</version>
</dependency>

You can additionally use the offline phone number geocoder by adding:

<dependency>
    <groupId>com.googlecode.libphonenumber</groupId>
    <artifactId>geocoder</artifactId>
    <version>2.108</version>
</dependency>

New versions are released into central Maven repository roughly twice a month. You are advised to always use the latest version, which contains bug fixes to the most recent phone number plan changes.

Acknowledgement

garretdwilson at gmail.com contributed to the content of this document.

Clone this wiki locally