[ https://issues.apache.org/jira/browse/FELIX-3187?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158522#comment-13158522 ]
Reto Bachmann-Gmür commented on FELIX-3187: ------------------------------------------- I think this is a duplicate of FELIX-2892 > scr annotations: scala support > ------------------------------ > > Key: FELIX-3187 > URL: https://issues.apache.org/jira/browse/FELIX-3187 > Project: Felix > Issue Type: Bug > Components: Maven SCR Plugin > Reporter: Andrei Pozolotin > > scr annotations: scala support > this would need to change: > a) annotaion retention to runtime; > b) process compiled class files, not java/scala source files - first, in the > maven plugin; > it is also more in line with current osgi scr annotations rfc; > example: > 1) scala source: > import org.apache.felix.scr.annotations.Component > import org.apache.felix.scr.annotations.Activate > @Component > class Hello { > @Activate > protected def activate { > > } > } > 2) class view via java decompiler: > import org.apache.felix.scr.annotations.Activate; > import org.apache.felix.scr.annotations.Component; > import scala.ScalaObject; > import scala.reflect.ScalaSignature; > @Component > @ScalaSignature(bytes="...") > public class Hello > implements ScalaObject > { > @Activate > public void activate() > { > } > } > but scr maven plugin does not see it. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira