-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: maven-scr-plugin 1.20.0
-
Fix Version/s: maven-scr-plugin 1.21.0, scr ant task 1.14.0, scr generator 1.13.0, scr bnd plugin 1.4.0
-
Component/s: SCR Tooling
-
Labels:None
The ServiceComponent xml file generated by maven-scr-plugin does not conform to the declared XML Schema Definition "http://www.osgi.org/xmlns/scr/v1.0.0". Same for other specVersions ("http://www.osgi.org/xmlns/scr/v1.1.0" and "http://www.osgi.org/xmlns/scr/v1.2.0").
The file is generated with root element "components", e.g.,
<?xml version="1.0" encoding="UTF-8"?><components xmlns:scr="http://www.osgi.org/xmlns/scr/v1.0.0">
<scr:component> ...
</scr:component>
</components>
The XSD specifies the root element as "component".