Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-12960

The build of the integration with MongoDB fails

XMLWordPrintable

      When the integration contains MongoDB connector, the build fails on:

      Starting S2I Java Build .....
      S2I source build for Maven detected
      Using custom maven settings from /tmp/src/configuration/settings.xml
      Using MAVEN_OPTS '-XX:+UseG1GC -XX:+UseStringDeduplication -Xmx310m'
      Found pom.xml ... 
      Running 'mvn -Dmaven.repo.local=/tmp/artifacts/m2 -s /tmp/src/configuration/settings.xml package -DskipTests -Dmaven.javadoc.skip=true -Dmaven.site.skip=true -Dmaven.source.skip=true -Djacoco.skip=true -Dcheckstyle.skip=true -Dfindbugs.skip=true -Dpmd.skip=true -Dfabric8.skip=true -e -B --strict-checksums'
      OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
      [1mApache Maven 3.5.0 (Red Hat 3.5.0-4.3)[m
      Maven home: /opt/rh/rh-maven35/root/usr/share/maven
      Java version: 1.8.0_242, vendor: Oracle Corporation
      Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.242.b08-0.el7_7.x86_64/jre
      Default locale: en_US, platform encoding: ANSI_X3.4-1968
      OS name: "linux", version: "4.18.0-147.3.1.el8_1.x86_64", arch: "amd64", family: "unix"
      OpenJDK 64-Bit Server VM warning: If the number of processors is expected to increase from one, then you should configure the number of parallel GC threads appropriately using -XX:ParallelGCThreads=N
      [INFO] Error stacktraces are turned on.
      [INFO] Scanning for projects...
      [INFO] 
      [INFO] ------------------------------------------------------------------------
      [INFO] Building Syndesis Integrations :: mongo-to-db-consume-stream 0.1-SNAPSHOT
      [INFO] ------------------------------------------------------------------------
      [INFO] Downloading: https://repo.maven.apache.org/maven2/org/mongodb/mongo-java-driver/$%7Bmongodb.version%7D/mongo-java-driver-$%7Bmongodb.version%7D.pom
      [INFO] Downloading: https://maven.repository.redhat.com/ga/org/mongodb/mongo-java-driver/$%7Bmongodb.version%7D/mongo-java-driver-$%7Bmongodb.version%7D.pom
      [INFO] Downloading: https://repository.jboss.org/nexus/content/groups/ea/org/mongodb/mongo-java-driver/$%7Bmongodb.version%7D/mongo-java-driver-$%7Bmongodb.version%7D.pom
      [INFO] Downloading: https://repo1.maven.org/maven2/org/mongodb/mongo-java-driver/$%7Bmongodb.version%7D/mongo-java-driver-$%7Bmongodb.version%7D.pom
      [INFO] Downloading: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/org/mongodb/mongo-java-driver/$%7Bmongodb.version%7D/mongo-java-driver-$%7Bmongodb.version%7D.pom
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 3.404 s
      [INFO] Finished at: 2020-02-11T13:14:42Z
      [INFO] Final Memory: 33M/110M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal on project project: Could not resolve dependencies for project io.syndesis.integrations:project:jar:0.1-SNAPSHOT: Failed to collect dependencies at io.syndesis.connector:connector-mongodb:jar:1.9.0.fuse-760015-redhat-00001 -> org.apache.camel:camel-mongodb3:jar:2.23.2.fuse-760027-redhat-00001 -> org.mongodb:mongo-java-driver:jar:${mongodb.version}: Failed to read artifact descriptor for org.mongodb:mongo-java-driver:jar:${mongodb.version}: Could not transfer artifact org.mongodb:mongo-java-driver:pom:${mongodb.version} from/to fuseqe_nexus (http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all): Failed to transfer file: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/org/mongodb/mongo-java-driver/$%7Bmongodb.version%7D/mongo-java-driver-$%7Bmongodb.version%7D.pom. Return code is: 400 , ReasonPhrase:Invalid repository path. -> [Help 1]
      org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project project: Could not resolve dependencies for project io.syndesis.integrations:project:jar:0.1-SNAPSHOT: Failed to collect dependencies at io.syndesis.connector:connector-mongodb:jar:1.9.0.fuse-760015-redhat-00001 -> org.apache.camel:camel-mongodb3:jar:2.23.2.fuse-760027-redhat-00001 -> org.mongodb:mongo-java-driver:jar:${mongodb.version}
      	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
      	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:128)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:246)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:200)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
      	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
      	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
      	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:309)
      	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
      	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
      	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
      	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
      	at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
      	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.project.DependencyResolutionException: Could not resolve dependencies for project io.syndesis.integrations:project:jar:0.1-SNAPSHOT: Failed to collect dependencies at io.syndesis.connector:connector-mongodb:jar:1.9.0.fuse-760015-redhat-00001 -> org.apache.camel:camel-mongodb3:jar:2.23.2.fuse-760027-redhat-00001 -> org.mongodb:mongo-java-driver:jar:${mongodb.version}
      	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:178)
      	at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:195)
      	... 23 more
      Caused by: org.eclipse.aether.collection.DependencyCollectionException: Failed to collect dependencies at io.syndesis.connector:connector-mongodb:jar:1.9.0.fuse-760015-redhat-00001 -> org.apache.camel:camel-mongodb3:jar:2.23.2.fuse-760027-redhat-00001 -> org.mongodb:mongo-java-driver:jar:${mongodb.version}
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:300)
      	at org.eclipse.aether.internal.impl.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:325)
      	at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:169)
      	... 24 more
      Caused by: org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.mongodb:mongo-java-driver:jar:${mongodb.version}
      	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:283)
      	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:199)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.resolveCachedArtifactDescriptor(DefaultDependencyCollector.java:544)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.getArtifactDescriptorResult(DefaultDependencyCollector.java:530)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:419)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:372)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:360)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.doRecurse(DefaultDependencyCollector.java:513)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:467)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:372)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:360)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.doRecurse(DefaultDependencyCollector.java:513)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:467)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.processDependency(DefaultDependencyCollector.java:372)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.process(DefaultDependencyCollector.java:360)
      	at org.eclipse.aether.internal.impl.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:263)
      	... 26 more
      Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.mongodb:mongo-java-driver:pom:${mongodb.version} from/to fuseqe_nexus (http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all): Failed to transfer file: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/org/mongodb/mongo-java-driver/$%7Bmongodb.version%7D/mongo-java-driver-$%7Bmongodb.version%7D.pom. Return code is: 400 , ReasonPhrase:Invalid repository path.
      	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453)
      	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:255)
      	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:232)
      	at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:268)
      	... 41 more
      Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.mongodb:mongo-java-driver:pom:${mongodb.version} from/to fuseqe_nexus (http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all): Failed to transfer file: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/org/mongodb/mongo-java-driver/$%7Bmongodb.version%7D/mongo-java-driver-$%7Bmongodb.version%7D.pom. Return code is: 400 , ReasonPhrase:Invalid repository path.
      	at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed(ArtifactTransportListener.java:52)
      	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:364)
      	at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:76)
      	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$DirectExecutor.execute(BasicRepositoryConnector.java:590)
      	at org.eclipse.aether.connector.basic.BasicRepositoryConnector.get(BasicRepositoryConnector.java:258)
      	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:529)
      	at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:430)
      	... 44 more
      Caused by: org.apache.maven.wagon.TransferFailedException: Failed to transfer file: http://nexus.fuse-qe.eng.rdu2.redhat.com/repository/fuse-all/org/mongodb/mongo-java-driver/$%7Bmongodb.version%7D/mongo-java-driver-$%7Bmongodb.version%7D.pom. Return code is: 400 , ReasonPhrase:Invalid repository path.
      	at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:1021)
      	at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.fillInputData(AbstractHttpClientWagon.java:960)
      	at org.apache.maven.wagon.StreamWagon.getInputStream(StreamWagon.java:116)
      	at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:88)
      	at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
      	at org.eclipse.aether.transport.wagon.WagonTransporter$GetTaskRunner.run(WagonTransporter.java:569)
      	at org.eclipse.aether.transport.wagon.WagonTransporter.execute(WagonTransporter.java:436)
      	at org.eclipse.aether.transport.wagon.WagonTransporter.get(WagonTransporter.java:413)
      	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask(BasicRepositoryConnector.java:456)
      	at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run(BasicRepositoryConnector.java:359)
      	... 49 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/DependencyResolutionException
      Aborting due to error code 1 for Maven build
      assemble failed with rc=1
      subprocess exited with status 1
      subprocess exited with status 1
      error: build error: error building at STEP "RUN /tmp/scripts/assemble": exit status 1
      

      Looks that the version of the Mongo is not set correctly. ($%7Bmongodb.version%7D)

              mariasde Maria Arias de Reyna Dominguez (Inactive)
              mkralik@redhat.com Matej Kralik
              Matej Kralik Matej Kralik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: