| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This repository contains Java implementation of the IP Intelligence specification.
For runtime dependencies, see our dependencies page. The tested versions page shows the JDK versions that we currently test against. The software may run fine against other versions, but additional caution should be applied.
The Java API can either use our cloud service to get its data or it can use a local (on-premise) copy of the data.
The cloud service for IP Intelligence is currently in development.
You will require resource keys to use the Cloud API, as described on our website. Get resource keys from our configurator, see our documentation on how to use this.
In order to perform IP intelligence on-premise, you will need to use a data file.
ip-intelligence-data repository instructs how to obtain a 'Lite' data file, otherwise contact us to obtain an 'Enterprise' data file.
For tests, the data file can be supplied explicitly by setting the 51DEGREES_IPI_PATH environment variable or system property to the path of the .ipi file. When it is not set, the project space is searched for the expected file name, with the free 'Lite' file expected in the ip-intelligence-data location.
Our latest release is available as compiled JARs on Maven - or you can compile from source as described below.
The 51Degrees Java IP Intelligence package is available on maven. Make sure to select the latest version.
<!-- Make sure to select the latest version from https://mvnrepository.com/artifact/com.51degrees/pipeline.ip-intelligence -->
<dependency>
<groupId>com.51degrees</groupId>
<artifactId>ip-intelligence</artifactId>
<version>4.4.19</version>
</dependency>This package includes the Cloud and on-premise APIs.
IP Intelligence on-premise uses a native binary. (i.e. compiled from C code to target a specific platform/architecture) This section explains how to build this binary.
Install C build tools:
Windows:
Linux:
Maven version 3.8.4 or higher is recommended, and what is used for our own build.
If you have not already done so, pull the git submodules that contain the native code:
Batch script and Bash script are provided to support building native binaries on Windows and Linux/macOS. These scripts are implicitly called by the Maven build step.
mvn clean install
On Windows, the Platform Toolset version and Windows 10 SDK version can be overwritten when running mvn by adding following options:
This is not recommended unless absolutely necessary and should be used with caution.
Examples can be found in ip-intelligence-java-examples repository.
You will need resource keys (see above) to complete the tests and run examples which include exercising the cloud API.
The tests look for a resource key in the following order:
To verify the code:
mvn clean test -DTestResourceKey=[Resource Key]
For tests and examples that require a license key add the following option:
| Back | FazBrowse Home | New Git URL |