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

In Maven2 jobs, parsing POM is done *after* calling pre-build steps (using M2-extra-steps-plugin)

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

      Hello,

      I wonder what were the reasons for moving the parsing of the poms after the pre-build phase. Our plug-in uses the result of the pom parsing( and hence the information on modules) in the pre-build phase, so this modification breaks everything. As the official Hudson version inside the company was 1.352, the modification went unnoticed, and the plugin worked smoothly. As we would like to upgrade the Hudson version, this modification became an issue.

      I know that there were demands to change it this way so I'm not going to ask you to change it back the way it was in 1.352. But you could take in consideration to accommodate both ways, using maybe some job's configuration option. As you said, it is a design option, but having to heavily modify a plug-in that is in production / using some customized maven-plugin / having to stay on an old Hudson version because
      of a design change, are some unfair options for me.

      Thank you

          [JENKINS-7985] In Maven2 jobs, parsing POM is done *after* calling pre-build steps (using M2-extra-steps-plugin)

          kutzi added a comment -

          Maybe we could enhance the BuildStep interface for maven builds to have prePomParsing() and postPomParsing() methods. Just an idea.

          kutzi added a comment - Maybe we could enhance the BuildStep interface for maven builds to have prePomParsing() and postPomParsing() methods. Just an idea.

          Is it still actual? Is it related to "maven-plugin" or to some other?

          Kanstantsin Shautsou added a comment - Is it still actual? Is it related to "maven-plugin" or to some other?

            Unassigned Unassigned
            pgrama pgrama
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: