Upgrading to SCR 1.6.0 does not fix it either.
On Fri, Mar 18, 2011 at 2:37 PM, mjk <[email protected]> wrote:
> I am using both plugins:
> SCR - 1.4.4
> BUNDLE - 2.3.4
> Maven - 3.0.3
>
> I included my defintions for both below, and they are both defined within
> the same *profile *element.
>
> SCR creates all the expected metadata, however the bundle component is not
> including the OSGI directory from target/scr-plugin-generated.
> I even tried explicitly including : Service-Component, and
> Include-Resource config options, but this has no effect either.
>
> Has anyone else had this problem, and how did you resolve it?
>
> SCR Def:
>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-scr-plugin</artifactId>
> <version>1.4.4</version>
> <inherited>true</inherited>
> <executions>
> <execution>
> <id>generate-src-scrdescriptor</id>
> <goals>
> <goal>scr</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
>
> BUNDLE Def:
>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>2.3.4</version>
> <extensions>true</extensions>
> <inherited>true</inherited>
>
> <executions>
> <execution>
> <id>bundle-manifest</id>
> <phase>process-classes</phase>
> <goals>
> <goal>manifest</goal>
> </goals>
> </execution>
> </executions>
>
> <configuration>
> <supportedProjectTypes>
>
> <supportedProjectType>jar</supportedProjectType>
>
> <supportedProjectType>bundle</supportedProjectType>
>
> <supportedProjectType>pom</supportedProjectType>
> </supportedProjectTypes>
> <instructions>
>
> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
> <Bundle-Name>${project.name}</Bundle-Name>
>
>
> <Export-Package>${bundle.export.package}</Export-Package>
>
>
> <Sling-Bundle-Resources>${bundle.sling.resources}</Sling-Bundle-Resources>
>
> <Bundle-Description>${bundle.description}</Bundle-Description>
>
> <Bundle-Resources>${bundle.resources}</Bundle-Resources>
>
> <Bundle-Activator>${bundle.activator}</Bundle-Activator>
>
>
> <Embed-Dependency>${bundle.embed.dependency}</Embed-Dependency>
>
> <Bundle-ClassPath>${bundle.classpath}</Bundle-ClassPath>
>
> <!--
>
> <Service-Component>${bundle.service.component}</Service-Component>
>
> <Include-Resource>${bundle.include.resource}</Include-Resource>
> -->
> </instructions>
> </configuration>
> </plugin>
>