An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.gavinmogan/codacy-maven-plugin/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.gavinmogan/codacy-maven-plugin/)
# codacy-maven-plugin

Create 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:
```xml

true

```

## 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.