Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-6805

The parameters 'fileSets' for goal org.jacoco:jacoco-maven-plugin:0.8.4:merge are missing or invalid

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 3.6.0
    • Fix Version/s: None
    • Component/s: Plugins and Lifecycle
    • Labels:
    • Environment:
      Production

      Description

      We are using the FileManagement to search the file for Jacoco Merge MOJO to execute .

      But we are facing the below error . 

      [main] ERROR org.apache.maven.cli.MavenCli - Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.4:merge (default-cli) on project s2b-common: The parameters 'fileSets' for goal org.jacoco:jacoco-maven-plugin:0.8.4:merge are missing or invalid -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.4:merge (default-cli) on project s2b-common: The parameters 'fileSets' for goal org.jacoco:jacoco-maven-plugin:0.8.4:merge are missing or invalid

      We tried various option but not sure what paramater is missing/invalid . We have tried the same way of format provided in the below link . 

      https://www.jacoco.org/jacoco/trunk/coverage/jacoco-maven-plugin/org.jacoco.maven/MergeMojo.java.html

      <execution><execution> <id>merge-results</id> <phase>verify</phase> <goals><goal>merge</goal></goals> <configuration> <fileSets> <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet" filtered="true" packaged="true" encoding="UTF-8"> <outputDirectory>/</outputDirectory> <directory>${project.build.directory}</directory> <includes><include>.exec</include></includes> <excludes><exclude>/.txt</exclude></excludes> </fileSet>          </fileSets> <!-- <destFile>${project.build.directory}/jacoco.exec</destFile> --> </configuration> </execution>

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Shan291283 Umashankar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: