|
1 | | -[Codecov][0] Java Example |
2 | | -========================= |
| 1 | +[Codecov][0] Java Maven Example |
| 2 | +=============================== |
3 | 3 |
|
4 | | -1. Add JaCoCo Plugin to your pom.xml file, [see here](https://github.com/codecov/example-java/blob/master/pom.xml#L38-L56) |
5 | | -2. Call `bash <(curl -s https://codecov.io/bash) -t repository-upload-token` at the end of your CI build |
6 | | - - Is you repository public and tested with Travis, CircleCI or AppVeyor? Then the repository upload token is not required! |
| 4 | +1. Add `cobertura-maven-plugin` plugin to your pom.xml file, [see here](https://github.com/codecov/example-java-maven/blob/master/pom.xml#L47-L58) |
| 5 | +2. Call `bash <(curl -s https://codecov.io/bash)` at the end of your CI build, [see here](https://github.com/codecov/example-java-maven/blob/master/.travis.yml#L7) |
| 6 | + - [Learn how to include your upload repository token][5] |
7 | 7 |
|
8 | | -> Also see out [Example Android][3] and [Example Gradle][2] repositories. |
9 | | -
|
10 | | - |
11 | | -# Frequently Asked Questions |
12 | | - |
13 | | -####❔How do I enable multi-module projects? |
14 | | - |
15 | | -In your `pom.xml` file please append a list of modules in your projects |
16 | | - |
17 | | -```xml |
18 | | -<project> |
19 | | - <modules> |
20 | | - <module>module_a/</module> |
21 | | - <module>model_b/</module> |
22 | | - </modules> |
23 | | -</project> |
24 | | -``` |
25 | | - |
26 | | -####❔Seeing `Skipping JaCoCo execution due to missing execution data file`? |
27 | | - |
28 | | -Please see [http://stackoverflow.com/questions/18107375/...](http://stackoverflow.com/questions/18107375/getting-skipping-jacoco-execution-due-to-missing-execution-data-file-upon-exec) |
29 | | - |
30 | | -####❔Does Codecov accept `jacoco.exec` reports? |
31 | | - |
32 | | -**No**, these files are not supported. Please produce a `xml` file as detailed in the pom.xml file at [codecov/example-java][1] |
33 | | - |
34 | | -####❔Is there a Gradle example? |
35 | | - |
36 | | -**Yes**, enter [codecov/example-gradle][2] |
37 | | - |
38 | | -####❔Is there a Android example? |
39 | | - |
40 | | -**Yes**, enter [codecov/example-android][3] |
| 8 | +> Other Examples |
| 9 | +> - [Java JaCoCo Example][1] |
| 10 | +> - [Android Example][3] |
| 11 | +> - [Gradle Example][2] |
41 | 12 |
|
42 | 13 |
|
43 | 14 |
|
44 | 15 | [0]: https://codecov.io/ |
45 | 16 | [1]: https://github.com/codecov/example-java |
46 | 17 | [2]: https://github.com/codecov/example-gradle |
47 | 18 | [3]: https://github.com/codecov/example-android |
| 19 | +[5]: http://docs.codecov.io/docs/about-the-codecov-bash-uploader#section-upload-token |
0 commit comments