This repository contains the public Java SDK package for the IP Geolocation API.
- Java 8+
- Maven 3.8+
mvn clean compileRun full public test suite:
mvn clean verifyRun all tests without cleaning:
mvn testRun one test class:
mvn -Dtest=IpGeolocationClientRequestBuildingTest testRun one test method:
mvn -Dtest=IpGeolocationClientRequestBuildingTest#lookupBuildsExpectedQueryAndHeaders testLive tests consume API credits and are disabled by default.
IPGEO_RUN_LIVE_TESTS=true IPGEO_FREE_KEY=... IPGEO_PAID_KEY=... mvn -Dtest=IpGeolocationLiveIntegrationTest testOptional live hardening tests compare raw API JSON to the typed SDK model and consume additional credits.
IPGEO_RUN_LIVE_HARDENING=true IPGEO_PAID_KEY=... mvn -Dtest=IpGeolocationLiveFieldParityTest test- Keep changes focused and include tests for behavior changes.
- Do not commit real API keys, tokens, or secrets.
- Use clear commit messages, for example:
feat: add bulk xml raw response supportfix: validate connect timeout does not exceed read timeouttest: add error mapping coverage for 499