dfarrell07

dependencies.dependency.version DLUX build fail

Dec 20th, 2016
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.62 KB | None | 0 0
  1. Builds fail with something like
  2.  
  3. DEBUG util.py:257: [ERROR] [ERROR] Some problems were encountered while processing the POMs:
  4. DEBUG util.py:257: [ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.controller:mdsal-artifacts:pom:1.4.1-Boron-SR1 in koji-task-12259586-repo (http://download.eng.bos.redhat.com/brewroot/work/tasks/9586/12259586) @ line 348, column 25
  5. DEBUG util.py:257: [ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:features-mdsal:xml:features is missing. @ line 382, column 21
  6. DEBUG util.py:257: [ERROR] 'dependencies.dependency.version' for org.opendaylight.controller.model:model-inventory:jar is missing. @ line 420, column 21
  7. DEBUG util.py:257: [ERROR] 'dependencies.dependency.version' for org.opendaylight.controller.model:model-topology:jar is missing. @ line 424, column 21
  8. DEBUG util.py:257: @
  9. DEBUG util.py:257: [ERROR] The build could not read 1 project -> [Help 1]
  10. DEBUG util.py:257: [ERROR]
  11. DEBUG util.py:257: [ERROR] The project org.opendaylight.openflowplugin:features-openflowplugin-he:0.3.1.Boron-SR1-redhat-1 (/maven/build/odl-openflowplugin/features-he/pom.xml) has 4 errors
  12. DEBUG util.py:257: [ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.controller:mdsal-artifacts:pom:1.4.1-Boron-SR1 in koji-task-12259586-repo (http://download.eng.bos.redhat.com/brewroot/work/tasks/9586/12259586) @ line 348, column 25 -> [Help 2]
  13. DEBUG util.py:257: [ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:features-mdsal:xml:features is missing. @ line 382, column 21
  14. DEBUG util.py:257: [ERROR] 'dependencies.dependency.version' for org.opendaylight.controller.model:model-inventory:jar is missing. @ line 420, column 21
  15. DEBUG util.py:257: [ERROR] 'dependencies.dependency.version' for org.opendaylight.controller.model:model-topology:jar is missing. @ line 424, column 21
  16.  
  17. So openflowplugin/features-he/pom.xml is importing controller.mdsal-artifacts
  18.  
  19. <dependency>
  20. <groupId>org.opendaylight.controller</groupId>
  21. <artifactId>mdsal-artifacts</artifactId>
  22. <version>${mdsal.version}</version>
  23. <scope>import</scope>
  24. <type>pom</type>
  25. </dependency>
  26.  
  27. So looking at `controller/opendaylight/md-sal/mdsal-artifacts`, note the depdendencies on the three arifacts causing errors
  28.  
  29. <dependency>
  30. <groupId>${project.groupId}</groupId>
  31. <artifactId>features-mdsal</artifactId>
  32. <version>${project.version}</version>
  33. <classifier>features</classifier>
  34. <type>xml</type>
  35. <scope>runtime</scope>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.opendaylight.controller.model</groupId>
  39. <artifactId>model-inventory</artifactId>
  40. <version>${project.version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.opendaylight.controller.model</groupId>
  44. <artifactId>model-topology</artifactId>
  45. <version>${project.version}</version>
  46. </dependency>
  47.  
  48. The build log makes it seem like these are missing version fields, but they aren't.
  49.  
  50. Trying to replace generic property with more spicific one
  51.  
  52. <dependency>
  53. <groupId>${project.groupId}</groupId>
  54. <artifactId>features-mdsal</artifactId>
  55. - <version>${project.version}</version>
  56. + <version>${feature.mdsal.version}</version>
  57. <classifier>features</classifier>
  58. <type>xml</type>
  59. <scope>runtime</scope>
  60. @@ -142,12 +142,12 @@
  61. <dependency>
  62. <groupId>org.opendaylight.controller.model</groupId>
  63. <artifactId>model-inventory</artifactId>
  64. - <version>${project.version}</version>
  65. + <version>${controller.model.model-inventory.version}</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.opendaylight.controller.model</groupId>
  69. <artifactId>model-topology</artifactId>
  70. - <version>${project.version}</version>
  71. + <version>${controller.model.model-topology.version}</version>
  72. </dependency>
  73.  
  74.  
  75.  
  76. But it didn't change the build failure
  77.  
  78. https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=12262823
  79. https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=12262947
  80.  
  81. DEBUG util.py:257: [ERROR] Non-resolvable import POM: Could not find artifact org.opendaylight.controller:mdsal-artifacts:pom:1.4.1-Boron-SR1 in koji-task-12262817-repo (http://download.eng.bos.redhat.com/brewroot/work/tasks/2817/12262817) @ line 350, column 25
  82. DEBUG util.py:257: [ERROR] 'dependencies.dependency.version' for org.opendaylight.controller:features-mdsal:xml:features is missing. @ line 384, column 21
  83. DEBUG util.py:257: [ERROR] 'dependencies.dependency.version' for org.opendaylight.controller.model:model-inventory:jar is missing. @ line 422, column 21
  84. DEBUG util.py:257: [ERROR] 'dependencies.dependency.version' for org.opendaylight.controller.model:model-topology:jar is missing. @ line 426, column 21
  85.  
  86. In TODO OTHER PATCH, Mike used literal versions. Trying one in the normal way versions are hardcoded in POMs, one with typical PME transform result (using . and RH suffix) and a third with the RH suffix but still a - after the patch version number.
  87.  
  88. <dependency>
  89. <groupId>${project.groupId}</groupId>
  90. <artifactId>features-mdsal</artifactId>
  91. - <version>${project.version}</version>
  92. + <version>1.4.1-Boron-SR1</version>
  93. <classifier>features</classifier>
  94. <type>xml</type>
  95. <scope>runtime</scope>
  96. @@ -142,12 +142,12 @@
  97. <dependency>
  98. <groupId>org.opendaylight.controller.model</groupId>
  99. <artifactId>model-inventory</artifactId>
  100. - <version>${project.version}</version>
  101. + <version>1.4.1.Boron-SR1-redhat-1</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>org.opendaylight.controller.model</groupId>
  105. <artifactId>model-topology</artifactId>
  106. - <version>${project.version}</version>
  107. + <version>1.4.1-Boron-SR1-redhat-1</version>
  108. </dependency>
  109.  
  110. Trying in this build:
  111.  
  112. https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=12263414
  113.  
  114. (build not done at time of writing)
  115.  
  116.  
  117. Noteworthy files notes:
  118. controller/features/mdsal/pom.xml
  119. controller/features/mdsal/src/main/features/features.xml
  120. controller/opendaylight/model/model-inventory/pom.xml
  121. controller/opendaylight/model/model-topology/pom.xml
Advertisement
Add Comment
Please, Sign In to add comment