Hi Evgeny,

Yeah, That was the case. I solved the problem using the ant task approach.

Following is the plugin details. I am putting for future reference.

                   <plugin>
                        <artifactId>maven-antrun-plugin</artifactId>
                        <version>${version.maven.antrunplugin}</version>
                        <executions>
                            <execution>
                                <phase>prepare-package</phase>
                                <configuration>
                                    <target 
xmlns:jacoco="antlib:org.jacoco.ant">
                                        //this task is to provide class/src 
files locations for jacoco report generation
                                        <taskdef uri="antlib:org.jacoco.ant" 
resource="org/jacoco/ant/antlib.xml">
                                            <classpath 
path="${project.build.directory}"/>
                                        </taskdef>
                                        <jacoco:report>
                                            <executiondata>
                                                <file 
file="${project.build.directory}/jacoco.exec"/>
                                            </executiondata>
                                            <structure name="Sample Tests">
                                                <classfiles>
                                                    <fileset 
dir="../core/target/classes"/>
                                                </classfiles>
                                                <sourcefiles encoding="UTF-8">
                                                    <fileset dir="../core/src"/>
                                                </sourcefiles>
                                            </structure>
                                            <html 
destdir="${project.build.directory}/site/jacoco"/>
                                        </jacoco:report>
                                    </target>
                                </configuration>
                                <goals>
                                    <goal>run</goal>
                                </goals>
                            </execution>
                        </executions>
                        <dependencies>
                            <dependency>
                                <groupId>org.jacoco</groupId>
                                <artifactId>org.jacoco.ant</artifactId>
                                <version>${version.org.jacoco.ant}</version>
                            </dependency>
                        </dependencies>
                    </plugin>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/51136280-e068-4e59-8b67-f323634d590f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to