Comments (6)
Did a simple hack in a fork but won't do a pull request. It skips ANY failure to create a source loader, which is too much. It should only skip if no source could be found, such as with a module where packaging=pom.
Note that coveralls:cobertura has no problem with multi-module projects and my final "ah ha" was when looking for some project in the wild that had similar setup and used coveralls.. they all ran cobertura.
from coveralls-maven-plugin.
JaCoCo does not support multi-module projects properly and currently my plugin expects that you are running a single module build with JaCoCo. There's some discussion about multi-module support for JaCoCo here.
Multi-module support is about to change in version 3 of my plugin. I will add simple aggregation support that merges multiple reports to a single one. This does not resolve the issue with JaCoCo that it does not count coverage from a module that is tested from another module within same reactor, but still better than nothing.
Cobertura supports multi-module aggregation, but does not work with Java 8. So at the moment we don't have a real solution at all for multi-module Java 8 projects.
from coveralls-maven-plugin.
I have the same problem: https://travis-ci.org/metteo/jts/jobs/33930195
[ERROR] Failed to execute goal org.eluder.coveralls:coveralls-maven-plugin:2.2.0:cobertura (default-cli) on project jts: I/O operation failed: /home/travis/build/metteo/jts/jts/target/coveralls.json (No such file or directory) -> [Help 1]
This fails on parent pom project. What is interesting, I was able to run the plugin manually on my computer and it worked (If you look on coveralls page there are 2 builds). Somehow it fails on travis. I had similar issue with sourceEncoding. I had it in plugin configuration but it was complaining on travis until I set it as project.build.sourceEncoding.
from coveralls-maven-plugin.
Maybe there's difference with the maven versions at Travis and in your local environment. Anyway, the plugin is not designed to work properly with multi module projects that run without aggregation. I see you use cobertura without aggregation, and that most likely causes the failure.
If you can add Sonatype's repository
<repository>
<id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name>
<url>
https://oss.sonatype.org/content/repositories/snapshots
</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
And change the plugin version to 3.0.0-multi-module-SNAPSHOT
and replace the plugin's goal with org.eluder.coveralls:coveralls-maven-plugin:report
and see how it goes. I'd like to get some feedback from different projects with the new multi module support.
from coveralls-maven-plugin.
I added that multi module version to the project but Travis still tries to use 2.2.0... (https://travis-ci.org/metteo/jts/jobs/34036291) I will check that more carefully soon.
from coveralls-maven-plugin.
The original issue by @jewzaam is now resolved in version 3.0.0. The plugin supports multi module report aggregation with any of the supported coverage tools. I will close this issue now. You can open a new issue if something still pops up.
from coveralls-maven-plugin.
Related Issues (20)
- Do not count generated-sources in coverage metrics
- Output a meaningful error message if Git metadata cannot be found HOT 2
- Unable to upload coveralls data from Travis build HOT 5
- Add option to not fail the build when a processing exception occurs HOT 1
- No coverage report files found. HOT 2
- Connect to coveralls.io:443 refused HOT 1
- Coveralls seems messy after changing Jenkins Job
- On travis, v4.3.0 fails to upload logs while v2.1.0 works
- Support Coveralls Parallel Flag HOT 1
- Submission failed from BitBucket Pipeline
- Support github actions as service HOT 10
- eta on java 11 support? HOT 5
- Missing child tag
- Can we report branch coverage?
- coveralls-maven-plugin fails on Java 11 - required class missing: DatatypeConverter
- I would like to be a maintainer of this project if you leave it (or fork it once again) HOT 17
- Coveralls.json is generated with double slash on file sources path
- --threads 1 (or -T 1) stucks the plugin
- HTTP 405 error when submitting coverage info
- V.3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coveralls-maven-plugin.