Building the Java Libraries
The protegrity-ai-developer-java repository is part of the Protegrity AI Developer Edition suite. This repository provides the Java library for integrating Protegrity’s Data Discovery and Protection APIs into GenAI and traditional applications.
Customize, compile, and use the Java library as per your requirement.
Note: This module should only be built and used if the source and default behavior are to be changed. Ensure that the Protegrity AI Developer Edition is set up before installing the Java library.
For setup instructions, refer to installation steps.
Prerequisites
- Git is installed for cloning the repository.
- Java 11 or later is installed for compiling the library.
- Maven 3.6 or later is installed or use the included Maven wrapper.
Build and test the protegrity-ai-developer-java library
Clone the repository.
git clone https://github.com/Protegrity-AI-Developer-Edition/protegrity-ai-developer-java.gitNavigate to the
protegrity-ai-developer-javadirectory in the cloned location.Optional: Update the files in the Java source directory as required.
Build the project using Maven wrapper. It is recommended to use this method.
./mvnw clean installOR Build the project using system Maven.
mvn clean installThe build completes and the success message is displayed. This creates:
application-protector-java/target/ApplicationProtectorJava-1.1.0.jar(fat JAR with dependencies)protegrity-ai-developer-edition/target/ProtegrityDeveloperJava-1.1.0.jar(fat JAR with dependencies)- Maven artifacts in your local repository (
.m2/repository)
Feedback
Was this page helpful?