Thanks. That did it.

On Wed, Nov 3, 2010 at 5:21 PM, Bartosz Kowalewski
<kowalewski.bart...@gmail.com> wrote:
> Hi Benson,
>
> By default maven-bundle-plugin (and bnd which used internally by this
> plugin) uses '*' pattern for the export header. There are several ways
> in which you could tell maven-bundle-plugin not to add your package to
> exports. Try using a pattern with negation, i.e.
> '!org.apache.ws.commons.schema*'.
>
> I'd also check the contents of OSGi headers in manifest inside your
> bundle - the final bundle jar that you get after you build your
> project.
>
> Best regards,
>  Bartek
>
> 2010/11/3 Benson Margulies <bimargul...@gmail.com>:
>> I have set up a test with pax-exam to validate that there is usable
>> metadata in a bundle I'm responsible for.
>>
>> I can't see to make the test fail.
>>
>> The bundle is configured like:
>>
>>  <plugin>
>>                <groupId>org.apache.felix</groupId>
>>                <artifactId>maven-bundle-plugin</artifactId>
>>                <version>2.0.0</version>
>>                <extensions>true</extensions>
>>                <configuration>
>>                    <instructions>
>>
>> <Import-Package>org.apache.ws.commons.schema*;version=${project.version},*</Import-Package>
>>
>> <Export-Package>org.apache.ws.commons.schema*;version="${project.version}"</Export-Package>
>>                    </instructions>
>>                </configuration>
>>            </plugin>
>>
>>
>> Note that I inherited this. If I take out the instructions, the test
>> still passes. Am I 'benefitting' from defaults? How can I arrange
>> matters so that my bundle stops exporting and my test fails?
>>
>> _______________________________________________
>> general mailing list
>> general@lists.ops4j.org
>> http://lists.ops4j.org/mailman/listinfo/general
>>
>

_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to