You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2018/01/29 10:38:00 UTC
[jira] [Created] (KARAF-5583) karaf-services-maven-plugin generates
an empty bundle if the private or export packages is not explicitly set
Jean-Baptiste Onofré created KARAF-5583:
-------------------------------------------
Summary: 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-shell, karaf-tooling
Affects Versions: 4.2.0.M2, 4.1.4
Reporter: Jean-Baptiste Onofré
Assignee: Jean-Baptiste Onofré
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
(v7.6.3#76005)