Installation
This guide will help you install and configure the MCMP Java SDK in your Java project.Requirements
Java Version
Java 11 or higher is required for the MCMP Java SDK
Build Tools
Maven 3.6+ or Gradle 6.0+ recommended
Maven Installation
Add the MCMP Java SDK dependency to yourpom.xml:
Repository Configuration
If you’re using a private repository, add the MCMP repository:Gradle Installation
Add the dependency to yourbuild.gradle:
Repository Configuration
Add the MCMP repository to yourbuild.gradle:
Manual Installation
If you prefer to install the JAR manually:- Download the latest JAR from releases
- Add it to your project’s classpath
- Ensure all required dependencies are available
Verification
Test your installation with a simple example:Dependencies
The MCMP Java SDK includes the following dependencies:HTTP Client
HTTP Client
- OkHttp 4.x for HTTP communication
- Jackson for JSON serialization/deserialization
Concurrency
Concurrency
- Java 11+ CompletableFuture for async operations
- ExecutorService for background tasks
Logging
Logging
- SLF4J for logging abstraction
- Compatible with Logback, Log4j2, and other logging frameworks
Troubleshooting
ClassNotFoundException
ClassNotFoundException
Ensure the MCMP Java SDK JAR is in your classpath and all dependencies are resolved.
Version Conflicts
Version Conflicts
Check for conflicting versions of OkHttp or Jackson in your project dependencies.
Repository Access
Repository Access
Verify you have access to the MCMP Maven repository and your network allows HTTPS connections.