How to use org.apache.felix.scr annotations for a bundle from scratch?
问题 I've started developing a bundle for apache felix and did so with the ops4j pax plugin. I've created the project structure with pax-create-project and in there did the normal pax-create-bundle . Then you get the initial project structure for building the whole thing with maven. The important part here is, that your bundle has it's own pom ( bundlename/pom.xml ) and bnd file ( bundlename/osgi.bnd ) but the configuration for maven-bundle-plugin is already provided under poms/compiled/pom.xml .