You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by mjk <mj...@gmail.com> on 2011/03/18 19:37:28 UTC
Maven SCR and BUNDLE Plugins
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>
Re: Maven SCR and BUNDLE Plugins
Posted by Michael Kelleher <mj...@gmail.com>.
Yes
I used the resource plugin to copy the metadata
I was too busy on our project to file a bug
Sent from my iPhone
On Mar 31, 2011, at 3:24 AM, Carsten Ziegeler <cz...@apache.org>
wrote:
> Hi,
>
> you could try the latest version, 1.7.0, though I don't think it
> makes a
> difference.
>
> If it still doesn't work, maybe you could open a bug and attach a
> minimal project for reproducing this problem.
>
> Regards
> Carsten
>
> mjk wrote
>> Upgrading to SCR 1.6.0 does not fix it either.
>>
>> On Fri, Mar 18, 2011 at 2:37 PM, mjk <mj...@gmail.com> 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>
>>>
>>
>
>
> --
> Carsten Ziegeler
> cziegeler@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Maven SCR and BUNDLE Plugins
Posted by Carsten Ziegeler <cz...@apache.org>.
Hi,
you could try the latest version, 1.7.0, though I don't think it makes a
difference.
If it still doesn't work, maybe you could open a bug and attach a
minimal project for reproducing this problem.
Regards
Carsten
mjk wrote
> Upgrading to SCR 1.6.0 does not fix it either.
>
> On Fri, Mar 18, 2011 at 2:37 PM, mjk <mj...@gmail.com> 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>
>>
>
--
Carsten Ziegeler
cziegeler@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: Maven SCR and BUNDLE Plugins
Posted by mjk <mj...@gmail.com>.
Upgrading to SCR 1.6.0 does not fix it either.
On Fri, Mar 18, 2011 at 2:37 PM, mjk <mj...@gmail.com> 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>
>