https://github.com/halkeye/codacy-maven-plugin
Maven plugin tod Create and upload coverage report to https://codacy.com
https://github.com/halkeye/codacy-maven-plugin
Last synced: about 1 month ago
JSON representation
Maven plugin tod Create and upload coverage report to https://codacy.com
- Host: GitHub
- URL: https://github.com/halkeye/codacy-maven-plugin
- Owner: halkeye
- Created: 2016-08-27T22:17:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2023-01-16T13:01:57.000Z (over 2 years ago)
- Last Synced: 2025-04-26T02:26:34.431Z (about 1 month ago)
- Language: Java
- Homepage:
- Size: 366 KB
- Stars: 11
- Watchers: 3
- Forks: 14
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://maven-badges.herokuapp.com/maven-central/com.gavinmogan/codacy-maven-plugin/)
# codacy-maven-pluginCreate and upload coverage report to https://codacy.com
## Commandline Usage
`mvn com.gavinmogan:codacy-maven-plugin:coverage -DcoverageReportFile=target/site/jacoco/jacoco.xml -DprojectToken=blah -DapiToken=blah`
where:
* *coverageReportFile* is either a Jacoco or Cobertura file
* *projectToken* is your project token
* *apiToken* is your api token## Enterprise
To send coverage in the enterprise version you should:
```
export CODACY_API_BASE_URL=:16006
```### Self Signed
In case your on-prem codacy server has a self-signed certificate,
use `-Dcodacy.trustSelfSignedCerts` in the command line,
or configure the plugin in the `pom.xml` using:
```xmltrue
```
## POM Usage
### Travis CI Example
```xml
codecoverage
env.TRAVIS
com.gavinmogan
codacy-maven-plugin
1.2.0
${env.CODACY_API_TOKEN}
${env.CODACY_PROJECT_TOKEN}
${project.reporting.outputDirectory}/jacoco.xml
${env.TRAVIS_COMMIT}
https://api.codacy.com
false
post-test
post-integration-test
coverage
```## License
MIT
## Contributing
I'm open to any and all forms of contribution. Documentation improvements, issues, pull requests, patches, test cases, etc.