{"id":15522037,"url":"https://github.com/monkeywie/maven-nexus-release","last_synced_at":"2025-04-23T12:34:16.989Z","repository":{"id":127779588,"uuid":"310212293","full_name":"monkeyWie/maven-nexus-release","owner":"monkeyWie","description":"Publish jar to maven center, auto close and release on nexus.","archived":false,"fork":false,"pushed_at":"2020-11-14T15:16:52.000Z","size":136,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T10:17:05.232Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/monkeyWie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-05T06:43:15.000Z","updated_at":"2023-05-27T07:46:15.000Z","dependencies_parsed_at":"2023-07-20T06:23:03.889Z","dependency_job_id":null,"html_url":"https://github.com/monkeyWie/maven-nexus-release","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeyWie%2Fmaven-nexus-release","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeyWie%2Fmaven-nexus-release/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeyWie%2Fmaven-nexus-release/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/monkeyWie%2Fmaven-nexus-release/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/monkeyWie","download_url":"https://codeload.github.com/monkeyWie/maven-nexus-release/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250435794,"owners_count":21430354,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-02T10:39:19.462Z","updated_at":"2025-04-23T12:34:16.959Z","avatar_url":"https://github.com/monkeyWie.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maven Nexus Release\n\n用于自动发布 jar 包至 Apache Maven Central，在`maven deploy`之后通过 API 模拟登录 Nexus 进行`close`和`release`。\n\n# 使用\n\n查看 [action.yml](action.yml)\n\n## GPG 私钥导出\n\n- 列出秘钥\n\n```\ngpg --list-secret-keys --keyid-format LONG\n------------------------------------------------\nsec   rsa4096/2A6B618785DD7899 2020-11-05 [SC]\n      992BB9305698C72B846EF4982A6B618785DD7899\nuid                 [ultimate] monkeyWie \u003cliwei-8466@qq.com\u003e\nssb   rsa4096/F8E9F8CBD90028C5 2020-11-05 [E]\n```\n\n- 导出秘钥\n\n```\ngpg --armo --export-secret-keys 2A6B618785DD7899\n```\n\n## 基础示例\n\n```yaml\nsteps:\n  - uses: actions/checkout@v2\n  - name: Set up JDK 1.8\n    uses: actions/setup-java@v1\n    with:\n      java-version: 1.8\n\n  - name: Set up Apache Maven Central\n    uses: actions/setup-java@v1\n    with: # running setup-java again overwrites the settings.xml\n      java-version: 1.8\n      server-id: releases # Value of the distributionManagement/repository/id field of the pom.xml\n      server-username: MAVEN_USERNAME # env variable for username in deploy\n      server-password: MAVEN_CENTRAL_TOKEN # env variable for token in deploy\n      gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase\n      gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import\n\n  - name: Publish to Apache Maven Central\n    run: mvn clean deploy\n    env:\n      MAVEN_USERNAME: xxx\n      MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}\n      MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}\n\n  - name: Release on nexus\n    uses: monkeyWie/maven-nexus-release@v1.0.0\n    with:\n      maven-repo-server-username: xxx\n      maven-repo-server-password: ${{ secrets.MAVEN_CENTRAL_TOKEN }}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeywie%2Fmaven-nexus-release","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonkeywie%2Fmaven-nexus-release","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonkeywie%2Fmaven-nexus-release/lists"}