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 -

          Current maven-plugin based on <mavenVersion>3.1.0</mavenVersion> ...

          Kanstantsin Shautsou added a comment - Current maven-plugin based on <mavenVersion>3.1.0</mavenVersion> ...

          Christophe Lallement added a comment - - edited

          Can you upgrade to 3.2.5 ?
          Or add an option to fully skip pom validation

          Thx Christophe

          Christophe Lallement added a comment - - edited Can you upgrade to 3.2.5 ? Or add an option to fully skip pom validation Thx Christophe
          Justin Wesley made changes -
          Priority Original: Minor [ 4 ] New: Critical [ 2 ]

          Hi

          I try to fork this plugins and update mvn dependencies but unfortunately it' s not a trivial task
          There is is lot of dependencies on "legacy" jenkins maven libs that are almost deprecated.

          C.

          Christophe Lallement added a comment - Hi I try to fork this plugins and update mvn dependencies but unfortunately it' s not a trivial task There is is lot of dependencies on "legacy" jenkins maven libs that are almost deprecated. C.

          Justin Wesley added a comment -

          I am trying to build and I get

          maven-plugin\target\generated-sources\localizer\hudson\maven\Messages.java:[17,27] error: unmappable character for encoding UTF-8

          from the generated classes.

          Justin Wesley added a comment - I am trying to build and I get maven-plugin\target\generated-sources\localizer\hudson\maven\Messages.java: [17,27] error: unmappable character for encoding UTF-8 from the generated classes.

          Alex Ng added a comment -

          When will this problem being fixed?
          And any workaround?

          Alex Ng added a comment - When will this problem being fixed? And any workaround?
          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 ]

          Mark Lehky added a comment -

          I can replicate this using latest Jenkins. See JENKINS-38808 for additional info.

          Mark Lehky added a comment - I can replicate this using latest Jenkins. See JENKINS-38808 for additional info.

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

              Created:
              Updated: