Freeman Fang created FELIX-4828:
-----------------------------------

             Summary: the Private-Package value is !* when there's no java src 
package in a certain maven project
                 Key: FELIX-4828
                 URL: https://issues.apache.org/jira/browse/FELIX-4828
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
            Reporter: Freeman Fang


start from maven-bundle-plugin 2.4.0, when use maven-bundle-plugin in a 
project, if the project has no jave source code package, the Private-Package is 
"!*", and so get the WARNING like
{code}
[WARNING] Bundle 
org.apache.servicemix.specs:org.apache.servicemix.specs.jain-sip-api-1.2:bundle:2.5-SNAPSHOT
 : Unused Private-Package instructions, no such package(s) on the class path: 
[!*]
{code}
Also this can cause the Export-Package is empty in the OSGi header.

I know when use the maven-bundle-plugin in a certain project, it is rare that 
the java src package is empty, so that the Private-Package is assumed to be the 
set of packages in local Java sources. But when use maven-bundle-plugin to 
OSGi-fy a normal, it's usual that there's just a pom.xml without any source, 
here is an example[1]

[1]https://svn.apache.org/repos/asf/servicemix/smx4/specs/trunk/jain-sip-api-1.2/



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to