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

lock down plugin versions to shut up m3

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      [INFO] Maven Version: 3.0-beta-2
      [INFO] JDK Version: 1.6.0_21 normalized as: 1.6.0-21
      [INFO] OS Info: Arch: amd64 Family: unix Name: linux Version: 2.6.32.19
    • Similar Issues:

      Description

      [INFO] Scanning for projects...
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for org.jvnet.hudson.plugins:greenballs:hpi:1.7-SNAPSHOT
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-resources-plugin is missing. @ line 90, column 15
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 84, column 15
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.jvnet.hudson.plugins:plugin:1.343, line 179, column 15
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-enforcer-plugin is missing. @ org.jvnet.hudson:hudson:1.7, line 69, column 15
      [WARNING] 'distributionManagement.snapshotRepository.id' must not be 'local', this identifier is reserved for the local repository, using it for other repositories will corrupt your repository metadata. @ org.jvnet.hudson:hudson:1.7, line 52, column 11
      [WARNING]
      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [WARNING]
      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
      [WARNING]

        Attachments

          Issue Links

            Activity

            Hide
            jieryn jieryn added a comment -

            A quick patch which externalizes all plugin versions to use a property value and then places these versions into build.pluginManangement.plugins without any configuration. The benefits of using a property are manifold, but basically it

            • plays very nicely with versions-m-p[1]
            • lets sub-projects quickly and easily override the version but not the configuration
            • can be easily overriden on the command line with -D for test purposes

            [1] http://mojo.codehaus.org/versions-maven-plugin/

            Show
            jieryn jieryn added a comment - A quick patch which externalizes all plugin versions to use a property value and then places these versions into build.pluginManangement.plugins without any configuration. The benefits of using a property are manifold, but basically it plays very nicely with versions-m-p [1] lets sub-projects quickly and easily override the version but not the configuration can be easily overriden on the command line with -D for test purposes [1] http://mojo.codehaus.org/versions-maven-plugin/
            Hide
            jieryn jieryn added a comment -

            I have fixed this in https://github.com/jenkinsci/pom/commit/633790a13fdc3d1c6c23b5890288ee1ef188ed27 but am letting more eyes peek at it before doing a release of the project (and will still need a corresponding update to jenkins/pom.xml and plugins/pom.xml to pick up the release).

            Show
            jieryn jieryn added a comment - I have fixed this in https://github.com/jenkinsci/pom/commit/633790a13fdc3d1c6c23b5890288ee1ef188ed27 but am letting more eyes peek at it before doing a release of the project (and will still need a corresponding update to jenkins/pom.xml and plugins/pom.xml to pick up the release).
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Farinacci
            Path:
            changelog.html
            plugins/pom.xml
            pom.xml
            http://jenkins-ci.org/commit/core/c30773518ce6c6b30516ece80af3934a814fe0e3
            Log:
            [FIXED JENKINS-7275] lock down maven plugin versions to shut up m3

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Farinacci Path: changelog.html plugins/pom.xml pom.xml http://jenkins-ci.org/commit/core/c30773518ce6c6b30516ece80af3934a814fe0e3 Log: [FIXED JENKINS-7275] lock down maven plugin versions to shut up m3

              People

              Assignee:
              jieryn jieryn
              Reporter:
              jieryn jieryn
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: