Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-7552 Fix Fuse 7.0 release pipeline
  3. ENTESB-7558

Fix fuse-quickstart release pipeline step "unable to build assembly on karaf-camel-rest-sql"

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Done
    • Icon: Blocker Blocker
    • fuse-7.0
    • fuse-7.0
    • None
    • % %
    • Fuse 7.0 Sprint 22

      [INFO] --- karaf-maven-plugin:4.2.0-700.fuse-000002:assembly (karaf-assembly) @ karaf-camel-rest-sql ---
      [INFO] Using repositories:
      [INFO]    http://repository.apache.org/snapshots/@id=apache-snapshot@snapshots
      [INFO]    http://origin-repository.jboss.org/nexus/content/groups/ea@id=ea-repo@snapshots
      [INFO]    http://download-node-02.eng.bos.redhat.com/brewroot/packages/org.jboss.ironjacamar-ironjacamar-project/1.4.4.Final_redhat_1/1/maven/@id=missingironjacamar@snapshots
      [INFO]    http://repo1.maven.org/maven2/@id=central@snapshots
      [INFO]    https://repository.jboss.org/nexus/content/groups/fs-public/@id=fs-jboss-public@snapshots
      [INFO]    http://repository.jboss.org/nexus/content/repositories/fs-snapshots@id=fs-snapshots@snapshots
      [INFO]    https://repository.jboss.org/nexus/content/groups/public/@id=jboss-public@snapshots
      [INFO]    http://maven.repository.redhat.com/ga@id=redhat-ga-repository@snapshots
      [INFO]    http://maven.repository.redhat.com/earlyaccess/all/@id=redhat-ea-repository@snapshots
      [INFO]    https://origin-repository.jboss.org/nexus/content/groups/ea@id=fuse-ea@snapshots
      [INFO]    https://origin-repository.jboss.org/nexus/content/groups/staging@id=jboss-staging@snapshots
      [INFO]    https://origin-repository.jboss.org/nexus/content/repositories/fs-maven2-all@id=fuse-all-legacy@snapshots
      [INFO]    http://repo.c24io.net/nexus/content/groups/public/@id=c24-public@snapshots
      [INFO]    http://maven.repository.redhat.com/techpreview/all/@id=enterprise@snapshots
      [INFO]    http://download.eng.bos.redhat.com/brewroot/repos/jb-eap-7.1-rhel-7-maven-build/latest/maven@id=jb-eap-7.0-rhel-7-build@snapshots
      [INFO]    https://repository.jboss.org/nexus/content/groups/kie-internal-group@id=kie-internal-staging-repository-group@snapshots
      [INFO]    https://repository.jboss.org/nexus/content/repositories/kie@id=kie-repository-group@snapshots
      [INFO]    http://download-node-02.eng.bos.redhat.com/brewroot/repos/jb-common-build/latest/maven@id=jboss-common-repository-group@snapshots
      [INFO]    http://download-node-02.eng.bos.redhat.com/brewroot/repos/jb-fis-2.0-maven-build/latest/maven@id=fis-brew-repository-group@snapshots
      [INFO]    http://download-node-02.eng.bos.redhat.com/brewroot/repos/jb-amq-7-build/latest/maven@id=jb-amq7@snapshots
      [INFO] Creating work directory: /home/jenkins/karaf-camel-rest-sql/target/assembly
      [INFO] Loading direct KAR and features XML dependencies
      [INFO]    Standard startup Karaf KAR found: mvn:org.apache.karaf.features/framework/4.2.0-700.fuse-000002/kar
      [INFO] Generating Karaf assembly: /home/jenkins/karaf-camel-rest-sql/target/assembly
      [INFO] Unzipping kars
      [INFO]    processing KAR: mvn:org.apache.karaf.features/framework/4.2.0-700.fuse-000002/kar
      [INFO]       found repository: mvn:org.apache.karaf.features/framework/4.2.0-700.fuse-000002/xml/features
      [INFO] Loading profiles from:
      [INFO] Loading repositories
      [INFO] Generating generated-startup profile
      [INFO] Generating generated-boot profile with parents: generated-startup
      [INFO] Generating generated-installed profile
      [INFO] Configuring etc/config.properties and etc/system.properties
      [INFO] Downloading libraries for generated profiles
      [INFO] Downloading additional libraries
      [INFO]    adding library: lib/boot/org.apache.karaf.jaas.boot-4.2.0-700.fuse-000002.jar
      [INFO]    adding maven library: mvn:org.apache.karaf.jaas/org.apache.karaf.jaas.boot/4.2.0-700.fuse-000002
      [INFO] Writing configurations
      [INFO]    adding config file: etc/profile.cfg
      [INFO] Generating features processor configuration: etc/org.apache.karaf.features.xml
      [INFO] Startup stage
      [INFO]    Loading startup repositories
      [INFO]    Resolving startup features and bundles
      [INFO]       Features: framework, scr, jaas, aries-blueprint, camel-blueprint, camel-servlet, camel-sql, camel-jackson, camel-swagger-java, fabric8-karaf-blueprint, fabric8-karaf-checks
      [INFO]       Bundles: mvn:io.fabric8.quickstarts/karaf-camel-rest-sql/1.0.0.fuse-000002, mvn:org.apache.camel/camel-sql/2.21.0.fuse-000030, mvn:mysql/mysql-connector-java/5.1.26, mvn:commons-pool/commons-pool/1.6, mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.4_3
      [INFO]       skipping blacklisted bundle: mvn:org.apache.camel.karaf/camel-karaf-commands/2.21.0.fuse-000030
      [INFO]       skipping blacklisted bundle: mvn:org.apache.camel.karaf/camel-karaf-commands/2.21.0.fuse-000030
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 12.950 s
      [INFO] Finished at: 2018-01-03T18:40:03+00:00
      [INFO] Final Memory: 60M/809M
      [INFO] ------------------------------------------------------------------------
      [WARNING] The requested profile "release" could not be activated because it does not exist.
      [ERROR] Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.2.0-700.fuse-000002:assembly (karaf-assembly) on project karaf-camel-rest-sql: Unable to build assembly: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=org.apache.camel.camel-sql; type=osgi.bundle; version="[2.21.0.fuse-000030,2.21.0.fuse-000030]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-sql/2.21.0.fuse-000030: missing requirement [org.apache.camel.camel-sql/2.21.0.fuse-000030] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.springframework.dao)(version>=4.1.0)(!(version>=5.0.0)))"] -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.karaf.tooling:karaf-maven-plugin:4.2.0-700.fuse-000002:assembly (karaf-assembly) on project karaf-camel-rest-sql: Unable to build assembly
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      Caused by: org.apache.maven.plugin.MojoExecutionException: Unable to build assembly
      	at org.apache.karaf.tooling.AssemblyMojo.execute(AssemblyMojo.java:448)
      	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
      	... 20 more
      Caused by: org.osgi.service.resolver.ResolutionException: Unable to resolve root: missing requirement [root] osgi.identity; osgi.identity=org.apache.camel.camel-sql; type=osgi.bundle; version="[2.21.0.fuse-000030,2.21.0.fuse-000030]"; resolution:=mandatory [caused by: Unable to resolve org.apache.camel.camel-sql/2.21.0.fuse-000030: missing requirement [org.apache.camel.camel-sql/2.21.0.fuse-000030] osgi.wiring.package; filter:="(&(osgi.wiring.package=org.springframework.dao)(version>=4.1.0)(!(version>=5.0.0)))"]
      	at org.apache.felix.resolver.ResolutionError.toException(ResolutionError.java:42)
      	at org.apache.felix.resolver.ResolverImpl.doResolve(ResolverImpl.java:391)
      	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:377)
      	at org.apache.felix.resolver.ResolverImpl.resolve(ResolverImpl.java:349)
      	at org.apache.karaf.features.internal.region.SubsystemResolver.resolve(SubsystemResolver.java:248)
      	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:385)
      	at org.apache.karaf.features.internal.service.Deployer.deployFully(Deployer.java:327)
      	at org.apache.karaf.profile.assembly.Builder.resolve(Builder.java:1977)
      	at org.apache.karaf.profile.assembly.Builder.startupStage(Builder.java:1788)
      	at org.apache.karaf.profile.assembly.Builder.doGenerateAssembly(Builder.java:1103)
      	at org.apache.karaf.profile.assembly.Builder.generateAssembly(Builder.java:848)
      	at org.apache.karaf.tooling.AssemblyMojo.doExecute(AssemblyMojo.java:543)
      	at org.apache.karaf.tooling.AssemblyMojo.execute(AssemblyMojo.java:444)
      	... 22 more
      [ERROR] 
      [ERROR] Re-run Maven using the -X switch to enable full debug logging.
      [ERROR] 
      [ERROR] For more information about the errors and possible solutions, please read the following articles:
      [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
      

              jnethert@redhat.com James Netherton
              apupier@redhat.com Aurélien Pupier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: