You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Rice Yeh <ri...@gmail.com> on 2010/12/10 09:46:33 UTC

How to make manifest without Export-Package

Hi,
   My bundle has only one package org.foo.sh, but I do not like to export
it. How do I do it with BND instructions thru. maven-bundle-plugin. My
current instructions have no Export-Package and have org.foo.sh included in
Private-Package as shown below. But I still get a manifest with
org.foo.shlisted in Export-Package.

<Export-Package></Export-Package>
<Private-Package>org.foo.sh</Private-Package>


Regards,
Rice

Re: How to make manifest without Export-Package

Posted by Rice Yeh <ri...@gmail.com>.
Yes, it works now. The cause for my problem is that I do not run maven clean
to delete MANIFEST.MF file first and each run of mvn manifest just change
items in MANIFEST.MF that have changed.

Rice

On Sat, Dec 11, 2010 at 1:20 AM, Stuart McCulloch <mc...@gmail.com> wrote:

> On 10 December 2010 16:44, Rice Yeh <ri...@gmail.com> wrote:
>
> > No, it still does not work.
> >
>
> The following configuration doesn't export the "org.foo.sh" package, as
> expected:
>
>  <build>
>    <plugins>
>      <plugin>
>        <groupId>org.apache.felix</groupId>
>        <artifactId>maven-bundle-plugin</artifactId>
>        <version>2.1.0</version>
>        <extensions>true</extensions>
>        <configuration>
>          <instructions>
>             <Export-Package/>
>            <Private-Package>org.foo.sh</Private-Package>
>           </instructions>
>        </configuration>
>      </plugin>
>    </plugins>
>  </build>
>
> what configuration are you using in your POM?
>
> --
> Cheers, Stuart
>
>
> > On Fri, Dec 10, 2010 at 9:58 PM, Richard S. Hall <heavy@ungoverned.org
> > >wrote:
> >
> > > Seems like what you have should work. Maybe try something like:
> > >
> > > <Export-Package>!org.foo.sh</Export-Package>
> > >
> > > But still sounds odd to me.
> > >
> > > -> richard
> > >
> > >
> > > On 12/10/10 3:46, Rice Yeh wrote:
> > >
> > >> Hi,
> > >>    My bundle has only one package org.foo.sh, but I do not like to
> > export
> > >> it. How do I do it with BND instructions thru. maven-bundle-plugin. My
> > >> current instructions have no Export-Package and have
> org.foo.shincluded
> > >> in
> > >> Private-Package as shown below. But I still get a manifest with
> > >> org.foo.shlisted in Export-Package.
> > >>
> > >>
> > >> <Export-Package></Export-Package>
> > >> <Private-Package>org.foo.sh</Private-Package>
> > >>
> > >>
> > >> Regards,
> > >> Rice
> > >>
> > >>
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > > For additional commands, e-mail: users-help@felix.apache.org
> > >
> > >
> >
>

Re: How to make manifest without Export-Package

Posted by Stuart McCulloch <mc...@gmail.com>.
On 10 December 2010 16:44, Rice Yeh <ri...@gmail.com> wrote:

> No, it still does not work.
>

The following configuration doesn't export the "org.foo.sh" package, as
expected:

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.1.0</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Export-Package/>
            <Private-Package>org.foo.sh</Private-Package>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>

what configuration are you using in your POM?

-- 
Cheers, Stuart


> On Fri, Dec 10, 2010 at 9:58 PM, Richard S. Hall <heavy@ungoverned.org
> >wrote:
>
> > Seems like what you have should work. Maybe try something like:
> >
> > <Export-Package>!org.foo.sh</Export-Package>
> >
> > But still sounds odd to me.
> >
> > -> richard
> >
> >
> > On 12/10/10 3:46, Rice Yeh wrote:
> >
> >> Hi,
> >>    My bundle has only one package org.foo.sh, but I do not like to
> export
> >> it. How do I do it with BND instructions thru. maven-bundle-plugin. My
> >> current instructions have no Export-Package and have org.foo.shincluded
> >> in
> >> Private-Package as shown below. But I still get a manifest with
> >> org.foo.shlisted in Export-Package.
> >>
> >>
> >> <Export-Package></Export-Package>
> >> <Private-Package>org.foo.sh</Private-Package>
> >>
> >>
> >> Regards,
> >> Rice
> >>
> >>
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> >
>

Re: How to make manifest without Export-Package

Posted by Rice Yeh <ri...@gmail.com>.
No, it still does not work.

On Fri, Dec 10, 2010 at 9:58 PM, Richard S. Hall <he...@ungoverned.org>wrote:

> Seems like what you have should work. Maybe try something like:
>
> <Export-Package>!org.foo.sh</Export-Package>
>
> But still sounds odd to me.
>
> -> richard
>
>
> On 12/10/10 3:46, Rice Yeh wrote:
>
>> Hi,
>>    My bundle has only one package org.foo.sh, but I do not like to export
>> it. How do I do it with BND instructions thru. maven-bundle-plugin. My
>> current instructions have no Export-Package and have org.foo.sh included
>> in
>> Private-Package as shown below. But I still get a manifest with
>> org.foo.shlisted in Export-Package.
>>
>>
>> <Export-Package></Export-Package>
>> <Private-Package>org.foo.sh</Private-Package>
>>
>>
>> Regards,
>> Rice
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>

Re: How to make manifest without Export-Package

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Seems like what you have should work. Maybe try something like:

<Export-Package>!org.foo.sh</Export-Package>

But still sounds odd to me.

-> richard

On 12/10/10 3:46, Rice Yeh wrote:
> Hi,
>     My bundle has only one package org.foo.sh, but I do not like to export
> it. How do I do it with BND instructions thru. maven-bundle-plugin. My
> current instructions have no Export-Package and have org.foo.sh included in
> Private-Package as shown below. But I still get a manifest with
> org.foo.shlisted in Export-Package.
>
> <Export-Package></Export-Package>
> <Private-Package>org.foo.sh</Private-Package>
>
>
> Regards,
> Rice
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org