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

Jenkins Maven support doesn't handle version ranges in parent definitions

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • maven-plugin
    • None

      Apache Maven 3.2.2 has been updated to support version ranges in the <parent/> element of a POM, but Jenkins does not yet support that, and blows up failing parse the POMs:

      Resetting working tree
      > git reset --hard
      > git clean -fdx
      Parsing POMs
      Failed to transfer Could not transfer artifact com.smxemail:com.smxemail.parent:pom:[2.1.0,3.0.0) from/to Nexus (http://build.smx.co.nz:8081/nexus/content/groups/public-and-snapshots): Illegal character in path at index 103: http://build.smx.co.nz:8081/nexus/content/groups/public-and-snapshots/com/smxemail/com.smxemail.parent/[2.1.0,3.0.0)/com.smxemail.parent-[2.1.0,3.0.0).pom
      ERROR: Failed to parse POMs
      org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
      [FATAL] Non-resolvable parent POM: Could not transfer artifact com.smxemail:com.smxemail.parent:pom:[2.1.0,3.0.0) from/to Nexus (http://build.smx.co.nz:8081/nexus/content/groups/public-and-snapshots): Illegal character in path at index 103: http://build.smx.co.nz:8081/nexus/content/groups/public-and-snapshots/com/smxemail/com.smxemail.parent/[2.1.0,3.0.0)/com.smxemail.parent-[2.1.0,3.0.0).pom and 'parent.relativePath' points at wrong local POM @ line 4, column 13

      at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:364)
      at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:361)
      at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:331)
      at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1294)

          [JENKINS-23846] Jenkins Maven support doesn't handle version ranges in parent definitions

          talios created issue -
          Justin Wesley made changes -
          Priority Original: Minor [ 4 ] New: Critical [ 2 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 156710 ] New: JNJira + In-Review [ 179361 ]
          Mark Lehky made changes -
          Link New: This issue is duplicated by JENKINS-38808 [ JENKINS-38808 ]
          Sven Ackermann made changes -
          Link New: This issue is related to JENKINS-45563 [ JENKINS-45563 ]
          CloudBees Inc. made changes -
          Remote Link New: This issue links to "CloudBees Internal OSS-415 (Web Link)" [ 18897 ]

            Unassigned Unassigned
            talios talios
            Votes:
            15 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated: