Hi all,
I'm using the SCR Maven Plugin and SCR Annotations in my project for
over a year. Recently I tried to compile the project on a fresh system
and noticed that all the services fail activation because SCR cannot
find the accessor methods for binding dependencies. It seems that the
bindXXX und unbindXXX methods are not generated anymore.
Same was the case when I delete the .m2/repository on the my development
machine. When I now compile and deploy the modules into Felix, SCR
complaints that it can't find the methods for binding services. When I
exchanged the bundle in felix/load with the old jar (that was compiled
before deleting the .m2 repo), the service got activated without
problems. Inspecting the bundles reveals that the component descriptions
are generated correctly tough.
What did I miss? I have the following deps in my base pom
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr</artifactId>
<version>1.6.0</version>
</dependency>
<dependency>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.scr.annotations</artifactId>
<version>1.7.0</version>
</dependency>
The SCR plugin is called in the module poms like this
<build>
<plugins>
<!-- Generate Declarative Service Descriptor -->
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-scr-plugin</artifactId>
<executions>
<execution>
<id>generate-scr-scrdescriptor</id>
<goals>
<goal>scr</goal>
</goals>
</execution>
</executions>
</plugin>
...
BTW updating to the most recent versions of the plugin (1.10.0) and
annotations (1.80.0) did not show an effect.
Thanks,
Benjamin
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]