Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1087

Refactor pom.xml files in controller repo

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • adsal
    • None
    • Operating System: All
      Platform: All

    Description

      We should look into refactoring the pom.xml files in the controller repo to take advantage of Maven pom inheritance. For example the <scm> section is duplicated in multiple pom.xml files:

      <scm>
      <connection>scm:git:ssh://git.opendaylight.org:29418/controller.git</connection>
      <developerConnection>scm:git:ssh://git.opendaylight.org:29418/controller.git</developerConnection>
      <url>https://wiki.opendaylight.org/view/OpenDaylight_Controller:Main</url>
      <tag>HEAD</tag>
      </scm>

      A quick count shows that the <scm> section exists in 162 pom.xml files. If the scm URL ever changes this means we'd have to update that in 162 locations which isn't very clean and maintainable.

      % find . -name pom.xml | xargs grep '<scm>' | wc -l
      162

      I'd like to use this bug as a master bug and tackle this issue with many small and easy to review patches to simplify the pom.xml layout for the repo.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              zxiiro Thanh Ha (zxiiro)
              zxiiro Thanh Ha (zxiiro)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: