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

Repository Connector Plugin failed to resolve dependency after upgrade (0.8.2 -> 1.0.1)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Labels:
      None
    • Environment:
      * Jenkins LTS 1.565.2 (deployed as war inside of Tomcat)
      * Sonatype Nexus OSS 2.8.1
    • Similar Issues:

      Description

      Dominik Bartholdi

      Job fails after Repository Connector Plugin upgrade (0.8.2 -> 1.0.1); please note that same artifact (with same artifact version) is resolved as expected with 0.8.2.

      Stack trace:

      2014-09-19 12:25:54 INFO  [bio-8080-exec-7] - org.sonatype.security.model.source.FileModelConfigurationSource - Loading security configuration from: /home/TECH/tomcat/sonatype-work/nexus/conf/security.xml
      2014-09-19 12:25:55 INFO  [bio-8080-exec-7] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage - Initializing remote transport for proxy repository "oss-snapshots" [id=oss-snapshots]...
      2014-09-19 12:25:55 INFO  [bio-8080-exec-7] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage - Initializing remote transport for proxy repository "Apache Snapshots" [id=apache-snapshots]...
      2014-09-19 12:25:55 INFO  [bio-8080-exec-7] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage - Initializing remote transport for proxy repository "Codehaus Snapshots" [id=codehaus-snapshots]...
      2014-09-19 12:25:55 INFO  [bio-8080-exec-7] - org.sonatype.nexus.proxy.storage.remote.httpclient.HttpClientRemoteStorage - Initializing remote transport for proxy repository "scct" [id=scct]...
      2014-09-19 12:25:56 INFO  [bio-8080-exec-7] - org.sonatype.nexus.velocity.VelocityEngineProvider - Creating Nexus VelocityEngine
      Sep 19, 2014 12:25:56 PM org.jvnet.hudson.plugins.repositoryconnector.ArtifactResolver logError
      SEVERE: failed to resolve dependency for [Artifact ************}]
      org.sonatype.aether.resolution.DependencyResolutionException: Could not find ************ in nexus (/************nexus/content/groups/public)
              at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
              at org.jvnet.hudson.plugins.repositoryconnector.aether.Aether.resolve(Aether.java:157)
              at org.jvnet.hudson.plugins.repositoryconnector.ArtifactResolver.download(ArtifactResolver.java:129)
              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:756)
              at hudson.model.Build$BuildExecution.build(Build.java:198)
              at hudson.model.Build$BuildExecution.doRun(Build.java:159)
              at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:529)
              at hudson.model.Run.execute(Run.java:1706)
              at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
              at hudson.model.ResourceController.execute(ResourceController.java:88)
              at hudson.model.Executor.run(Executor.java:232)
      Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: Could not find artifact ***************** in nexus (************/nexus/content/groups/public)
              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.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
              ... 12 more
      Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Could not find artifact ***************** in nexus (************/nexus/content/groups/public)
              at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:971)
              at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$4.wrap(WagonRepositoryConnector.java:966)
              at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:707)
              at org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.flush(WagonRepositoryConnector.java:701)
              at org.sonatype.aether.connector.wagon.WagonRepositoryConnector.get(WagonRepositoryConnector.java:452)
              at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:456)
              ... 14 more
      

        Attachments

          Issue Links

            Activity

            Hide
            dejan2609 Dejan Stojadinović added a comment -

            Actually, version 1.0.1 works as expected for known dependencies fetched from Maven central (tested with junit:junit:4.11).
            Somehow 1.0.1 can't fetch in-house built dependencies from in-house Nexus repository (version 2.8.1) created with Maven 3.1.1 (while version 0.8.2 works flawlessly).

            All-in-all root cause is obviously on my side; solving as not a defect.

            Show
            dejan2609 Dejan Stojadinović added a comment - Actually, version 1.0.1 works as expected for known dependencies fetched from Maven central (tested with junit:junit:4.11 ). Somehow 1.0.1 can't fetch in-house built dependencies from in-house Nexus repository (version 2.8.1) created with Maven 3.1.1 (while version 0.8.2 works flawlessly). All-in-all root cause is obviously on my side; solving as not a defect .
            Hide
            poussma Mathieu POUSSE added a comment -

            Fixed in https://github.com/jenkinsci/repository-connector-plugin/pull/4 waiting for approval

            Workaround is to unmark your repository as "repo manager" in the admin

            Show
            poussma Mathieu POUSSE added a comment - Fixed in https://github.com/jenkinsci/repository-connector-plugin/pull/4 waiting for approval Workaround is to unmark your repository as "repo manager" in the admin
            Hide
            dejan2609 Dejan Stojadinović added a comment -

            Thanx Mathieu POUSSE!
            I'll change resolution to duplicate for this one.

            Show
            dejan2609 Dejan Stojadinović added a comment - Thanx Mathieu POUSSE ! I'll change resolution to duplicate for this one.
            Hide
            dejan2609 Dejan Stojadinović added a comment -

            Duplicate (see JENKINS-25620).

            Show
            dejan2609 Dejan Stojadinović added a comment - Duplicate (see JENKINS-25620 ).
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Olivier Lamy
            Path:
            src/main/java/org/jvnet/hudson/plugins/repositoryconnector/aether/Aether.java
            http://jenkins-ci.org/commit/repository-connector-plugin/bad40031ed9eb0a181cdc13b13036a60a1ff268d
            Log:
            Merge pull request #4 from mathieu-pousse/master

            [FIXED JENKINS-25620] [FIXED JENKINS-24781]

            Compare: https://github.com/jenkinsci/repository-connector-plugin/compare/d5b21411acc2...bad40031ed9e

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: src/main/java/org/jvnet/hudson/plugins/repositoryconnector/aether/Aether.java http://jenkins-ci.org/commit/repository-connector-plugin/bad40031ed9eb0a181cdc13b13036a60a1ff268d Log: Merge pull request #4 from mathieu-pousse/master [FIXED JENKINS-25620] [FIXED JENKINS-24781] Compare: https://github.com/jenkinsci/repository-connector-plugin/compare/d5b21411acc2...bad40031ed9e

              People

              • Assignee:
                imod Dominik Bartholdi
                Reporter:
                dejan2609 Dejan Stojadinović
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: