[CONTROLLER-308] Gerrit Verify job for hydrogen/stable release branch fails to build. Created: 10/Apr/14  Updated: 25/Jul/23  Resolved: 11/Apr/14

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

Type: Bug
Reporter: Surekha Bejgam Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: Linux
Platform: PC


External issue ID: 717

 Description   

Jenkins Verify job for hydrogen/stable release branch is executing with following goals: "mvn clean install -Pintegrationtests,doc"

while building distribution component, build fails with following error message:

!ENTRY org.opendaylight.controller.config-persister-impl 4 0 2014-04-10 21:12:05.850
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "org.opendaylight.controller.config-persister-impl_0.2.4.1-SNAPSHOT [159]" could not be resolved. Reason: Missing Constraint: Require-Capability: org.opendaylight.controller.config.persister.storage.adapter

See link below for entire error message:
https://jenkins.opendaylight.org/controller/job/controller-verify/4528/console

After analyzing the failure, issue seems to be in opendaylight/config/config-persister-directory-adapter/pom.xml and the snippet:

<plugins>
<!-- workaround for creating version according to OSGi specification (major.minor.micro[.qualifier] -->
<plugin>
<groupId>org.codehaus.groovy.maven</groupId>
<artifactId>gmaven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>execute</goal>
</goals>
<configuration>
<source>
System.setProperty("osgiversion", "${project.version}".replace('-', '.'))
</source>
</configuration>
</execution>
</executions>
</plugin>

on stable branch we have versioning scheme as 0.2.4-1-SNAPSHOT which is being replaced as 0.2.4.1 and we will not be able to find it.



 Comments   
Comment by Tomas Olvecky [ 11/Apr/14 ]

I think that version consisting of 5 elements breaks OSGi versioning, so I removed the version constraint from fragments in this patch:
https://git.opendaylight.org/gerrit/#/c/6046/
Please try it out.

Comment by Surekha Bejgam [ 11/Apr/14 ]

Tested the build, it works fine now

Comment by Surekha Bejgam [ 11/Apr/14 ]

Had to apply same fix for couple of more files as well to get things working.

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