Hello Baptiste,
thanks a lot for the information. I will open a new issue there. Regards, Gerrit Von: [email protected] [mailto:[email protected]] Im Auftrag von Baptiste Mathus Gesendet: Sonntag, 18. Dezember 2016 15:57 An: noreply-spamdigest via mojohaus-dev Betreff: Re: Cobertura Maven Plugin project: How to contact? 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 2016-12-15 8:57 GMT+01:00 <[email protected]>: 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. -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mojohaus-dev/2aa78e66-d300-4349-96a8-86773a11064d%40googlegroups.com <https://groups.google.com/d/msgid/mojohaus-dev/2aa78e66-d300-4349-96a8-86773a11064d%40googlegroups.com?utm_medium=email&utm_source=footer> . For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mojohaus-dev/CANWgJS6oqn_a%2BM-59wASLs9ttBwEVDTFWBnkP%3DsisyT09xAF6g%40mail.gmail.com <https://groups.google.com/d/msgid/mojohaus-dev/CANWgJS6oqn_a%2BM-59wASLs9ttBwEVDTFWBnkP%3DsisyT09xAF6g%40mail.gmail.com?utm_medium=email&utm_source=footer> . For more options, visit https://groups.google.com/d/optout. -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mojohaus-dev/3B7A7BDFFD286F49A19A5B35D26E08FB01F3D461%40srvmail2.aurenz.local. For more options, visit https://groups.google.com/d/optout.
