This guide will walk you through the entire process of publishing AMCP Core v1.5.0 to Maven Central Repository, making it available worldwide via standard Maven coordinates.
After completion, developers worldwide will be able to use AMCP with:
<dependency>
<groupId>org.amcp</groupId>
<artifactId>amcp-core</artifactId>
<version>1.5.0</version>
</dependency>- Go to: https://issues.sonatype.org/secure/Signup!default.jspa
- Create an account with your email
- Verify your email address
- Create a new JIRA ticket: https://issues.sonatype.org/secure/CreateIssue.jspa?issuetype=21&pid=10134
- Fill out the form:
- Project: Community Support - Open Source Project Repository Hosting (OSSRH)
- Issue Type: New Project
- Summary: Request for org.amcp group ID
- Group Id: org.amcp
- Project URL: https://agentmeshcommunicationprotocol.github.io
- SCM URL: https://github.com/agentmeshcommunicationprotocol/amcpcore.github.io
- Description:
Request to publish AMCP (Agent Mesh Communication Protocol) Core library to Maven Central. AMCP is an open-source framework for building distributed agent systems with event-driven communication. The project provides enterprise-grade tools for multi-agent coordination and is licensed under Apache 2.0. Project website: https://agentmeshcommunicationprotocol.github.io GitHub repository: https://github.com/agentmeshcommunicationprotocol/amcpcore.github.io We request the org.amcp group ID to publish our core library and future modules.
- Sonatype will ask you to verify domain ownership
- Since you're using GitHub, they may ask you to create a repository like:
amcp-ossrh-verification - Follow their specific instructions in the JIRA ticket
- Approval typically takes 1-2 business days
- You'll receive updates via JIRA ticket comments
- Once approved, you can proceed to the next steps
cd /home/kalxav/CascadeProjects
./setup-maven-central.sh # This creates the setup files
./generate-gpg-key.sh # Follow the instructions- Edit the
gpg-key-configfile:nano gpg-key-config
- Change the passphrase to something secure
- Update the email if needed
gpg --batch --generate-key gpg-key-config# List your keys
gpg --list-secret-keys --keyid-format LONG
# Export to key server (replace YOUR_KEY_ID with actual ID)
gpg --keyserver keyserver.ubuntu.com --send-keys YOUR_KEY_ID
# Also export to other key servers
gpg --keyserver keys.openpgp.org --send-keys YOUR_KEY_ID
gpg --keyserver pgp.mit.edu --send-keys YOUR_KEY_ID# Copy template to settings.xml
cp ~/.m2/settings-central-template.xml ~/.m2/settings.xml
# Edit with your credentials
nano ~/.m2/settings.xmlReplace the placeholders in ~/.m2/settings.xml:
YOUR_SONATYPE_USERNAME: Your Sonatype JIRA usernameYOUR_SONATYPE_PASSWORD: Your Sonatype JIRA passwordYOUR_GPG_KEY_ID: Your GPG key ID (from step 2.4)YOUR_GPG_PASSPHRASE: Your GPG key passphrase
Example:
<servers>
<server>
<id>ossrh</id>
<username>john.doe</username>
<password>your-jira-password</password>
</server>
</servers>
<profiles>
<profile>
<id>ossrh</id>
<properties>
<gpg.executable>gpg</gpg.executable>
<gpg.keyname>ABCD1234EFGH5678</gpg.keyname>
<gpg.passphrase>your-gpg-passphrase</gpg.passphrase>
</properties>
</profile>
</profiles>cd /home/kalxav/CascadeProjects
./deploy-to-central.shThis script will:
- Build the project with Maven Central POM
- Run tests
- Generate sources and javadoc JARs
- Sign all artifacts with GPG
- Deploy to Sonatype staging repository
✅ Prerequisites check passed
✅ Build successful
ℹ️ Deploying to Maven Central staging repository...
[INFO] Uploading to ossrh: https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/org/amcp/amcp-core/1.5.0/amcp-core-1.5.0.pom
[INFO] Uploaded to ossrh: https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/org/amcp/amcp-core/1.5.0/amcp-core-1.5.0.pom (4.2 kB at 2.1 kB/s)
...
✅ 🎉 Deployment to staging successful!
- Go to: https://s01.oss.sonatype.org/
- Login with your Sonatype credentials
- Click "Staging Repositories" in the left menu
- Look for a repository named like:
orgamcp-XXXX(where XXXX is a number) - It should contain your
org.amcp:amcp-core:1.5.0artifacts - Select the repository
- Click "Close" button
- Provide a description: "AMCP Core v1.5.0 release"
- Click "Confirm"
- Wait for validation to complete (usually 2-10 minutes)
- Once validation passes, select the repository again
- Click "Release" button
- Provide a description: "Release AMCP Core v1.5.0 to Maven Central"
- Check "Automatically Drop" (recommended)
- Click "Confirm"
- Artifacts available in Sonatype repository
- Can be used with Sonatype repository URL
- Artifacts sync to Maven Central
- Available at: https://repo1.maven.org/maven2/org/amcp/amcp-core/1.5.0/
- Fully propagated to all Maven mirrors worldwide
- Available via standard Maven/Gradle without special repository configuration
# Check if available on Maven Central
curl -I https://repo1.maven.org/maven2/org/amcp/amcp-core/1.5.0/amcp-core-1.5.0.jar
# Search Maven Central
curl "https://search.maven.org/solrsearch/select?q=g:org.amcp+AND+a:amcp-core&rows=20&wt=json"Create a test project with:
<dependency>
<groupId>org.amcp</groupId>
<artifactId>amcp-core</artifactId>
<version>1.5.0</version>
</dependency>- Repository appears in Sonatype Nexus
- All artifacts (JAR, sources, javadoc, POM) are present
- All artifacts are properly signed (
.ascfiles) - Validation passes without errors
- Release completes successfully
Once released, AMCP Core will be available:
- Maven Central: https://repo1.maven.org/maven2/org/amcp/amcp-core/1.5.0/
- Maven Search: https://search.maven.org/artifact/org.amcp/amcp-core/1.5.0/jar
- MVN Repository: https://mvnrepository.com/artifact/org.amcp/amcp-core/1.5.0
- Global Access: Available to millions of Java developers
- Easy Integration: Standard Maven/Gradle dependency
- Professional Distribution: Trusted Maven Central infrastructure
- Version Management: Proper semantic versioning
- Dependency Resolution: Automatic transitive dependency handling
# Test GPG signing
echo "test" | gpg --clearsign
# If errors, check:
gpg --list-secret-keys
export GPG_TTY=$(tty)- Verify Sonatype credentials in
~/.m2/settings.xml - Ensure JIRA account is active
- Check if group ID is approved
- Ensure all required artifacts are present (JAR, sources, javadoc, POM)
- Verify all artifacts are signed
- Check POM completeness (all required fields)
# Test connectivity
curl -I https://s01.oss.sonatype.org/
# Check proxy settings if behind corporate firewall- Sonatype account created and verified
- Group ID (org.amcp) approved via JIRA ticket
- GPG key generated and uploaded to key servers
- Maven settings.xml configured with credentials
- All tests pass locally
- Staging deployment successful
- All artifacts present in staging repository
- All artifacts properly signed
- Repository validation passes
- Repository successfully closed
- Repository successfully released
- Artifacts available on Maven Central (2-4 hours)
- Maven search shows the artifact
- Test project can resolve dependency
- Documentation updated with Maven coordinates
- ✅ Artifacts deployed to Maven Central
- ✅ All required files present and signed
- ✅ Dependency resolution works globally
- ✅ Professional metadata and documentation
- 🌍 Global Reach: Available to millions of Java developers
- 🚀 Easy Adoption: Standard dependency management
- 📈 Professional Image: Trusted distribution channel
- 🔄 Ecosystem Growth: Foundation for community contributions
Once successfully deployed, AMCP Core v1.5.0 will be:
🌐 Globally Available
<dependency>
<groupId>org.amcp</groupId>
<artifactId>amcp-core</artifactId>
<version>1.5.0</version>
</dependency>📊 Professionally Distributed
- Maven Central: Trusted by enterprise developers
- Automatic mirrors: Fast downloads worldwide
- Dependency resolution: Seamless integration
- Version management: Clear upgrade paths
🚀 Ready for Enterprise
- Production-ready distribution
- Professional metadata and documentation
- Signed artifacts for security
- Standard Java ecosystem integration
🎯 Execute the setup and deployment process to make AMCP Core v1.5.0 available to the global Java developer community via Maven Central!