{"id":15546818,"url":"https://github.com/mathieusoysal/java-maven-library-publisher","last_synced_at":"2025-04-23T18:11:14.622Z","repository":{"id":38311530,"uuid":"457894922","full_name":"MathieuSoysal/Java-maven-library-publisher","owner":"MathieuSoysal","description":"GitHub Actions for deploy automatically your java maven library to GitHub Packages and Maven Central.","archived":false,"fork":false,"pushed_at":"2023-04-03T14:07:12.000Z","size":40,"stargazers_count":5,"open_issues_count":8,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-18T12:48:29.682Z","etag":null,"topics":["java","library","maven","sonatype"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MathieuSoysal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-02-10T18:12:23.000Z","updated_at":"2025-03-29T03:45:55.000Z","dependencies_parsed_at":"2024-10-20T15:40:53.553Z","dependency_job_id":null,"html_url":"https://github.com/MathieuSoysal/Java-maven-library-publisher","commit_stats":{"total_commits":31,"total_committers":4,"mean_commits":7.75,"dds":"0.25806451612903225","last_synced_commit":"d94433921cba0b95d7b9d4488bba1cc4cdf95b27"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathieuSoysal%2FJava-maven-library-publisher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathieuSoysal%2FJava-maven-library-publisher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathieuSoysal%2FJava-maven-library-publisher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathieuSoysal%2FJava-maven-library-publisher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MathieuSoysal","download_url":"https://codeload.github.com/MathieuSoysal/Java-maven-library-publisher/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250487531,"owners_count":21438612,"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":["java","library","maven","sonatype"],"created_at":"2024-10-02T13:04:54.794Z","updated_at":"2025-04-23T18:11:14.602Z","avatar_url":"https://github.com/MathieuSoysal.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Build and publish automatically your Java Maven Library to GitHub Packages and Maven Central.\n\nGitHub action to build a Java Maven library and publish it to GitHub Packages and Maven Central. \n\n## Requirements\n\n- Your project need to use Maven\n- [ ] [Create an account on Sonatype](https://issues.sonatype.org/secure/Signup!default.jspa)\n- [ ] [Create a JIRA ticket on Sonatype to approve your groupId (io.github.YOUR-GITHUB-USERNAME)](https://issues.sonatype.org/secure/CreateIssue.jspa?issuetype=21\u0026pid=10134)\n- [ ] [Generate a gpg key and distribute the public key to a keyserver](https://central.sonatype.org/publish/requirements/gpg/)\n\n## Configurations\n\n### GitHub secrets \nCreate your GitHub secrets on your repository:\n- [ ] **NEXUS_USERNAME** with your username used on Sonatype\n- [ ] **NEXUS_PASSWORD** with your password used on Sonatype\n- [ ] **GPG_PRIVATE_KEY** with the private key of your generated pgp key\n  - to get the private key `gpg --armor --export-secret-key \u003ckey-id\u003e \u003e privkey.asc` \n- [ ] **GPG_PASSPHRASE** with the passphrase of your gpg key\n\n### pom.xml\nInside your *pom.xml* file you need to set:\n- [ ] [**the good *groupId*** (io.github.YOUR-GITHUB-USERNAME)](https://github.com/MathieuSoysal/Java-maven-libray-publisher/blob/605c3ac3f7da571b4d63009a89b0cf22710d1603/pom-example.xml#L6)\n- [ ] [**a description**](https://github.com/MathieuSoysal/Java-maven-libray-publisher/blob/605c3ac3f7da571b4d63009a89b0cf22710d1603/pom-example.xml#L16)\n- [ ] [**a license**](https://github.com/MathieuSoysal/Java-maven-libray-publisher/blob/605c3ac3f7da571b4d63009a89b0cf22710d1603/pom-example.xml#L68-L75)\n- [ ] [**the developers**](https://github.com/MathieuSoysal/Java-maven-libray-publisher/blob/605c3ac3f7da571b4d63009a89b0cf22710d1603/pom-example.xml#L77-L90)\n- [ ] [**issueManagement**](https://github.com/MathieuSoysal/Java-maven-libray-publisher/blob/605c3ac3f7da571b4d63009a89b0cf22710d1603/pom-example.xml#L92-L96)\n- [ ] [**scm**](https://github.com/MathieuSoysal/Java-maven-libray-publisher/blob/605c3ac3f7da571b4d63009a89b0cf22710d1603/pom-example.xml#L98-L105)\n- [ ] [**the ossrhDeploy profile**](https://github.com/MathieuSoysal/Java-maven-libray-publisher/blob/605c3ac3f7da571b4d63009a89b0cf22710d1603/pom-example.xml#L109-L192)\n- [ ] [**the githubDeploy profile**](https://github.com/MathieuSoysal/Java-maven-libray-publisher/blob/605c3ac3f7da571b4d63009a89b0cf22710d1603/pom-example.xml#L195-L206)\n\n*For more details you can look [pom-example.xml](https://github.com/MathieuSoysal/Java-maven-libray-publisher/blob/main/pom-example.xml)*\n\n\n\n## Usage\n\nThe workflow, usually declared in `.github/workflows/library-publish.yml`, looks like:\n\n```YAML\nname: Java library publisher\non:\n  release:\n    types: [created]\njobs:\n  publish:\n    runs-on: ubuntu-latest\n    steps:\n      - name: Maven Library build and publish\n        uses: MathieuSoysal/Java-maven-library-publisher@v1.0.3\n        with:\n          nexus-username: ${{ secrets.NEXUS_USERNAME }}\n          nexus-password: ${{ secrets.NEXUS_PASSWORD }}\n          gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}\n          gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }}\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          java-version: 17\n```\n## Badge\n![image](https://user-images.githubusercontent.com/43273304/153753204-fbf0d020-c650-4b9f-9b55-13a53f50bc5b.png)\n\nDon't forget to add your own MavenCentral badges to your readme :wink::\n- to get your maven-central badge : https://shields.io/category/platform-support\n\n## License\nThe Dockerfile and associated scripts and documentation in this project are released under the [Apache 2.0 License](https://github.com/MathieuSoysal/Javadoc-publisher.yml/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieusoysal%2Fjava-maven-library-publisher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathieusoysal%2Fjava-maven-library-publisher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathieusoysal%2Fjava-maven-library-publisher/lists"}