تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

maven-central-publish

بواسطة misakiga

Coding Agents & IDEs
461التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Comprehensive guide and toolkit for publishing Java artifacts to Maven Central using the modern Central Portal.

الوصف

ما الذي تفعله هذه المهارة

Standardized workflow for publishing Java and Kotlin libraries to Maven Central using the Central Portal (central.sonatype.com) and the central-publishing-maven-plugin. Covers GPG signing setup, pom.xml configuration, and deployment steps.

Uses the current Central Portal plugin instead of the deprecated OSSRH/Nexus staging workflow, which reduces the number of manual portal steps required.

متى تستخدمها

  • Publishing a new open-source Java library to Maven Central
  • Setting up automated artifact signing in a CI pipeline
  • Configuring GPG loopback pinentry for headless build environments
  • Migrating from the legacy OSSRH workflow to the modern Central Portal
  • Verifying a groupId namespace and deploying a first release

مثال على سير العمل

الإدخال

User asks: publish my Java library to Maven Central

الوكيل
  1. 1

    Verify Central Portal account exists and groupId namespace is confirmed

  2. 2

    Configure ~/.m2/settings.xml with Central Portal user token credentials and GPG passphrase

  3. 3

    Add maven-source-plugin, maven-javadoc-plugin, maven-gpg-plugin, and central-publishing-maven-plugin to pom.xml

  4. 4

    Run mvn clean deploy -P release to build, sign, and upload the artifact bundle

  5. 5

    Log in to central.sonatype.com/publishing/deployments and click Publish to release

الإخراج

Artifact visible on Maven Central and available for dependency resolution

المتطلبات

  • Central Portal account at central.sonatype.com
  • Verified groupId namespace in the Central Portal
  • Central Portal user token (generated from My Account -> Generate User Token)
  • GPG key pair with passphrase, published to a public keyserver

التثبيت

clawhub install misakiga/maven-central-publish

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط