-
Notifications
You must be signed in to change notification settings - Fork 2.1k
How to integrate the Java version in your Maven project
Gregor B. Rosenauer edited this page Dec 14, 2018
·
4 revisions
This document explains how to depend on the Java version of libphonenumber from your Maven project.
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.
garretdwilson at gmail.com contributed to the content of this document.
I would like to suggest this feature:
https://stackoverflow.com/questions/51962913/get-all-state-phone-code-in-a-country