<dependency>
<groupId>com.github.xu42</groupId>
<artifactId>china-mobile-number</artifactId>
<version>1.0.2</version>
</dependency>
// mobile number is valid
boolean isValid = ChinaMobileNumber.isValid("13800138000");
// get mobile number opertor
ChinaMobileOperatorEnum operator = ChinaMobileNumber.getOperator("13800138000");
Once you check out the code from GitHub, you can build it using Maven. To disable test and the GPG-signing in the build, use:
mvn clean install -Dmaven.test.skip=true -Dgpg.skip=true