Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-450

JarResultBuildStep - Duplicate entry META-INF/build.metadata entry warnings

    XMLWordPrintable

Details

    • Undefined
    • ---

    Description

      When running Quickstarts / sample applications there are many warnings about duplicate entry META-INF/build.metadata logged from JarResultBuildStep

      https://github.com/quarkusio/quarkus/blob/master/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/JarResultBuildStep.java#L392

      build.metadata file is introduced by RH productization.
      I think JarResultBuildStep should filter out them from the checks
      sdouglas1@redhat.com / gandrian@redhat.com wdyt?

       
      An example can be seen here: https://quarkus-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/rs-quickstarts-jvm-quarkus-bom/lastCompletedBuild/consoleFull

      curl https://quarkus-qe-jenkins.rhev-ci-vms.eng.rdu2.redhat.com/job/rs-quickstarts-jvm-quarkus-bom/lastCompletedBuild/consoleFull 2>/dev/null | grep "Duplicate entry META-INF/build.metadata" | wc -l
            77
      

      Detailed snippet:

      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from jakarta.inject:jakarta.inject-api::jar:1.0.0.redhat-00002(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from io.quarkus:quarkus-development-mode-spi::jar:1.7.5.Final-redhat-00002(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from org.jboss.logging:jboss-logging::jar:3.3.2.Final-redhat-00001(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from org.jboss.logging:jboss-logging-annotations::jar:2.1.0.Final-redhat-00001(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from org.jboss.threads:jboss-threads::jar:3.1.1.Final-redhat-00001(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from org.jboss.slf4j:slf4j-jboss-logging::jar:1.2.0.Final-redhat-00001(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from org.wildfly.common:wildfly-common::jar:1.5.4.Final-format-001-redhat-00001(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from io.quarkus:quarkus-bootstrap-runner::jar:1.7.5.Final-redhat-00002(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from io.quarkus:quarkus-core::jar:1.7.5.Final-redhat-00002(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from io.quarkus.arc:arc::jar:1.7.5.Final-redhat-00002(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from io.quarkus:quarkus-arc::jar:1.7.5.Final-redhat-00002(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      [WARNING] [io.quarkus.deployment.pkg.steps.JarResultBuildStep] Duplicate entry META-INF/build.metadata entry from io.quarkus:quarkus-jackson::jar:1.7.5.Final-redhat-00002(compile) will be ignored. Existing file was provided by jakarta.enterprise:jakarta.enterprise.cdi-api::jar:2.0.2.redhat-00002(compile)
      

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            rsvoboda@redhat.com Rostislav Svoboda
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: