Uploaded image for project: 'Red Hat Build of Apache Camel for Quarkus'
  1. Red Hat Build of Apache Camel for Quarkus
  2. CEQ-2177

Productized Camel Quarkus has added buildmetadata plugin which breaks QE tests

XMLWordPrintable

    • False
    • False
    • Undefined
    • 0

      Running camel quarkus build in parallel (which is used for latter tests) fails. Such unexpected change from upstream breaks pipeline and we are loosing test pipeline stability. We should identify why this plugin com.redhat.rcm.maven.plugin:buildmetadata-maven-plugin:1.7.0:provide-buildmetadata was added and maybe re-think how to avoid such situations. Eg. can this plugin be added to some profile called productization ? So the plugin wouldn't be triggered by default.

      [ERROR] Failed to execute goal com.redhat.rcm.maven.plugin:buildmetadata-maven-plugin:1.7.0:provide-buildmetadata (build-metadata) on project camel-quarkus-core-parent: Cannot copy properties to generated sources. Failed to copy full contents from '/mnt/hudson_workspace/workspace/Integration.next/camel-quarkus/integration-tests/extensions-core/core/target/build.metadata' to '/mnt/hudson_workspace/workspace/Integration.next/camel-quarkus/integration-tests/build.metadata' -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.redhat.rcm.maven.plugin:buildmetadata-maven-plugin:1.7.0:provide-buildmetadata (build-metadata) on project camel-quarkus-core-parent: Cannot copy properties to generated sources.
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:190)
          at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:186)
          at java.util.concurrent.FutureTask.run (FutureTask.java:264)
          at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
          at java.util.concurrent.FutureTask.run (FutureTask.java:264)
          at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
          at java.lang.Thread.run (Thread.java:834)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot copy properties to generated sources.
          at com.redhat.rcm.maven.plugin.buildmetadata.io.AdditionalLocationsSupport.addFileToSources (AdditionalLocationsSupport.java:203)
          at com.redhat.rcm.maven.plugin.buildmetadata.io.AdditionalLocationsSupport.handle (AdditionalLocationsSupport.java:143)
          at com.redhat.rcm.maven.plugin.buildmetadata.BuildMetaDataMojo.writeBuildMetaData (BuildMetaDataMojo.java:605)
          at com.redhat.rcm.maven.plugin.buildmetadata.BuildMetaDataMojo.createBuildProperties (BuildMetaDataMojo.java:590)
          at com.redhat.rcm.maven.plugin.buildmetadata.BuildMetaDataMojo.execute (BuildMetaDataMojo.java:553)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:190)
          at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:186)
          at java.util.concurrent.FutureTask.run (FutureTask.java:264)
          at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
          at java.util.concurrent.FutureTask.run (FutureTask.java:264)
          at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
          at java.lang.Thread.run (Thread.java:834)
      Caused by: java.io.IOException: Failed to copy full contents from '/mnt/hudson_workspace/workspace/Integration.next/camel-quarkus/integration-tests/extensions-core/core/target/build.metadata' to '/mnt/hudson_workspace/workspace/Integration.next/camel-quarkus/integration-tests/build.metadata'
          at org.apache.commons.io.FileUtils.doCopyFile (FileUtils.java:1087)
          at org.apache.commons.io.FileUtils.copyFile (FileUtils.java:1021)
          at org.apache.commons.io.FileUtils.copyFile (FileUtils.java:968)
          at com.redhat.rcm.maven.plugin.buildmetadata.io.AdditionalLocationsSupport.addFileToSources (AdditionalLocationsSupport.java:194)
          at com.redhat.rcm.maven.plugin.buildmetadata.io.AdditionalLocationsSupport.handle (AdditionalLocationsSupport.java:143)
          at com.redhat.rcm.maven.plugin.buildmetadata.BuildMetaDataMojo.writeBuildMetaData (BuildMetaDataMojo.java:605)
          at com.redhat.rcm.maven.plugin.buildmetadata.BuildMetaDataMojo.createBuildProperties (BuildMetaDataMojo.java:590)
          at com.redhat.rcm.maven.plugin.buildmetadata.BuildMetaDataMojo.execute (BuildMetaDataMojo.java:553)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
          at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:190)
          at org.apache.maven.lifecycle.internal.builder.multithreaded.MultiThreadedBuilder$1.call (MultiThreadedBuilder.java:186)
          at java.util.concurrent.FutureTask.run (FutureTask.java:264)
          at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:515)
          at java.util.concurrent.FutureTask.run (FutureTask.java:264)
          at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
          at java.lang.Thread.run (Thread.java:834)
      

      Note: jamesnetherton found workaround by adding -DbuildMetaData.skip.

          1.
          Documentation Sub-task Closed Undefined Unassigned
          2.
          Productization Sub-task Closed Undefined Unassigned
          3.
          Review Test Sub-task Closed Undefined Unassigned
          4.
          Development Sub-task Closed Undefined Unassigned

              Unassigned Unassigned
              llowinge@redhat.com Lukas Lowinger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: