{
  "schemaVersion": "1.0",
  "item": {
    "slug": "maven-central-publish",
    "name": "maven-central-publish",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/MISAKIGA/maven-central-publish",
    "canonicalUrl": "https://clawhub.ai/MISAKIGA/maven-central-publish",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/maven-central-publish",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=maven-central-publish",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "templates/pom-plugins.xml",
      "templates/settings.xml"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "Download the package from Yavira.",
        "Extract it into a folder your agent can access.",
        "Paste one of the prompts below and point your agent at the extracted folder."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
        },
        {
          "label": "Upgrade existing",
          "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "slug": "maven-central-publish",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T07:09:18.607Z",
      "expiresAt": "2026-05-19T07:09:18.607Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=maven-central-publish",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=maven-central-publish",
        "contentDisposition": "attachment; filename=\"maven-central-publish-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "maven-central-publish"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/maven-central-publish"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/maven-central-publish",
    "agentPageUrl": "https://openagent3.xyz/skills/maven-central-publish/agent",
    "manifestUrl": "https://openagent3.xyz/skills/maven-central-publish/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/maven-central-publish/agent.md"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "Download the package from Yavira.",
      "Extract it into a folder your agent can access.",
      "Paste one of the prompts below and point your agent at the extracted folder."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete."
      },
      {
        "label": "Upgrade existing",
        "body": "I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Maven Central Publish Skill",
        "body": "This skill provides a standardized workflow for publishing Java/Kotlin libraries to the Maven Central Repository using the modern Central Portal (via central-publishing-maven-plugin)."
      },
      {
        "title": "📋 Prerequisites",
        "body": "Central Portal Account: Sign up at central.sonatype.com.\nNamespace Verified: You must have verified your groupId (e.g., io.github.username or com.yourdomain) in the portal.\nUser Token: Generated from the Central Portal (My Account -> Generate User Token)."
      },
      {
        "title": "1. Install Tools",
        "body": "Ensure maven, gnupg, and openjdk-17+ are installed.\n\n# Ubuntu/Debian\napt-get install -y maven gnupg openjdk-17-jdk"
      },
      {
        "title": "2. GPG Configuration (Critical)",
        "body": "Maven requires GPG signing. For automated/headless environments, Loopback Pinentry is required.\n\n# 1. Generate Key (if none exists)\ngpg --gen-key\n\n# 2. Configure Loopback (Prevent UI prompts)\nmkdir -p ~/.gnupg\necho \"allow-loopback-pinentry\" >> ~/.gnupg/gpg-agent.conf\necho \"pinentry-mode loopback\" >> ~/.gnupg/gpg.conf\ngpg-connect-agent reloadagent /bye\n\n# 3. Publish Key\ngpg --list-keys # Get your Key ID (last 8 chars or full hex)\ngpg --keyserver keyserver.ubuntu.com --send-keys <KEY_ID>"
      },
      {
        "title": "3. Maven Settings (~/.m2/settings.xml)",
        "body": "Configure your Central Portal credentials.\n\n<settings>\n  <servers>\n    <server>\n      <id>central</id>\n      <username>USER_TOKEN_USERNAME</username>\n      <password>USER_TOKEN_PASSWORD</password>\n    </server>\n  </servers>\n  <profiles>\n    <profile>\n      <id>release</id>\n      <activation>\n        <activeByDefault>false</activeByDefault>\n      </activation>\n      <properties>\n        <gpg.executable>gpg</gpg.executable>\n        <gpg.passphrase>YOUR_GPG_PASSPHRASE</gpg.passphrase>\n      </properties>\n    </profile>\n  </profiles>\n</settings>"
      },
      {
        "title": "📦 Project Configuration (pom.xml)",
        "body": "Your project MUST meet the Quality Requirements:\n\nCoordinates: groupId, artifactId, version.\nMetadata: name, description, url, licenses, developers, scm.\nPlugins: Javadoc, Source, GPG, and Central Publishing."
      },
      {
        "title": "Recommended Plugin Configuration",
        "body": "Add this to your <build><plugins> section:\n\n<!-- 1. Source Plugin -->\n<plugin>\n    <groupId>org.apache.maven.plugins</groupId>\n    <artifactId>maven-source-plugin</artifactId>\n    <version>3.3.0</version>\n    <executions>\n        <execution>\n            <id>attach-sources</id>\n            <goals><goal>jar-no-fork</goal></goals>\n        </execution>\n    </executions>\n</plugin>\n\n<!-- 2. Javadoc Plugin -->\n<plugin>\n    <groupId>org.apache.maven.plugins</groupId>\n    <artifactId>maven-javadoc-plugin</artifactId>\n    <version>3.6.3</version>\n    <configuration>\n        <doclint>none</doclint> <!-- Prevent strict checks failing build -->\n        <failOnError>false</failOnError>\n    </configuration>\n    <executions>\n        <execution>\n            <id>attach-javadocs</id>\n            <goals><goal>jar</goal></goals>\n        </execution>\n    </executions>\n</plugin>\n\n<!-- 3. GPG Plugin (Best Practice: wrap in 'release' profile) -->\n<plugin>\n    <groupId>org.apache.maven.plugins</groupId>\n    <artifactId>maven-gpg-plugin</artifactId>\n    <version>3.1.0</version>\n    <configuration>\n        <gpgArguments>\n            <arg>--pinentry-mode</arg>\n            <arg>loopback</arg>\n        </gpgArguments>\n    </configuration>\n    <executions>\n        <execution>\n            <id>sign-artifacts</id>\n            <phase>verify</phase>\n            <goals><goal>sign</goal></goals>\n        </execution>\n    </executions>\n</plugin>\n\n<!-- 4. Central Publishing Plugin (The Magic Sauce) -->\n<plugin>\n    <groupId>org.sonatype.central</groupId>\n    <artifactId>central-publishing-maven-plugin</artifactId>\n    <version>0.7.0</version>\n    <extensions>true</extensions>\n    <configuration>\n        <publishingServerId>central</publishingServerId>\n        <!-- autoPublish: set to true to skip manual button click in portal -->\n        <autoPublish>false</autoPublish> \n    </configuration>\n</plugin>"
      },
      {
        "title": "🚀 Deployment",
        "body": "Run the deploy command with the release profile active:\n\nmvn clean deploy -P release\n\nSuccess Indicators:\n\n[INFO] Uploaded bundle successfully...\n[INFO] Deployment ... has been validated.\n\nIf autoPublish is false (recommended for first time), log in to central.sonatype.com, review the deployment, and click Publish."
      },
      {
        "title": "❓ Troubleshooting",
        "body": "ErrorCauseFix401 UnauthorizedInvalid User Token in settings.xmlGenerate new token in Central Portal. Ensure server ID matches.GPG signing failedNo pinentry / wrong passphraseUse pinentry-mode loopback config; Check gpg-agent.Javadoc generation failedStrict HTML checksAdd <doclint>none</doclint> to javadoc plugin config.Invalid coordinatesGroupId mismatchEnsure pom.xml groupId matches verified namespace in Portal."
      }
    ],
    "body": "Maven Central Publish Skill\n\nThis skill provides a standardized workflow for publishing Java/Kotlin libraries to the Maven Central Repository using the modern Central Portal (via central-publishing-maven-plugin).\n\n📋 Prerequisites\nCentral Portal Account: Sign up at central.sonatype.com.\nNamespace Verified: You must have verified your groupId (e.g., io.github.username or com.yourdomain) in the portal.\nUser Token: Generated from the Central Portal (My Account -> Generate User Token).\n🛠️ Environment Setup\n1. Install Tools\n\nEnsure maven, gnupg, and openjdk-17+ are installed.\n\n# Ubuntu/Debian\napt-get install -y maven gnupg openjdk-17-jdk\n\n2. GPG Configuration (Critical)\n\nMaven requires GPG signing. For automated/headless environments, Loopback Pinentry is required.\n\n# 1. Generate Key (if none exists)\ngpg --gen-key\n\n# 2. Configure Loopback (Prevent UI prompts)\nmkdir -p ~/.gnupg\necho \"allow-loopback-pinentry\" >> ~/.gnupg/gpg-agent.conf\necho \"pinentry-mode loopback\" >> ~/.gnupg/gpg.conf\ngpg-connect-agent reloadagent /bye\n\n# 3. Publish Key\ngpg --list-keys # Get your Key ID (last 8 chars or full hex)\ngpg --keyserver keyserver.ubuntu.com --send-keys <KEY_ID>\n\n3. Maven Settings (~/.m2/settings.xml)\n\nConfigure your Central Portal credentials.\n\n<settings>\n  <servers>\n    <server>\n      <id>central</id>\n      <username>USER_TOKEN_USERNAME</username>\n      <password>USER_TOKEN_PASSWORD</password>\n    </server>\n  </servers>\n  <profiles>\n    <profile>\n      <id>release</id>\n      <activation>\n        <activeByDefault>false</activeByDefault>\n      </activation>\n      <properties>\n        <gpg.executable>gpg</gpg.executable>\n        <gpg.passphrase>YOUR_GPG_PASSPHRASE</gpg.passphrase>\n      </properties>\n    </profile>\n  </profiles>\n</settings>\n\n📦 Project Configuration (pom.xml)\n\nYour project MUST meet the Quality Requirements:\n\nCoordinates: groupId, artifactId, version.\nMetadata: name, description, url, licenses, developers, scm.\nPlugins: Javadoc, Source, GPG, and Central Publishing.\nRecommended Plugin Configuration\n\nAdd this to your <build><plugins> section:\n\n<!-- 1. Source Plugin -->\n<plugin>\n    <groupId>org.apache.maven.plugins</groupId>\n    <artifactId>maven-source-plugin</artifactId>\n    <version>3.3.0</version>\n    <executions>\n        <execution>\n            <id>attach-sources</id>\n            <goals><goal>jar-no-fork</goal></goals>\n        </execution>\n    </executions>\n</plugin>\n\n<!-- 2. Javadoc Plugin -->\n<plugin>\n    <groupId>org.apache.maven.plugins</groupId>\n    <artifactId>maven-javadoc-plugin</artifactId>\n    <version>3.6.3</version>\n    <configuration>\n        <doclint>none</doclint> <!-- Prevent strict checks failing build -->\n        <failOnError>false</failOnError>\n    </configuration>\n    <executions>\n        <execution>\n            <id>attach-javadocs</id>\n            <goals><goal>jar</goal></goals>\n        </execution>\n    </executions>\n</plugin>\n\n<!-- 3. GPG Plugin (Best Practice: wrap in 'release' profile) -->\n<plugin>\n    <groupId>org.apache.maven.plugins</groupId>\n    <artifactId>maven-gpg-plugin</artifactId>\n    <version>3.1.0</version>\n    <configuration>\n        <gpgArguments>\n            <arg>--pinentry-mode</arg>\n            <arg>loopback</arg>\n        </gpgArguments>\n    </configuration>\n    <executions>\n        <execution>\n            <id>sign-artifacts</id>\n            <phase>verify</phase>\n            <goals><goal>sign</goal></goals>\n        </execution>\n    </executions>\n</plugin>\n\n<!-- 4. Central Publishing Plugin (The Magic Sauce) -->\n<plugin>\n    <groupId>org.sonatype.central</groupId>\n    <artifactId>central-publishing-maven-plugin</artifactId>\n    <version>0.7.0</version>\n    <extensions>true</extensions>\n    <configuration>\n        <publishingServerId>central</publishingServerId>\n        <!-- autoPublish: set to true to skip manual button click in portal -->\n        <autoPublish>false</autoPublish> \n    </configuration>\n</plugin>\n\n🚀 Deployment\n\nRun the deploy command with the release profile active:\n\nmvn clean deploy -P release\n\n\nSuccess Indicators:\n\n[INFO] Uploaded bundle successfully...\n[INFO] Deployment ... has been validated.\n\nIf autoPublish is false (recommended for first time), log in to central.sonatype.com, review the deployment, and click Publish.\n\n❓ Troubleshooting\nError\tCause\tFix\n401 Unauthorized\tInvalid User Token in settings.xml\tGenerate new token in Central Portal. Ensure server ID matches.\nGPG signing failed\tNo pinentry / wrong passphrase\tUse pinentry-mode loopback config; Check gpg-agent.\nJavadoc generation failed\tStrict HTML checks\tAdd <doclint>none</doclint> to javadoc plugin config.\nInvalid coordinates\tGroupId mismatch\tEnsure pom.xml groupId matches verified namespace in Portal."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/MISAKIGA/maven-central-publish",
    "publisherUrl": "https://clawhub.ai/MISAKIGA/maven-central-publish",
    "owner": "MISAKIGA",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/maven-central-publish",
    "downloadUrl": "https://openagent3.xyz/downloads/maven-central-publish",
    "agentUrl": "https://openagent3.xyz/skills/maven-central-publish/agent",
    "manifestUrl": "https://openagent3.xyz/skills/maven-central-publish/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/maven-central-publish/agent.md"
  }
}