Description of problem: List of artifact with invalid content of Implementation-Version: modules/system/layers/base/com/h2database/h2/main/h2-1.3.168-redhat-1.jar - filename doesn't contain a such suffix ('_' -> '-') The version in the MANIFEST has the underscores instead of the dashes. Additional info: see https://bugzilla.redhat.com/show_bug.cgi?id=927238
If I modify the build for h2, we can get the Implementation-Version how you want it, but the Export-Package line is changed as well. I think the OSGi version must be changed from a dash to a dot, but this isn't being done automatically. Export-Package: org.h2;version="1.3.168-redhat-2",org.h2.api;version="^M 1.3.168-redhat-2",org.h2.fulltext;version="1.3.168-redhat-2",org.h2.j^M dbcx;version="1.3.168-redhat-2",org.h2.tools;version="1.3.168-redhat-^M 2",org.h2.util;version="1.3.168-redhat-2"^M Implementation-Version: 1.3.168-redhat-2^M Bundle-Version: 1.3.168-redhat-2^M I know there are two QE version checks: one for having '-redhat-#' in the version and one for having OSGi correctness. So my concern is that it would be possible to violate the OSGi correctness when attempting to fix the '-redhat-#' check. Also, given that there's several different pieces of software in play, it is not clear to me if the OSGi version can be checked beforehand. But, obviously it's not being checked or it should not be possible for a build to violate the OSGi correctness check unless the plugin that is adding the version is doing so incorrectly.
Built: h2database-1.3.168-3_redhat_2.ep6.el6 <https://brewweb.devel.redhat.com/buildinfo?buildID=263984>
@Rosta, Could you please look at David's comment? I'm not expert of OSGi requirements and if I'm not wrong, you have been executing these checks.
OSGi version naming compliance is not goal for EAP 6, -redhat-XY suffix is enough. I think Fernando is right and version in the MANIFEST should have the dashes instead of the underscores. Info for EAP 6.1.0 ER3: 8. Number of invalid versions (strict OSGi naming rules) 176 of 458 http://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-Repository/job/eap-60-repository-maven-check-valid-versions/ 9. Number of invalid versions (less strict, just with -redhat-XY substring) 0 of 458 http://jenkins.mw.lab.eng.bos.redhat.com/hudson/view/EAP6/view/EAP6-Repository/job/eap-60-repository-maven-check-valid-versions/
This page includes an excerpt regarding the OSGi specification for version strings: https://community.jboss.org/wiki/JBossProjectVersioning
Fix did not make it in time for the ER5 ZIP build, will be on ER6
Verified on EAP 6.1.0 ER6
Details inside vpn: https://post-office.corp.redhat.com/mailman/private/eap-pm-list/2013-July/msg00105.html