Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18730

camel-report-maven-plugin - Class missing when generating the route coverage report

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.18.3, 3.19.0
    • 3.14.7, 3.18.4, 3.20.0
    • None
    • None
    • Unknown

    Description

      After generating the route coverage of the tests, if we launch the maven command mvn camel-report:route-coverage, the plugin fails with the next error:

      [ERROR] Failed to execute goal org.apache.camel:camel-report-maven-plugin:3.20.0-SNAPSHOT:route-coverage (default-cli) on project camel-example-main: Execution default-cli of goal org.apache.camel:camel-report-maven-plugin:3.20.0-SNAPSHOT:route-coverage failed: A required class was missing while executing org.apache.camel:camel-report-maven-plugin:3.20.0-SNAPSHOT:route-coverage: edu/emory/mathcs/backport/java/util/Collections
      [ERROR] -----------------------------------------------------
      [ERROR] realm =    plugin>org.apache.camel:camel-report-maven-plugin:3.20.0-SNAPSHOT
      [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
      [ERROR] urls[0] = file:/Users/foo/.m2/repository/org/apache/camel/camel-report-maven-plugin/3.20.0-SNAPSHOT/camel-report-maven-plugin-3.20.0-SNAPSHOT.jar
      [ERROR] urls[1] = file:/Users/foo/.m2/repository/org/apache/httpcomponents/httpclient/4.5.13/httpclient-4.5.13.jar
      [ERROR] urls[2] = file:/Users/foo/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar
      [ERROR] urls[3] = file:/Users/foo/.m2/repository/org/apache/httpcomponents/httpcore/4.4.15/httpcore-4.4.15.jar
      [ERROR] urls[4] = file:/Users/foo/.m2/repository/commons-codec/commons-codec/1.15/commons-codec-1.15.jar
      [ERROR] urls[5] = file:/Users/foo/.m2/repository/org/codehaus/mojo/exec-maven-plugin/1.6.0/exec-maven-plugin-1.6.0.jar
      [ERROR] urls[6] = file:/Users/foo/.m2/repository/org/codehaus/plexus/plexus-utils/3.3.0/plexus-utils-3.3.0.jar
      [ERROR] urls[7] = file:/Users/foo/.m2/repository/org/apache/commons/commons-exec/1.3/commons-exec-1.3.jar
      [ERROR] urls[8] = file:/Users/foo/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-annotations/3.6.4/maven-plugin-annotations-3.6.4.jar
      [ERROR] urls[9] = file:/Users/foo/.m2/repository/org/apache/camel/camel-core/3.20.0-SNAPSHOT/camel-core-3.20.0-SNAPSHOT.jar
      [ERROR] urls[10] = file:/Users/foo/.m2/repository/org/apache/camel/camel-core-engine/3.20.0-SNAPSHOT/camel-core-engine-3.20.0-SNAPSHOT.jar
      [ERROR] urls[11] = file:/Users/foo/.m2/repository/org/apache/camel/camel-api/3.20.0-SNAPSHOT/camel-api-3.20.0-SNAPSHOT.jar
      [ERROR] urls[12] = file:/Users/foo/.m2/repository/org/apache/camel/camel-base-engine/3.20.0-SNAPSHOT/camel-base-engine-3.20.0-SNAPSHOT.jar
      [ERROR] urls[13] = file:/Users/foo/.m2/repository/org/apache/camel/camel-base/3.20.0-SNAPSHOT/camel-base-3.20.0-SNAPSHOT.jar
      [ERROR] urls[14] = file:/Users/foo/.m2/repository/org/apache/camel/camel-core-reifier/3.20.0-SNAPSHOT/camel-core-reifier-3.20.0-SNAPSHOT.jar
      [ERROR] urls[15] = file:/Users/foo/.m2/repository/org/apache/camel/camel-core-processor/3.20.0-SNAPSHOT/camel-core-processor-3.20.0-SNAPSHOT.jar
      [ERROR] urls[16] = file:/Users/foo/.m2/repository/org/apache/camel/camel-management-api/3.20.0-SNAPSHOT/camel-management-api-3.20.0-SNAPSHOT.jar
      [ERROR] urls[17] = file:/Users/foo/.m2/repository/org/apache/camel/camel-support/3.20.0-SNAPSHOT/camel-support-3.20.0-SNAPSHOT.jar
      [ERROR] urls[18] = file:/Users/foo/.m2/repository/org/apache/camel/camel-util/3.20.0-SNAPSHOT/camel-util-3.20.0-SNAPSHOT.jar
      [ERROR] urls[19] = file:/Users/foo/.m2/repository/org/apache/camel/camel-core-languages/3.20.0-SNAPSHOT/camel-core-languages-3.20.0-SNAPSHOT.jar
      [ERROR] urls[20] = file:/Users/foo/.m2/repository/org/apache/camel/camel-core-model/3.20.0-SNAPSHOT/camel-core-model-3.20.0-SNAPSHOT.jar
      [ERROR] urls[21] = file:/Users/foo/.m2/repository/org/apache/camel/camel-bean/3.20.0-SNAPSHOT/camel-bean-3.20.0-SNAPSHOT.jar
      [ERROR] urls[22] = file:/Users/foo/.m2/repository/org/apache/camel/camel-browse/3.20.0-SNAPSHOT/camel-browse-3.20.0-SNAPSHOT.jar
      [ERROR] urls[23] = file:/Users/foo/.m2/repository/org/apache/camel/camel-cluster/3.20.0-SNAPSHOT/camel-cluster-3.20.0-SNAPSHOT.jar
      [ERROR] urls[24] = file:/Users/foo/.m2/repository/org/apache/camel/camel-controlbus/3.20.0-SNAPSHOT/camel-controlbus-3.20.0-SNAPSHOT.jar
      [ERROR] urls[25] = file:/Users/foo/.m2/repository/org/apache/camel/camel-dataformat/3.20.0-SNAPSHOT/camel-dataformat-3.20.0-SNAPSHOT.jar
      [ERROR] urls[26] = file:/Users/foo/.m2/repository/org/apache/camel/camel-dataset/3.20.0-SNAPSHOT/camel-dataset-3.20.0-SNAPSHOT.jar
      [ERROR] urls[27] = file:/Users/foo/.m2/repository/org/apache/camel/camel-direct/3.20.0-SNAPSHOT/camel-direct-3.20.0-SNAPSHOT.jar
      [ERROR] urls[28] = file:/Users/foo/.m2/repository/org/apache/camel/camel-directvm/3.20.0-SNAPSHOT/camel-directvm-3.20.0-SNAPSHOT.jar
      [ERROR] urls[29] = file:/Users/foo/.m2/repository/org/apache/camel/camel-file/3.20.0-SNAPSHOT/camel-file-3.20.0-SNAPSHOT.jar
      [ERROR] urls[30] = file:/Users/foo/.m2/repository/org/apache/camel/camel-health/3.20.0-SNAPSHOT/camel-health-3.20.0-SNAPSHOT.jar
      [ERROR] urls[31] = file:/Users/foo/.m2/repository/org/apache/camel/camel-language/3.20.0-SNAPSHOT/camel-language-3.20.0-SNAPSHOT.jar
      [ERROR] urls[32] = file:/Users/foo/.m2/repository/org/apache/camel/camel-log/3.20.0-SNAPSHOT/camel-log-3.20.0-SNAPSHOT.jar
      [ERROR] urls[33] = file:/Users/foo/.m2/repository/org/apache/camel/camel-mock/3.20.0-SNAPSHOT/camel-mock-3.20.0-SNAPSHOT.jar
      [ERROR] urls[34] = file:/Users/foo/.m2/repository/org/apache/camel/camel-ref/3.20.0-SNAPSHOT/camel-ref-3.20.0-SNAPSHOT.jar
      [ERROR] urls[35] = file:/Users/foo/.m2/repository/org/apache/camel/camel-rest/3.20.0-SNAPSHOT/camel-rest-3.20.0-SNAPSHOT.jar
      [ERROR] urls[36] = file:/Users/foo/.m2/repository/org/apache/camel/camel-saga/3.20.0-SNAPSHOT/camel-saga-3.20.0-SNAPSHOT.jar
      [ERROR] urls[37] = file:/Users/foo/.m2/repository/org/apache/camel/camel-scheduler/3.20.0-SNAPSHOT/camel-scheduler-3.20.0-SNAPSHOT.jar
      [ERROR] urls[38] = file:/Users/foo/.m2/repository/org/apache/camel/camel-seda/3.20.0-SNAPSHOT/camel-seda-3.20.0-SNAPSHOT.jar
      [ERROR] urls[39] = file:/Users/foo/.m2/repository/org/apache/camel/camel-stub/3.20.0-SNAPSHOT/camel-stub-3.20.0-SNAPSHOT.jar
      [ERROR] urls[40] = file:/Users/foo/.m2/repository/org/apache/camel/camel-timer/3.20.0-SNAPSHOT/camel-timer-3.20.0-SNAPSHOT.jar
      [ERROR] urls[41] = file:/Users/foo/.m2/repository/org/apache/camel/camel-validator/3.20.0-SNAPSHOT/camel-validator-3.20.0-SNAPSHOT.jar
      [ERROR] urls[42] = file:/Users/foo/.m2/repository/org/apache/camel/camel-vm/3.20.0-SNAPSHOT/camel-vm-3.20.0-SNAPSHOT.jar
      [ERROR] urls[43] = file:/Users/foo/.m2/repository/org/apache/camel/camel-xpath/3.20.0-SNAPSHOT/camel-xpath-3.20.0-SNAPSHOT.jar
      [ERROR] urls[44] = file:/Users/foo/.m2/repository/org/apache/camel/camel-xslt/3.20.0-SNAPSHOT/camel-xslt-3.20.0-SNAPSHOT.jar
      [ERROR] urls[45] = file:/Users/foo/.m2/repository/org/apache/camel/camel-xml-jaxb/3.20.0-SNAPSHOT/camel-xml-jaxb-3.20.0-SNAPSHOT.jar
      [ERROR] urls[46] = file:/Users/foo/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/2.3.3/jakarta.xml.bind-api-2.3.3.jar
      [ERROR] urls[47] = file:/Users/foo/.m2/repository/jakarta/activation/jakarta.activation-api/1.2.2/jakarta.activation-api-1.2.2.jar
      [ERROR] urls[48] = file:/Users/foo/.m2/repository/com/sun/xml/bind/jaxb-core/2.3.0/jaxb-core-2.3.0.jar
      [ERROR] urls[49] = file:/Users/foo/.m2/repository/com/sun/xml/bind/jaxb-impl/2.3.3/jaxb-impl-2.3.3.jar
      [ERROR] urls[50] = file:/Users/foo/.m2/repository/com/sun/activation/jakarta.activation/1.2.2/jakarta.activation-1.2.2.jar
      [ERROR] urls[51] = file:/Users/foo/.m2/repository/org/apache/camel/camel-xml-jaxp/3.20.0-SNAPSHOT/camel-xml-jaxp-3.20.0-SNAPSHOT.jar
      [ERROR] urls[52] = file:/Users/foo/.m2/repository/org/apache/camel/camel-xml-io-util/3.20.0-SNAPSHOT/camel-xml-io-util-3.20.0-SNAPSHOT.jar
      [ERROR] urls[53] = file:/Users/foo/.m2/repository/org/apache/camel/camel-catalog/3.20.0-SNAPSHOT/camel-catalog-3.20.0-SNAPSHOT.jar
      [ERROR] urls[54] = file:/Users/foo/.m2/repository/org/apache/camel/camel-core-catalog/3.20.0-SNAPSHOT/camel-core-catalog-3.20.0-SNAPSHOT.jar
      [ERROR] urls[55] = file:/Users/foo/.m2/repository/org/apache/camel/camel-util-json/3.20.0-SNAPSHOT/camel-util-json-3.20.0-SNAPSHOT.jar
      [ERROR] urls[56] = file:/Users/foo/.m2/repository/org/apache/camel/camel-tooling-model/3.20.0-SNAPSHOT/camel-tooling-model-3.20.0-SNAPSHOT.jar
      [ERROR] urls[57] = file:/Users/foo/.m2/repository/org/apache/camel/camel-catalog-lucene/3.20.0-SNAPSHOT/camel-catalog-lucene-3.20.0-SNAPSHOT.jar
      [ERROR] urls[58] = file:/Users/foo/.m2/repository/org/apache/lucene/lucene-core/8.11.1/lucene-core-8.11.1.jar
      [ERROR] urls[59] = file:/Users/foo/.m2/repository/org/apache/lucene/lucene-suggest/8.11.1/lucene-suggest-8.11.1.jar
      [ERROR] urls[60] = file:/Users/foo/.m2/repository/org/apache/lucene/lucene-analyzers-common/8.11.1/lucene-analyzers-common-8.11.1.jar
      [ERROR] urls[61] = file:/Users/foo/.m2/repository/org/apache/camel/camel-catalog-maven/3.20.0-SNAPSHOT/camel-catalog-maven-3.20.0-SNAPSHOT.jar
      [ERROR] urls[62] = file:/Users/foo/.m2/repository/org/codehaus/groovy/groovy/3.0.12/groovy-3.0.12.jar
      [ERROR] urls[63] = file:/Users/foo/.m2/repository/org/apache/ivy/ivy/2.5.1/ivy-2.5.1.jar
      [ERROR] urls[64] = file:/Users/foo/.m2/repository/org/apache/camel/camel-allcomponents/3.20.0-SNAPSHOT/camel-allcomponents-3.20.0-SNAPSHOT.pom
      [ERROR] urls[65] = file:/Users/foo/.m2/repository/org/apache/camel/camel-route-parser/3.20.0-SNAPSHOT/camel-route-parser-3.20.0-SNAPSHOT.jar
      [ERROR] urls[66] = file:/Users/foo/.m2/repository/org/apache/camel/camel-tooling-util/3.20.0-SNAPSHOT/camel-tooling-util-3.20.0-SNAPSHOT.jar
      [ERROR] urls[67] = file:/Users/foo/.m2/repository/org/jboss/forge/roaster/roaster-api/2.26.0.Final/roaster-api-2.26.0.Final.jar
      [ERROR] urls[68] = file:/Users/foo/.m2/repository/org/jboss/forge/roaster/roaster-jdt/2.26.0.Final/roaster-jdt-2.26.0.Final.jar
      [ERROR] Number of foreign imports: 1
      [ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
      [ERROR] 
      [ERROR] -----------------------------------------------------
      [ERROR] : edu.emory.mathcs.backport.java.util.Collections
      [ERROR] -> [Help 1]
      [ERROR] 
      
      

      Attachments

        Activity

          People

            nfilotto Nicolas Filotto
            nfilotto Nicolas Filotto
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: