[ 
https://issues.apache.org/jira/browse/FELIX-4378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13872305#comment-13872305
 ] 

Carsten Ziegeler commented on FELIX-4378:
-----------------------------------------

Thanks James,
If you add a description to the @Component annotation, a 
OSGI-INF/metatype/io.fabric8.camel.autotest.CamelAutoTestService.properties 
will be generated and the 
OSGI-INF/metatype/io.fabric8.camel.autotest.CamelAutoTestService.xml references 
the values from there.

It seems that this mechanism fails due to the missing description element. I'll 
check if this can easily be fixed

I'm not sure about your second issue, the missing label - but I guess it's the 
same underlying problem. right now, a label and description are required on 
each element. We could either generate default values or break the build.

> generate a metatype.properties file if label/description values are used on 
> @Component or @Property which don't start with %
> ----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-4378
>                 URL: https://issues.apache.org/jira/browse/FELIX-4378
>             Project: Felix
>          Issue Type: Improvement
>          Components: Maven SCR Plugin
>            Reporter: james strachan
>            Assignee: Carsten Ziegeler
>             Fix For: maven-scr-plugin 1.15.0
>
>
> I tried using 1.15.0 of the plugin and added some textual string values 
> (which don't start with %) for label/description on @Component and @Property 
> and they get generated into the metatype.xml file as text strings.
> I was hoping the XML would use "%foo.label" and "%foo.description" then 
> generate a metatype.properties with the mapping of foo.label = "My Label" so 
> that folks can add extra languages by just adding a new metatype file?



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to