Cobertura Maven Plugin project: How to contact?

36 views
Skip to first unread message

g.h...@aurenz.de

unread,
Dec 15, 2016, 2:57:07 AM12/15/16
to mojohaus-dev
Hello everyone, :)

I found a bug in the Cobertura Maven Plugin. I tried to contact the project, but it didn't work. The mentioned issue tracking system (link) is down as Codehaus is down:
http://jira.codehaus.org/browse/MCOBERTURA
Same goes for the mailing lists of the project.

Does anyone know a way to contact them?



Just for documentation purposes a short description of the bug:

I added the following to my pom.xml file with the Cobertura Maven Plugin configuration:
<configuration>
   
<check>
       
<regexes>
           
<regex>
               
<pattern>org.myproject.*</pattern>
               
<lineRate>61</lineRate>
           
</regex>
       
</regexes>
   
</check>
</configuration>

After that I executed the Maven build and got the following error:
[INFO] --- cobertura-maven-plugin:2.7:check (default) @ myproject ---
[INFO] Cobertura 2.1.1 - GNU GPL License (NO WARRANTY) - See COPYRIGHT file

[ERROR] Exception in thread "main" java.lang.NumberFormatException: For input string: "null"
    at java
.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java
.lang.Integer.parseInt(Integer.java:580)
    at java
.lang.Integer.valueOf(Integer.java:766)
    at net
.sourceforge.cobertura.check.CheckCoverageMain.inRangeAndDivideByOneHundred(CheckCoverageMain.java:77)
    at net
.sourceforge.cobertura.check.CheckCoverageMain.checkCoverage(CheckCoverageMain.java:114)
    at net
.sourceforge.cobertura.check.CheckCoverageMain.main(CheckCoverageMain.java:163)

The reason: The Cobertura Maven Plugin just is a wrapper for Cobertura. And Cobertura expectes - if a regex is used - that a pattern, a aline rate as well as a branch rate is submitted. And the Cobertura Maven Plugin doesn't check this and fail the build beforehand with an error message describing the problem. When I read the error message above I didn't know at all what I did wrong or what went wrong. So I had to step through the code to find the bug - which isn't satisfying at all.

Baptiste Mathus

unread,
Dec 18, 2016, 9:57:28 AM12/18/16
to noreply-spamdigest via mojohaus-dev
Hello,

The whole MOJO @ Codehaus has moved to mojohaus.org/ 

So you probably want to file an issue and possibly a PR on https://github.com/mojohaus/cobertura-maven-plugin/issues to move it forward.

(@All : note: just asked Ben why the redirection does not seem to be working anymore. Is this expected?)

HTH
Cheers



--
You received this message because you are subscribed to the Google Groups "mojohaus-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mojohaus-dev+unsubscribe@googlegroups.com.
To post to this group, send email to mojoha...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mojohaus-dev/2aa78e66-d300-4349-96a8-86773a11064d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hohl, Gerrit

unread,
Dec 19, 2016, 2:42:54 AM12/19/16
to mojoha...@googlegroups.com

Hello Baptiste,

 

thanks a lot for the information.

I will open a new issue there.

 

Regards,

Gerrit

--

To unsubscribe from this group and stop receiving emails from it, send an email to mojohaus-dev...@googlegroups.com.

 

--

You received this message because you are subscribed to the Google Groups "mojohaus-dev" group.

To unsubscribe from this group and stop receiving emails from it, send an email to mojohaus-dev...@googlegroups.com.


To post to this group, send email to mojoha...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages