[jira] [Closed] (FELIX-5308) Inconsistent Validation with Metatype Container
[ https://issues.apache.org/jira/browse/FELIX-5308?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] JBodkin closed FELIX-5308. -- Resolution: Invalid > Inconsistent Validation with Metatype Container > --- > > Key: FELIX-5308 > URL: https://issues.apache.org/jira/browse/FELIX-5308 > Project: Felix > Issue Type: Bug > Components: SCR Tooling >Affects Versions: maven-scr-plugin 1.22.0 >Reporter: JBodkin > > There are inconsistence warnings that are produced when generating the > components using the maven-scr-plugin. > Case 1 > {code} > @Component(label = "Alphabet") > {code} > {quote} > Component x.y.Z has set a label. However metatype is set to false. This label > is ignored. > {quote} > Case 2 > {code} > @Component(metatype = true, label = "Alphabet") > {code} > {quote} > @Component : Component is defined to generate metatype information, however > no properties have been defined; in case no properties are wanted, consider > to use 'metatype=false' > {quote} > As an developer, if I enable strictMode, the build will always fail as either > the code in SCRDescriptorGenerator.java or Validator.java will output the > above warnings as errors. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (FELIX-5308) Inconsistent Validation with Metatype Container
[ https://issues.apache.org/jira/browse/FELIX-5308?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15382283#comment-15382283 ] JBodkin commented on FELIX-5308: Thanks, that makes more sense now. I was thinking the the description attribute in the @Component annotation also drove the Service Description that can be seen in the Felix Console when inspecting an specific service however this is not the case. > Inconsistent Validation with Metatype Container > --- > > Key: FELIX-5308 > URL: https://issues.apache.org/jira/browse/FELIX-5308 > Project: Felix > Issue Type: Bug > Components: SCR Tooling >Affects Versions: maven-scr-plugin 1.22.0 >Reporter: JBodkin > > There are inconsistence warnings that are produced when generating the > components using the maven-scr-plugin. > Case 1 > {code} > @Component(label = "Alphabet") > {code} > {quote} > Component x.y.Z has set a label. However metatype is set to false. This label > is ignored. > {quote} > Case 2 > {code} > @Component(metatype = true, label = "Alphabet") > {code} > {quote} > @Component : Component is defined to generate metatype information, however > no properties have been defined; in case no properties are wanted, consider > to use 'metatype=false' > {quote} > As an developer, if I enable strictMode, the build will always fail as either > the code in SCRDescriptorGenerator.java or Validator.java will output the > above warnings as errors. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Created] (FELIX-5308) Inconsistent Validation with Metatype Container
JBodkin created FELIX-5308: -- Summary: Inconsistent Validation with Metatype Container Key: FELIX-5308 URL: https://issues.apache.org/jira/browse/FELIX-5308 Project: Felix Issue Type: Bug Components: SCR Tooling Affects Versions: maven-scr-plugin 1.22.0 Reporter: JBodkin There are inconsistence warnings that are produced when generating the components using the maven-scr-plugin. Case 1 {code} @Component(label = "Alphabet") {code} {quote} Component x.y.Z has set a label. However metatype is set to false. This label is ignored. {quote} Case 2 {code} @Component(metatype = true, label = "Alphabet") {code} {quote} @Component : Component is defined to generate metatype information, however no properties have been defined; in case no properties are wanted, consider to use 'metatype=false' {quote} As an developer, if I enable strictMode, the build will always fail as either the code in SCRDescriptorGenerator.java or Validator.java will output the above warnings as errors. -- This message was sent by Atlassian JIRA (v6.3.4#6332)