[
https://issues.apache.org/jira/browse/FELIX-2892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Reto Bachmann-Gmür updated FELIX-2892:
--------------------------------------
Attachment: Foo.class
I'm having problems also at runtime, I'm getting the error:
zz>val t = $[Foo]
error: error while loading Foo, Missing dependency 'class
org.apache.felix.scr.annotations.Component', required by
org/apache/clerezza/jaxrs/stanbol/webfragements/Foo.class
Foo.class is attached, Foo.scala looks as follows:
package org.apache.clerezza.jaxrs.stanbol.webfragements
import org.apache.felix.scr.annotations._
@Component
@Service
class Foo {
println("fooling")
def bar() {
var r = getClass.getResource("META-INF/MANIFEST.MF")
println(r)
}
}
> Get SCR annotations to work with Scala
> --------------------------------------
>
> Key: FELIX-2892
> URL: https://issues.apache.org/jira/browse/FELIX-2892
> Project: Felix
> Issue Type: Improvement
> Components: Maven SCR Plugin
> Reporter: Reto Bachmann-Gmür
> Assignee: Carsten Ziegeler
> Fix For: maven-scr-plugin-1.8.2
>
> Attachments: Foo.class
>
>
> Currently the maven scr plugin doesn't work with scala, teh main reason for
> this is that the annotation have only source scope and the adding of
> bind-methods happe on a source rather than a bytecode level.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira