π GitHub Packages Deployment for AMCP Core v1.5.0
π GitHub Packages Deployment for AMCP Core v1.5.0
π Prerequisites
GitHub Personal Access Token Required
To deploy to GitHub Packages, you need a GitHub Personal Access Token with write:packages permission.
Create Token:
- Go to: https://github.com/settings/tokens
- Click βGenerate new token (classic)β
- Select scopes:
- β
write:packages(Upload packages to GitHub Package Registry) - β
read:packages(Download packages from GitHub Package Registry) - β
repo(Full control of private repositories)
- β
- Copy the generated token
Configure Maven Settings
Add to ~/.m2/settings.xml:
<servers>
<server>
<id>github</id>
<username>YOUR_GITHUB_USERNAME</username>
<password>YOUR_GITHUB_TOKEN</password>
</server>
</servers>
π Deployment Commands
Deploy to GitHub Packages:
cd amcp-core-project
mvn deploy
Expected Output:
[INFO] Uploading to github: https://maven.pkg.github.com/agentmeshcommunicationprotocol/amcpcore.github.io/org/amcp/amcp-core/1.5.0/amcp-core-1.5.0.pom
[INFO] Uploaded to github: https://maven.pkg.github.com/agentmeshcommunicationprotocol/amcpcore.github.io/org/amcp/amcp-core/1.5.0/amcp-core-1.5.0.pom (4.1 kB at 2.8 kB/s)
[INFO] Uploading to github: https://maven.pkg.github.com/agentmeshcommunicationprotocol/amcpcore.github.io/org/amcp/amcp-core/1.5.0/amcp-core-1.5.0.jar
[INFO] Uploaded to github: https://maven.pkg.github.com/agentmeshcommunicationprotocol/amcpcore.github.io/org/amcp/amcp-core/1.5.0/amcp-core-1.5.0.jar (13 kB at 8.9 kB/s)
[INFO] BUILD SUCCESS
π¦ Usage Instructions
For Developers Using AMCP:
Maven Configuration:
<repositories>
<repository>
<id>github</id>
<url>https://maven.pkg.github.com/agentmeshcommunicationprotocol/amcpcore.github.io</url>
</repository>
</repositories>
<dependency>
<groupId>org.amcp</groupId>
<artifactId>amcp-core</artifactId>
<version>1.5.0</version>
</dependency>
Gradle Configuration:
repositories {
maven {
url = uri("https://maven.pkg.github.com/agentmeshcommunicationprotocol/amcpcore.github.io")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
dependencies {
implementation 'org.amcp:amcp-core:1.5.0'
}
Authentication for Users:
Users need to authenticate to access GitHub Packages:
Option 1: Maven settings.xml
<servers>
<server>
<id>github</id>
<username>GITHUB_USERNAME</username>
<password>GITHUB_TOKEN</password>
</server>
</servers>
Option 2: Environment Variables
export USERNAME=your-github-username
export TOKEN=your-github-token
π Verification
Check Package Availability:
- Go to: https://github.com/agentmeshcommunicationprotocol/amcpcore.github.io/packages
- Verify
amcp-corepackage is listed - Check version 1.5.0 is available
Test Integration:
Create a test project and add the dependency to verify it resolves correctly.
β Benefits of GitHub Packages
- β Immediate Availability: No approval process required
- β Professional Distribution: Standard Maven coordinates
- β Integrated with Repository: Linked to source code
- β Version Management: Automatic versioning and releases
- β Access Control: Fine-grained permissions
- β CDN Distribution: Fast global access via GitHubβs CDN
π― Next Steps
- Deploy to GitHub Packages (immediate availability)
- Update Documentation with GitHub Packages coordinates
- Continue Maven Central Resolution (for broader accessibility)
- Dual Distribution once Maven Central is resolved