{"action":"created","issue":{"url":"https://api.github.com/repos/bndtools/bnd/issues/1172","labels_url":"https://api.github.com/repos/bndtools/bnd/issues/1172/labels{/name}","comments_url":"https://api.github.com/repos/bndtools/bnd/issues/1172/comments","events_url":"https://api.github.com/repos/bndtools/bnd/issues/1172/events","html_url":"https://github.com/bndtools/bnd/issues/1172","id":113645807,"number":1172,"title":"Spurious split package warnings from issues amongst jars inside the bundle classpath","user":{"login":"benson-basis","id":3358159,"avatar_url":"https://avatars.githubusercontent.com/u/3358159?v=3","gravatar_id":"","url":"https://api.github.com/users/benson-basis","html_url":"https://github.com/benson-basis","followers_url":"https://api.github.com/users/benson-basis/followers","following_url":"https://api.github.com/users/benson-basis/following{/other_user}","gists_url":"https://api.github.com/users/benson-basis/gists{/gist_id}","starred_url":"https://api.github.com/users/benson-basis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benson-basis/subscriptions","organizations_url":"https://api.github.com/users/benson-basis/orgs","repos_url":"https://api.github.com/users/benson-basis/repos","events_url":"https://api.github.com/users/benson-basis/events{/privacy}","received_events_url":"https://api.github.com/users/benson-basis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-10-27T18:05:40Z","updated_at":"2015-11-02T12:13:18Z","closed_at":null,"body":"Please have a look at https://issues.apache.org/jira/browse/FELIX-5069. It seems to me that this has to be inside of bnd. What is happening here is that a package is split between jars that are all within the Bundle-Classpath, where the concept of a split package doesn't actually mean anything."},"comment":{"url":"https://api.github.com/repos/bndtools/bnd/issues/comments/153000458","html_url":"https://github.com/bndtools/bnd/issues/1172#issuecomment-153000458","issue_url":"https://api.github.com/repos/bndtools/bnd/issues/1172","id":153000458,"user":{"login":"benson-basis","id":3358159,"avatar_url":"https://avatars.githubusercontent.com/u/3358159?v=3","gravatar_id":"","url":"https://api.github.com/users/benson-basis","html_url":"https://github.com/benson-basis","followers_url":"https://api.github.com/users/benson-basis/followers","following_url":"https://api.github.com/users/benson-basis/following{/other_user}","gists_url":"https://api.github.com/users/benson-basis/gists{/gist_id}","starred_url":"https://api.github.com/users/benson-basis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benson-basis/subscriptions","organizations_url":"https://api.github.com/users/benson-basis/orgs","repos_url":"https://api.github.com/users/benson-basis/repos","events_url":"https://api.github.com/users/benson-basis/events{/privacy}","received_events_url":"https://api.github.com/users/benson-basis/received_events","type":"User","site_admin":false},"created_at":"2015-11-02T12:13:18Z","updated_at":"2015-11-02T12:13:18Z","body":"The entire test case is at https://github.com/bimargulies/felix-unwanted-split-package-messages-tc.\r\n\r\nThe combine.bnd is at https://github.com/bimargulies/felix-unwanted-split-package-messages-tc/blob/master/bnd/combine.bnd.\r\n\r\nI appreciate that bundle class path is not a desirable pattern. Like many other people, I have the problem of adapting long-existing code to OSGi, without freedom to do arbitrary refactoring. The existing code was not divided into jar files according to OSGi bundle design principles. I am solving this problem by creating bundles that export functionality through new OSGi services in new packages, and gathering split packages together into single bundles. In other words, my whole reason to resort to Bundle-Classpath is to cure split packages within constraints.\r\n\r\nI will work on a test case PR later today.\r\n\r\ncombine.bnd contains:\r\n\r\n```\r\nEmbed-Dependency=sp-tc-jar1,sp-tc-jar2\r\nBundle-DocURL=http\\://www.apache.org/\r\nBundle-ClassPath=.,sp-tc-jar1-0.0.1-SNAPSHOT.jar,sp-tc-jar2-0.0.1-SNAPSHOT.jar\r\nExport-Package=org.apache.felix.tc\r\nBundle-License=http\\://www.apache.org/licenses/LICENSE-2.0.txt\r\nInclude-Resource=sp-tc-jar1-0.0.1-SNAPSHOT.jar\\=jars/sp-tc-jar1-0.0.1-SNAPSHOT.jar,sp-tc-jar2-0.0.1-SNAPSHOT.jar\\=jars/sp-tc-jar2-0.0.1-SNAPSHOT.jar\r\n-removeheaders=Include-Resource,Private-Package\r\nBundle-SymbolicName=org.apache.felix.sp-tc-combine\r\nPrivate-Package=org.apache.felix.combined\r\nBundle-Version=0.0.1.SNAPSHOT\r\nImport-Package=*\r\nEmbedded-Artifacts=sp-tc-jar1-0.0.1-SNAPSHOT.jar;g\\=\"org.apache.felix\";a\\=\"sp-tc-jar1\";v\\=\"0.0.1-SNAPSHOT\",sp-tc-jar2-0.0.1-SNAPSHOT.jar;g\\=\"org.apache.felix\";a\\=\"sp-tc-jar2\";v\\=\"0.0.1-SNAPSHOT\"\r\nBundle-Vendor=The Apache Software Foundation\r\n-sourcepath=../sp-combine/src/main/java\r\nBundle-Name=sp-tc-combine\r\n-classpath: stuff,jars/sp-tc-jar1-0.0.1-SNAPSHOT.jar,jars/sp-tc-jar2-0.0.1-SNAPSHOT.jar\r\n\r\n```\r\n"}}