[archetype] new binding feature should use ohc.version (#1311)

When generating a new binding with the maven archetype it should refer to openhab core via the variable `ohc.version` In the feature.xml.

Signed-off-by: Hilbrand Bouwkamp <hilbrand@h72.nl>
pull/1312/head
Hilbrand Bouwkamp 2019-12-31 14:33:36 +01:00 committed by Christoph Weitkamp
parent 1c1bde0ef7
commit 9a50b262a3
1 changed files with 2 additions and 3 deletions

View File

@ -14,10 +14,9 @@
--> -->
<features name="${rootArtifactId}-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0"> <features name="${rootArtifactId}-${project.version}" xmlns="http://karaf.apache.org/xmlns/features/v1.4.0">
<repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${project.version}/xml/features</repository> <repository>mvn:org.openhab.core.features.karaf/org.openhab.core.features.karaf.openhab-core/${ohc.version}/xml/features</repository>
<feature name="openhab-binding-${bindingId}" description="${bindingIdCamelCase} Binding" <feature name="openhab-binding-${bindingId}" description="${bindingIdCamelCase} Binding" version="${project.version}">
version="${project.version}">
<feature>openhab-runtime-base</feature> <feature>openhab-runtime-base</feature>
<bundle start-level="80">mvn:org.openhab.addons.bundles/${rootArtifactId}/${project.version}</bundle> <bundle start-level="80">mvn:org.openhab.addons.bundles/${rootArtifactId}/${project.version}</bundle>
</feature> </feature>