You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Jens Offenbach (JIRA)" <ji...@apache.org> on 2015/03/17 20:37:38 UTC
[jira] [Created] (FELIX-4830) Missing version of imported packages
Jens Offenbach created FELIX-4830:
-------------------------------------
Summary: Missing version of imported packages
Key: FELIX-4830
URL: https://issues.apache.org/jira/browse/FELIX-4830
Project: Felix
Issue Type: Bug
Components: Maven Bundle Plugin
Affects Versions: maven-bundle-plugin-2.5.2
Reporter: Jens Offenbach
In some cases the manifest file created by maven-bundle-plugin 2.5.2 contains packages without any version declaration. I was able to reproduce the issue. It appears when you import a package into bundles which package namespace contains the imported package name.
Example:
We have 3 bundles, one bundle exports the package "org.test". Another bundle places its classes in the package "org.test.impl". The last bundle uses the package "org.testx.impl".
*Bundle-Manifest: org.test*
{code}
Manifest-Version: 1.0
Bnd-LastModified: 1426619825063
Build-Jdk: 1.8.0_31
Bundle-ManifestVersion: 2
Bundle-Name: org.test
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-SymbolicName: org.test
Bundle-Version: 1.0.0.SNAPSHOT
Created-By: Apache Maven Bundle Plugin
Export-Package: org.test;version="1.0.0.SNAPSHOT"
Private-Package: org.test
Tool: Bnd-2.3.0.201405100607
{code}
*Bundle-Manifest: org.test.impl*
{code}
Manifest-Version: 1.0
Bnd-LastModified: 1426619826264
Build-Jdk: 1.8.0_31
Bundle-ManifestVersion: 2
Bundle-Name: org.test.impl
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-SymbolicName: org.test.impl
Bundle-Version: 1.0.0.SNAPSHOT
Created-By: Apache Maven Bundle Plugin
Import-Package: org.test
Private-Package: org.test.impl
Tool: Bnd-2.3.0.201405100607
{code}
*Bundle-Manifest: org.testx.impl*
{code}
Manifest-Version: 1.0
Bnd-LastModified: 1426619826857
Build-Jdk: 1.8.0_31
Bundle-ManifestVersion: 2
Bundle-Name: org.testx.impl
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Bundle-SymbolicName: org.test.org.testx.impl
Bundle-Version: 1.0.0.SNAPSHOT
Created-By: Apache Maven Bundle Plugin
Import-Package: org.test;version="[1.0,2)"
Private-Package: org.testx.impl
Tool: Bnd-2.3.0.201405100607
{code}
The package import statement of "org.test.impl" misses the version, whereas the package import statement of "org.testx.impl" is correct.
The issue does not exist in maven-bundle-plugin-2.4.0.
This is a serious problem on my side. Can you fix it and release maven-bundle-plugin-2.5.3 quickly.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)