GithubHelp home page GithubHelp logo

Comments (6)

jewzaam avatar jewzaam commented on July 23, 2024

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.

trautonen avatar trautonen commented on July 23, 2024

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.

metteo avatar metteo commented on July 23, 2024

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.

trautonen avatar trautonen commented on July 23, 2024

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.

metteo avatar metteo commented on July 23, 2024

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.

trautonen avatar trautonen commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.