[ 
https://issues.apache.org/jira/browse/KARAF-5583?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jean-Baptiste Onofré reassigned KARAF-5583:
-------------------------------------------

    Assignee:     (was: Jean-Baptiste Onofré)

> karaf-services-maven-plugin generates an empty bundle if the private or 
> export packages is not explicitly set
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: KARAF-5583
>                 URL: https://issues.apache.org/jira/browse/KARAF-5583
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.1.4, 4.2.0.M2
>            Reporter: Jean-Baptiste Onofré
>            Priority: Minor
>
> Using a {{pom.xml}} like the following creates an empty bundle:
> {code}
>     <build>
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.karaf.tooling</groupId>
>                 <artifactId>karaf-services-maven-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <phase>process-classes</phase>
>                         <goals>
>                             <goal>service-metadata-generate</goal>
>                         </goals>
>                     </execution>
>                 </executions>
>             </plugin>
>             <plugin>
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-bundle-plugin</artifactId>
>                 <configuration>
>                     <instructions>
>                         <Import-Package>
>                             *
>                         </Import-Package>
>                     </instructions>
>                 </configuration>
>             </plugin>
>         </plugins>
>     </build>
> {code}
> The workaround is to explicitly set either {{Export-Package}} or 
> {{Private-Package}} statements in the {{maven-bundle-plugin}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to