Hoping someone can help me out.  I have the following in my reactor pom :

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.19.1</version>
                <configuration>
                    <argLine>${surefireArgLine} -Xms256m -Xmx2048m</argLine>
                    <forkCount>1</forkCount>
                    <runOrder>random</runOrder>
                    <testFailureIgnore>true</testFailureIgnore>
                </configuration>
            </plugin>
            
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.7.9</version>
                <configuration>
                    <propertyName>surefireArgLine</propertyName>
                </configuration>
                <executions>
                    <execution>
                        <id>prepare-agent</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>


In a seperate reporting pom I have this:

    <reporting>
        <plugins>

           <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.7.9</version>
                <inherited>true</inherited>
                <reportSets>
                    <reportSet>
                        <reports>
                            <report>report-aggregate</report>
                        </reports>
                    </reportSet>
                </reportSets>
            </plugin>
        </plugins>
    </reporting>

    <build>

        <plugins>            
            <plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>0.7.9</version>
                <inherited>true</inherited>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <goals>
                            <goal>merge</goal>
                        </goals>
                    </execution>
                </executions>
                <configuration>
                    <destFile>${project.build.directory}/jacoco.exec</destFile>
                    <fileSets>
                      <fileSet 
implementation="org.apache.maven.shared.model.fileset.FileSet">
                        <directory>${basedir}/..</directory>
                        <includes>
                          <include>**/target/*.exec</include>
                        </includes>
                      </fileSet>
                    </fileSets>
                </configuration>  
            </plugin>
        </plugins>
    </build>

So the idea is that I build my multi-module project which generates multiple 
jacoco.exec files.  Then I execute a build on the reporting project to merge 
the individual jacoco.exec files and executes a report.  The individual 
jacoco.exec files all work and have data.  The merge seems to work as well but 
the final report has nothing.  Is everything that the jacoco reporting plugin 
requires in the jacoco.exec file or does it require jar files/classes as well?

 

-- 
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/ea55d9b2-5c4e-4415-afea-118cce6e6f0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to