Skip to content

Commit 23daf0e

Browse files
authored
Package addons.xml with the distro instead of as an external feature (#1620)
* Package addons.xml with the distro instead of as an external feature Signed-off-by: Kai Kreuzer <[email protected]>
1 parent db211a5 commit 23daf0e

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

distributions/openhab/pom.xml

+10-1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,16 @@
123123
<outputDirectory>${project.build.directory}/assembly/bin</outputDirectory>
124124
<destFileName>upgradetool.jar</destFileName>
125125
</artifactItem>
126+
<artifactItem>
127+
<groupId>org.openhab.addons.features.karaf</groupId>
128+
<artifactId>org.openhab.addons.features.karaf.openhab-addons-external</artifactId>
129+
<version>${project.version}</version>
130+
<type>xml</type>
131+
<classifier>addons</classifier>
132+
<overWrite>true</overWrite>
133+
<outputDirectory>${project.build.directory}/assembly/runtime/etc</outputDirectory>
134+
<destFileName>addons.xml</destFileName>
135+
</artifactItem>
126136
</artifactItems>
127137
</configuration>
128138
</plugin>
@@ -170,7 +180,6 @@
170180
<feature>system</feature>
171181
<feature>openhab-runtime-base</feature>
172182
<feature>openhab-runtime-ui</feature>
173-
<feature>openhab-addon-discovery</feature>
174183
</bootFeatures>
175184
<archiveZip>false</archiveZip>
176185
<archiveTarGz>false</archiveTarGz>

distributions/openhab/src/main/filtered-resources/userdata/etc/org.apache.karaf.features.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ featuresBoot = \
4444
jaas/${karaf.version}, \
4545
openhab-runtime-base, \
4646
openhab-runtime-ui, \
47-
openhab-addon-discovery, \
4847
deployer/${karaf.version}, \
4948
diagnostic/${karaf.version}, \
5049
bundle/${karaf.version}, \

features/distro/src/main/feature/feature.xml

-4
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,4 @@
99
<bundle>mvn:org.openhab.ui.bundles/org.openhab.ui.iconset.classic/${project.version}</bundle>
1010
</feature>
1111

12-
<feature name="openhab-addon-discovery" description="Discovery Information" version="${project.version}">
13-
<configfile finalname="${openhab.userdata}/addons/openhab-addons.xml" override="true">mvn:org.openhab.addons.features.karaf/org.openhab.addons.features.karaf.openhab-addons-external/${project.version}/xml/addons</configfile>
14-
</feature>
15-
1612
</features>

launch/app/app.bndrun

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ feature.openhab-model-runtime-all: \
8686
org.apache.cxf.osgi.http.transport.disable=true,\
8787
org.ops4j.pax.logging.DefaultServiceLog.level=ERROR,\
8888
openhab.servicecfg=${.}/runtime/services.cfg,\
89+
openhab.runtime=${.}/runtime/runtime,\
8990
openhab.conf=${.}/runtime/conf,\
9091
openhab.userdata=${.}/runtime/userdata,\
9192
openhab.logdir=${.}/runtime/userdata/logs

0 commit comments

Comments
 (0)