about the non-existent Private-Package in the final manifest, I can see in your latest email that there are a explicity removeheaders tag:

-removeheaders=Include-Resource,Private-Package


And about the not importing all the exported packages I can't see the reason...

perhaps you would like to test your bundle with the 3.1.0-SNAPSHOT that is using latest bndlib version.

regards,

Cristiano

On 08/07/2016 04:48, Andreas Sewe wrote:
Andreas Sewe wrote:
Anyway, I deleted all custom <configuration>, which results in the
following effective POM for my child project:

       <plugins>
         <plugin>
           <groupId>org.apache.felix</groupId>
           <artifactId>maven-bundle-plugin</artifactId>
           <version>3.0.1</version>
           <extensions>true</extensions>
           <executions>
             <execution>
               <id>default-bundle</id>
               <phase>package</phase>
               <goals>
                 <goal>bundle</goal>
               </goals>
             </execution>
             <execution>
               <id>default-install</id>
               <phase>install</phase>
               <goals>
                 <goal>install</goal>
               </goals>
             </execution>
             <execution>
               <id>default-deploy</id>
               <phase>deploy</phase>
               <goals>
                 <goal>deploy</goal>
               </goals>
             </execution>
           </executions>
         </plugin>
This results in the following MANIFEST.MF:

Export-Package: com.ctrlflow.aer.client.logback;uses:="ch.qos.logback.cl
  assic.spi,ch.qos.logback.core,com.ctrlflow.aer.client.dto";version="2.0
  .0"
Import-Package: ch.qos.logback.classic.spi;version="[1.1,2)",ch.qos.logb
  ack.core;version="[1.1,2)",com.ctrlflow.aer.client.dto;version="[2.0,3)
  ",com.google.common.base;version="[17.0,18)",com.google.common.collect;
  version="[17.0,18)",com.google.gson;version="[2.3,3)",org.apache.common
  s.lang3;version="[3.3,4)",org.apache.http;version="[4.3,5)",org.apache.
  http.client;version="[4.3,5)",org.apache.http.client.entity;version="[4
  .3,5)",org.apache.http.client.fluent;version="[4.3,5)",org.apache.http.
  entity;version="[4.3,5)",org.slf4j;version="[1.7,2)"
Oddly, there is no Private-Package header, even though my child project
has a package matching *.internal.*. Maybe that's a hint?
And in case it helps, here's the dumped instructions (grep'ed for
"Package"):

Export-Package=com.ctrlflow.aer.client.logback
-removeheaders=Include-Resource,Private-Package
Private-Package=com.ctrlflow.aer.client.logback,com.ctrlflow.aer.client.logback.internal
Import-Package=*
Having all packages marked as Private-Package looks odd. Why is that?

Best wishes,

Andreas



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to