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

Generated POM refers non-existing parent POM

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • gradle-jpi-plugin
    • None
    • Windows 10 x64, Oracle JDK 8u92, Gradle 2.13, Jenkins Core 1.651.2

      The POM that is generated during Maven deployment refers to the org.jenkins-ci.plugins:plugin parent POM using the coreVersion from the jenkinsPlugin configuration.

      However, from Jenkins 1.646 onwards, the plugin parent POM is no longer a part of the Jenkins Core, so the generated POM will refer a non-existing version.

      This inconsistency makes it difficult to consume the API of the built plugin from another plugin, since the artifact will not resolve properly.

      See the Plugin tutorial for advice on how to specify the core version when using a more recent parent POM.

      I don't know how to sensibly select the parent POM automatically. Perhaps the latest available version should be the default, with optional configuration to specify it explicitly?

            daspilker Daniel Spilker
            fbruzelius Fredrik Bruzelius
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: