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

Jenkins fails to resolve properties in repository urls

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None
    • Jenkins 1.625.1
      maven 3.3.3
      maven-plugin 2.12.1
      java 8
      Ubuntu 14.04

      Using a property in the repository or pluginRepository, causes an error parsing pom.

      ERROR: Failed to parse POMs
      java.io.IOException: remote file operation failed: /home/jenkins/workspace/Feature-diff-repo-Distribution at hudson.remoting.Channel@2bc7e227:build-node-03: hudson.remoting.ProxyException: hudson.maven.MavenModuleSetBuild$MavenExecutionException: org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
      [ERROR] Non-resolvable import POM: Could not transfer artifact com.example:com.example.server.parent:pom:5463.5463.5463-SNAPSHOT from/to snapshots (${nexus.url}/content/repositories/snapshots): Cannot access ${nexus.url}/content/repositories/snapshots with type default using the available connector factories: WagonRepositoryConnectorFactory @ line 31, column 16

      Extract from pom:
      <properties>
      	<nexus.url>http://192.168.44.10:8082/nexus</nexus.url>
      </properties>
      
      <repositories>
      	<repository>
      		<id>nexus</id>
      		<layout>default</layout>
      		<url>${nexus.url}/content/repositories/public</url>
      	</repository>
      </repositories>
      

      If this is run as a FreeStyle build or run locally it completes correctly using maven 3.3.3
      With maven 3.2.5 this fails in a similar way:

      [ERROR] Non-resolvable import POM: Could not transfer artifact org.springframework:spring-framework-bom:pom:4.1.6.RELEASE from/to snapshots (${nexus.url}/content/repositories/snapshots): No connector available to access repository snapshots (${nexus.url}/content/repositories/snapshots) of type default using the available factories WagonRepositoryConnectorFactory @ line 234, column 16 -> [Help 2]

          [JENKINS-31623] Jenkins fails to resolve properties in repository urls

          There are no comments yet on this issue.

            Unassigned Unassigned
            wbuss William Buss
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: