{"id":18883681,"url":"https://github.com/veithen/jacoco-report-maven-plugin","last_synced_at":"2025-09-13T19:48:32.174Z","repository":{"id":34294466,"uuid":"158140985","full_name":"veithen/jacoco-report-maven-plugin","owner":"veithen","description":"Maven plugin that processes JaCoCo execution data and produces coverage reports that can be uploaded to codecov.io","archived":false,"fork":false,"pushed_at":"2024-04-15T23:30:27.000Z","size":345,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-16T11:06:28.713Z","etag":null,"topics":["codecov","jacoco","maven-plugin"],"latest_commit_sha":null,"homepage":"","language":"Java","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/veithen.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}},"created_at":"2018-11-19T00:32:05.000Z","updated_at":"2024-04-22T00:32:11.427Z","dependencies_parsed_at":"2023-02-16T01:45:57.102Z","dependency_job_id":"d14747d8-2f45-4943-af8d-9ae89d33816d","html_url":"https://github.com/veithen/jacoco-report-maven-plugin","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veithen%2Fjacoco-report-maven-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veithen%2Fjacoco-report-maven-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veithen%2Fjacoco-report-maven-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/veithen%2Fjacoco-report-maven-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/veithen","download_url":"https://codeload.github.com/veithen/jacoco-report-maven-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239852058,"owners_count":19707637,"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":["codecov","jacoco","maven-plugin"],"created_at":"2024-11-08T07:08:26.283Z","updated_at":"2025-02-20T14:24:34.819Z","avatar_url":"https://github.com/veithen.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jacoco-report-maven-plugin\n\nThis Maven plugin processes JaCoCo execution data and produces coverage reports that can then be uploaded to [codecov.io](https://codecov.io). The main difference with respect to other tools is that it correctly computes cross-module coverage in multi-module Maven builds.\n\nTo use the plugin, add the following to your project's root POM:\n\n    \u003cplugin\u003e\n        \u003cgroupId\u003ecom.github.veithen.maven\u003c/groupId\u003e\n        \u003cartifactId\u003ejacoco-report-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003ex.y.z\u003c/version\u003e\n        \u003cexecutions\u003e\n            \u003cexecution\u003e\n                \u003cgoals\u003e\n                    \u003cgoal\u003eprocess\u003c/goal\u003e\n                \u003c/goals\u003e\n            \u003c/execution\u003e\n        \u003c/executions\u003e\n    \u003c/plugin\u003e\n\nThis would be used in conjunction with the standard jacoco-maven-plugin to generate the execution data that is processed by jacoco-report-maven-plugin:\n\n    \u003cplugin\u003e\n        \u003cgroupId\u003eorg.jacoco\u003c/groupId\u003e\n        \u003cartifactId\u003ejacoco-maven-plugin\u003c/artifactId\u003e\n        \u003cversion\u003e0.8.2\u003c/version\u003e\n        \u003cexecutions\u003e\n            \u003cexecution\u003e\n                \u003cgoals\u003e\n                    \u003cgoal\u003eprepare-agent\u003c/goal\u003e\n                \u003c/goals\u003e\n            \u003c/execution\u003e\n        \u003c/executions\u003e\n    \u003c/plugin\u003e\n\nWith Github Actions you can then upload the coverage report using a configuration like this:\n\n    - name: Upload Coverage Report\n      uses: codecov/codecov-action@v4\n      with:\n        fail_ci_if_error: true\n        files: ./target/coverage.json\n        token: ${{ secrets.CODECOV_TOKEN }}\n\nYou might want to exclude the code from some modules from the coverage reports, e.g. modules that contain test utilities. In this case, set the `includeClasses` parameter to false for those modules:\n\n    \u003cplugin\u003e\n        \u003cgroupId\u003ecom.github.veithen.maven\u003c/groupId\u003e\n        \u003cartifactId\u003ejacoco-report-maven-plugin\u003c/artifactId\u003e\n        \u003cconfiguration\u003e\n            \u003cincludeClasses\u003efalse\u003c/includeClasses\u003e\n        \u003c/configuration\u003e\n    \u003c/plugin\u003e\n\nIf your project provides a Maven plugin and has integration tests set up with [maven-invoker-plugin](https://maven.apache.org/plugins/maven-invoker-plugin/), use the following configuration to collect coverage data from those integration tests:\n\n    \u003cpluginManagement\u003e\n        \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cartifactId\u003emaven-invoker-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e3.1.0\u003c/version\u003e\n                \u003cconfiguration\u003e\n                    \u003cmavenOpts\u003e${argLine}\u003c/mavenOpts\u003e\n                \u003c/configuration\u003e\n            \u003c/plugin\u003e\n        \u003c/plugins\u003e\n    \u003c/pluginManagement\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveithen%2Fjacoco-report-maven-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fveithen%2Fjacoco-report-maven-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fveithen%2Fjacoco-report-maven-plugin/lists"}