[L2SWITCH-12] Hardcoded URLs / Missing Parent clauses prevent mvn deploy from working Created: 15/Sep/14  Updated: 16/Sep/14  Resolved: 16/Sep/14

Status: Resolved
Project: l2switch
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: Devin Avery Assignee: Devin Avery
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Mac OS
Platform: PC


External issue ID: 1873

 Description   

There are few problems in the l2switch project which are preventing the deployment of bundles (via the mvn deploy command) from working correctly. These problems arise in a non-ODL environment that does not use jenkins to deploy their artifacts.

Problems:

1) In the distribution management section, we are hardcoding the URLs to the repositories where we should be uploading the artifacts. However this prevents users from building and uploading their artifacts to their own repositories. Thus using a variable in the distributionManagement section only will allow this to work for everyone.

2) The "aggregator" pom.xml pattern that has emerged does not derive from a common parent and thus does not inherit a distributionManagement section. Without a distributionManagement section we can not upload the artifacts to a repository (unless you use a third-party tool such as jenkins or something). To fix this we should have all pom's inherit from a common parent which defines a single distributionManagement section.

To validate that these fixes do not break anything, do a 'rm -rf ~/.m2/repository/org/opendaylight' and then rebuild the project. Make sure everything compiles.



 Comments   
Comment by Devin Avery [ 15/Sep/14 ]

https://git.opendaylight.org/gerrit/#/c/10945/

Generated at Wed Feb 07 20:05:41 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.