Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-47641

FAILURE during Repository Connector build step

    Details

    • Similar Issues:

      Description

      Trying to download some artifacts from our local nexus (2.14.5) using the Repository Connector 1.1.3 plugin Job will always fail with following stack trace.

      In attachment you can see the global Atifact Resolver configuration and the Job Build Step Artifact Resolver configuration. Maybe something is wrong but I cannot understand what.

      In the stack trace I see:

      Caused by: org.sonatype.aether.transfer.NoRepositoryConnectorException: No connector available to access repository snapshots (https://nexus.bcom.syncromed.it/nexus/content/repositories/snapshots) of type hosted using the available factories WagonRepositoryConnectorFactory
      

      is there some missing configuration ?

      Oct 25, 2017 5:38:47 PM org.jvnet.hudson.plugins.repositoryconnector.ArtifactResolver logError
      SEVERE: failed collecting dependency info for [Artifact com.syncromed:Theca-services:war::2.4.0-SNAPSHOT]
      org.sonatype.aether.collection.DependencyCollectionException: Failed to collect dependencies for com.syncromed:Theca-services:war:2.4.0-SNAPSHOT (provided)
      at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:197)
      at org.sonatype.aether.impl.internal.DefaultRepositorySystem.collectDependencies(DefaultRepositorySystem.java:308)
      at org.jvnet.hudson.plugins.repositoryconnector.aether.Aether.resolve(Aether.java:204)
      at org.jvnet.hudson.plugins.repositoryconnector.ArtifactResolver.download(ArtifactResolver.java:130)
      at org.jvnet.hudson.plugins.repositoryconnector.ArtifactResolver.perform(ArtifactResolver.java:101)
      at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:736)
      at hudson.model.Build$BuildExecution.build(Build.java:206)
      at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:496)
      at hudson.model.Run.execute(Run.java:1724)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:419)
      Caused by: org.sonatype.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for com.syncromed:Theca-services:war:2.4.0-SNAPSHOT
      at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:282)
      at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.readArtifactDescriptor(DefaultArtifactDescriptorReader.java:172)
      at org.sonatype.aether.impl.internal.DefaultDependencyCollector.collectDependencies(DefaultDependencyCollector.java:191)
      ... 13 more
      Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not transfer artifact com.syncromed:Theca-services:pom:2.4.0-SNAPSHOT from/to snapshots (https://nexus.bcom.syncromed.it/nexus/content/repositories/snapshots): No connector available to access repository snapshots (https://nexus.bcom.syncromed.it/nexus/content/repositories/snapshots) of type hosted using the available factories WagonRepositoryConnectorFactory
      at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:537)
      at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
      at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:193)
      at org.apache.maven.repository.internal.DefaultArtifactDescriptorReader.loadPom(DefaultArtifactDescriptorReader.java:267)
      ... 15 more
      Caused by: org.sonatype.aether.transfer.ArtifactTransferException: Could not transfer artifact com.syncromed:Theca-services:pom:2.4.0-SNAPSHOT from/to snapshots (https://nexus.bcom.syncromed.it/nexus/content/repositories/snapshots): No connector available to access repository snapshots (https://nexus.bcom.syncromed.it/nexus/content/repositories/snapshots) of type hosted using the available factories WagonRepositoryConnectorFactory
      at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:467)
      ... 18 more
      Caused by: org.sonatype.aether.transfer.NoRepositoryConnectorException: No connector available to access repository snapshots (https://nexus.bcom.syncromed.it/nexus/content/repositories/snapshots) of type hosted using the available factories WagonRepositoryConnectorFactory
      at org.sonatype.aether.impl.internal.DefaultRemoteRepositoryManager.getRepositoryConnector(DefaultRemoteRepositoryManager.java:383)
      at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:452)
      ... 18 more

      OS: Ubuntu 14.04.5 LTS

        Attachments

          Activity

          Hide
          jgangemi Jae Gangemi added a comment -

          hello - are you still experiencing this issue?

          Show
          jgangemi Jae Gangemi added a comment - hello - are you still experiencing this issue?
          Hide
          sivakumari86 sivakumari peddireddy added a comment -

          Hi Jae Gangemi,

          I am facing similar issue, can you please provide solution , what needs to be done to work

          Show
          sivakumari86 sivakumari peddireddy added a comment - Hi Jae Gangemi, I am facing similar issue, can you please provide solution , what needs to be done to work
          Hide
          jgangemi Jae Gangemi added a comment -

          are you able to reproduce this w/ a jar that is located on maven central? does this occur for only SNAPSHOT jars or also released jars?

          Show
          jgangemi Jae Gangemi added a comment - are you able to reproduce this w/ a jar that is located on maven central? does this occur for only SNAPSHOT jars or also released jars?
          Hide
          sivakumari86 sivakumari peddireddy added a comment -

          I tried for hosted repository in Nexus3, there is a tar file placed in the repository and was trying to pull the tar using Repository Connector plugin.
          steps to reproduce:
          create a repository in nexus and upload artifacts in the newly created repo
          create a jenkins job, configure the plug in and build step
          run the job

          Show
          sivakumari86 sivakumari peddireddy added a comment - I tried for hosted repository in Nexus3, there is a tar file placed in the repository and was trying to pull the tar using Repository Connector plugin. steps to reproduce: create a repository in nexus and upload artifacts in the newly created repo create a jenkins job, configure the plug in and build step run the job
          Hide
          amdokamal S. Panchenko added a comment -

          Similar issue on Jenkins 2.164.3, Repository Connector 1.2.5, Nexus OSS 3.6.0-02. First of all I couldn't configure "Nexus Repository Manager Servers" (com.sonatype.nexus.api.zz.ey: Not Found), and in via Artifact Resolver: Repositories configuration (URL: https://my-nexus.com/repository/MyProjectSnapshots/,  Repo type: hosted, Repo Id: MyProjectSnapshots) leads to:
          16:18:55 INFO: define repo: [Repository id=MyProjectSnapshots, type=hosted, url=my-nexus.com/repository/MyProjectSnapshots, isRepositoryManager=false]16:18:55 INFO: set authentication for jenkins.user*16:18:55* failed collecting dependency info for [Artifact com.foo.my:android-apps:::0.1-SNAPSHOT]
          ...
          Caused by: org.sonatype.aether.transfer.NoRepositoryConnectorException: No connector available to access repository MyProjectSnapshots (my-nexus.com/repository/MyProjectSnapshots) of type hosted using the available factories WagonRepositoryConnectorFactory

          Groovy code:

          artifactResolver artifacts: [artifact(artifactId: 'android-apps', classifier: '', extension: '', groupId: 'com.foo.my',
             targetFileName: '', version: '0.1-SNAPSHOT')], releaseChecksumPolicy: 'ignore', snapshotChecksumPolicy: 'ignore', targetDirectory: '.'

          In addition to I've tried different configurations: with\without extension, different URL format (with\without application port), with\without POM file, etc.

          For the record I've uploaded maven-artifacts by means of nexusArtifactUploader plugin, I could not find a way how to upload artifacts via Artifact Resolver but documentation says it has such feature.

          Show
          amdokamal S. Panchenko added a comment - Similar issue on Jenkins 2.164.3, Repository Connector 1.2.5, Nexus OSS 3.6.0-02. First of all I couldn't configure "Nexus Repository Manager Servers" (com.sonatype.nexus.api.zz.ey: Not Found), and in via Artifact Resolver: Repositories configuration ( URL : https://my-nexus.com/repository/MyProjectSnapshots/ ,   Repo type : hosted, Repo Id : MyProjectSnapshots) leads to: 16:18:55 INFO: define repo: [Repository id=MyProjectSnapshots, type=hosted, url=my-nexus.com/repository/MyProjectSnapshots, isRepositoryManager=false] 16:18:55 INFO: set authentication for jenkins.user*16:18:55* failed collecting dependency info for [Artifact com.foo.my:android-apps:::0.1-SNAPSHOT] ... Caused by: org.sonatype.aether.transfer.NoRepositoryConnectorException: No connector available to access repository MyProjectSnapshots (my-nexus.com/repository/MyProjectSnapshots) of type hosted using the available factories WagonRepositoryConnectorFactory Groovy code: artifactResolver artifacts: [artifact(artifactId: 'android-apps' , classifier: '', extension: ' ', groupId: ' com.foo.my', targetFileName: '', version: ' 0.1-SNAPSHOT ')], releaseChecksumPolicy: ' ignore ', snapshotChecksumPolicy: ' ignore ', targetDirectory: ' .' In addition to I've tried different configurations: with\without extension, different URL format (with\without application port), with\without POM file, etc. For the record I've uploaded maven-artifacts by means of nexusArtifactUploader plugin, I could not find a way how to upload artifacts via Artifact Resolver but documentation says it has such feature.

            People

            • Assignee:
              jgangemi Jae Gangemi
              Reporter:
              marcomontel Marco Montel
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated: