Hi Benjamin, > -----Original Message----- > From: Benjamin Wulff [mailto:[email protected]] > Sent: Wednesday, March 06, 2013 8:18 PM > To: [email protected] > Subject: /SPAM!/ [51%] No accessors generated > > 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.
Sounds like you need to upgrade to the maven-scr-plugin version 1.11.0 . 1.10.0 had a regression where bind/unbind methods were no longer generated. [0] Robert [0]: https://issues.apache.org/jira/browse/FELIX-3917 > > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

