[CONTROLLER-1087] Refactor pom.xml files in controller repo Created: 08/Jan/15  Updated: 25/Jul/23  Resolved: 05/May/15

Status: Resolved
Project: controller
Component/s: adsal
Affects Version/s: None
Fix Version/s: None

Type: Improvement
Reporter: Thanh Ha (zxiiro) Assignee: Thanh Ha (zxiiro)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


Issue Links:
Blocks
is blocked by CONTROLLER-1114 Remove unnecessary <scm> section from... Resolved
is blocked by CONTROLLER-1115 Remove unnecessary <prerequisites><ma... Resolved

 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.



 Comments   
Comment by Thanh Ha (zxiiro) [ 19/Mar/15 ]

Resolving since the 2 dependent bugs have been closed and we have been making progress in other fronts to reduce duplicate pom.xml configurations in projects.

Comment by Carol Sanders [ 05/May/15 ]

This bug is part of the project to Move all ADSAL associated component bugs to ADSAL.

Generated at Wed Feb 07 19:54:39 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.