Mustafa Caylak wrote:
Hi,

I know that I can set the name of the xml-file. I was just too lazy :)

The problem could be that there is no a directory like /target/scr-plugin-generated/OSGI-INF.
Does it mean that no descriptor.xml is generated?

I'm a bit confused. Where do I use the annotations? Aren't they the same annotations that you use when you define a Declarative Service Component?
Where do the scr-plugin know what it has to generate?
You embed JAVA annotations in your Component implementation source code.
When you execute Maven, the scr plugin will inspect the annotated classes and generate
the corresponding XML Component Descriptor file for you.

I know I'm annoying but you have to bear it, please ^^
This is no Customer Service, so you'll have to do some homework.
Read [1], slide 18 and following, read [2], slide 19 for an example of annotated class.

[1]: http://www.slideshare.net/cziegeler/maven-scr-plugin
[2]: http://www.slideshare.net/bdelacretaz/tales-from-the-osgi-trenches


Best,
Guido

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to