Note that there are some explanatory texts on larger screens.

plurals
  1. POCobertura doesn't work with Java 7
    primarykey
    data
    text
    <p>I am using maven 3.0.4, <code>JRE 1.7.0_09</code>. When I use <code>mvn clean install</code> all my tests passes and everything looks good - here is my surefire plugin configuration: </p> <pre><code>&lt;plugin&gt; &lt;version&gt;2.12.4&lt;/version&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-surefire-plugin&lt;/artifactId&gt; &lt;configuration&gt; &lt;!-- -XX:-UseSplitVerifier is for java 7 --&gt; &lt;argLine&gt;-XX:-UseSplitVerifier&lt;/argLine&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre> <p>Now, when I <code>mvn cobertura:cobertura</code> some of my tests have errors like this one: </p> <p><code>Expecting a stackmap frame at branch target ....</code> And some more errors that made me understand that it is not running using JRE7 (for example, <code>Encountered " "|" "| "" at line...</code>)</p> <p>Here is my cobertura plugin configuration:</p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;cobertura-maven-plugin&lt;/artifactId&gt; &lt;version&gt;2.5.1&lt;/version&gt; &lt;configuration&gt; &lt;formats&gt; &lt;format&gt;html&lt;/format&gt; &lt;format&gt;xml&lt;/format&gt; &lt;/formats&gt; &lt;/configuration&gt; &lt;/plugin&gt; </code></pre> <p>And the reporting is:</p> <pre><code>&lt;reporting&gt; &lt;plugins&gt; &lt;plugin&gt; &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt; &lt;artifactId&gt;cobertura-maven-plugin&lt;/artifactId&gt; &lt;version&gt;2.5.1&lt;/version&gt; &lt;configuration&gt; &lt;formats&gt; &lt;format&gt;html&lt;/format&gt; &lt;format&gt;xml&lt;/format&gt; &lt;/formats&gt; &lt;/configuration&gt; &lt;/plugin&gt; &lt;/plugins&gt; &lt;/reporting&gt; </code></pre> <p>I saw a lot of <a href="https://stackoverflow.com/questions/7010665/testng-emma-cobertura-coverage-and-jdk-7-result-in-classformaterror-and-verif">threads</a> that talk about this issue and the solution is to add this line <code>&lt;argLine&gt;-XX:-UseSplitVerifier&lt;/argLine&gt;</code> but it does not help.</p> <p>What am I doing wrong here?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload