Hi!

I have a bundle that contains two components: AnnotatedComponentOne and
AnnotatedComponentTwo (silly names, but they are just for testing this exact
issue). In these, I set metatype=true and annotate properties with labels
and descriptions.
I then use maven-scr-plugin to generate the xml files and it creates one xml
and one properties file for each component.
The problem is that when installed and viewed in the web console, only one
of the components gets the values from the localized properties file. The
other component gets the data in default format. 
If I change the xml-files not to use localized data, then both components
look fine.

This is a snippet from AnnotatedComponentOne (AnnotatedComponentTwo looks
almost the same):

...

And these are the xml and properties files:
%> cat
target/scr-plugin-generated/OSGI-INF/metatype/com.none.AnnotatedComponentOne.xml


%> cat
target/scr-plugin-generated/OSGI-INF/metatype/com.none.AnnotatedComponentTwo.xml


%> cat
target/scr-plugin-generated/OSGI-INF/metatype/com.none.AnnotatedComponentOne.properties


%> cat
target/scr-plugin-generated/OSGI-INF/metatype/com.none.AnnotatedComponentTwo.properties


What I'm wondering is if this is a bug in the webconsole or if the
maven-scr-plugin generates wrong files.
I'm using Karaf 2.3.2 (also tested on 3.0.0.RC1 with same result) and
maven-scr-plugin version 1.14.0

Thanks, Patrik



--
View this message in context: 
http://karaf.922171.n3.nabble.com/WebConsole-localized-meta-data-not-correct-for-multiple-components-tp4029822.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to