Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I am working on the same problem right now. I installed all necessary libs in my local Maven repo and from there I put it into our Company Maven Repo. It is not working quite right yet. Some of the tests fail that work nicely in my Maven test run, but since the outcome of the test is not important for the coverage data, I am quite satisfied.</p> <p>Here is my <code>Maven</code> snippet. I hope that helps. </p> <pre><code>&lt;plugin&gt; &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt; &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt; &lt;version&gt;1.1&lt;/version&gt; &lt;inherited&gt;false&lt;/inherited&gt; &lt;executions&gt; &lt;execution&gt; &lt;phase&gt;site&lt;/phase&gt; &lt;configuration&gt; &lt;tasks&gt; &lt;property name="compile_classpath" refid="maven.compile.classpath"/&gt; &lt;property name="runtime_classpath" refid="maven.runtime.classpath"/&gt; &lt;property name="test_classpath" refid="maven.test.classpath"/&gt; &lt;property name="plugin_classpath" refid="maven.plugin.classpath"/&gt; &lt;property name="CRAP4J_HOME" value="${user.home}/Projects/crap4j"/&gt; &lt;taskdef name="crap4j" classname="org.crap4j.anttask.Crap4jAntTask"&gt; &lt;classpath&gt; &lt;fileset dir="${CRAP4J_HOME}/lib"&gt; &lt;include name="**/*.jar"/&gt; &lt;/fileset&gt; &lt;/classpath&gt; &lt;/taskdef&gt; &lt;crap4j projectdir="${project.basedir}/alm-jar-server" outputDir="${project.basedir}/crap4jReports" dontTest="false" debug="true"&gt; &lt;classes&gt; &lt;pathElement location="${project.basedir}/target/classes"/&gt; &lt;/classes&gt; &lt;srces&gt; &lt;pathElement location="${project.basedir}/src/main/java"/&gt; &lt;/srces&gt; &lt;testClasses&gt; &lt;pathElement location="${project.basedir}/target/test-classes"/&gt; &lt;/testClasses&gt; &lt;libClasspath&gt; &lt;fileset dir="${user.home}/.m2/repository"&gt; &lt;include name="**/*.jar"/&gt; &lt;/fileset&gt; &lt;/libClasspath&gt; &lt;/crap4j&gt; &lt;/tasks&gt; &lt;/configuration&gt; &lt;goals&gt; &lt;goal&gt;run&lt;/goal&gt; &lt;/goals&gt; &lt;/execution&gt; &lt;/executions&gt; &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;org.crap4j&lt;/groupId&gt; &lt;artifactId&gt;crap4j&lt;/artifactId&gt; &lt;version&gt;1.1.6&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;org.kohsuke&lt;/groupId&gt; &lt;artifactId&gt;args4j&lt;/artifactId&gt; &lt;version&gt;2.0.1&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.agitar&lt;/groupId&gt; &lt;artifactId&gt;asmlib&lt;/artifactId&gt; &lt;version&gt;1.0&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;commons-httpclient&lt;/groupId&gt; &lt;artifactId&gt;commons-httpclient&lt;/artifactId&gt; &lt;version&gt;3.0&lt;/version&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.agitar&lt;/groupId&gt; &lt;artifactId&gt;coverage&lt;/artifactId&gt; &lt;version&gt;1.0&lt;/version&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;/plugin&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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